Class RsaPssParameters
- Namespace
- SimpleSign.Core.Signing
- Assembly
- SimpleSign.Core.dll
The RSASSA-PSS parameters required to reproduce a signature operation.
public sealed record RsaPssParameters : IEquatable<RsaPssParameters>
- Inheritance
-
RsaPssParameters
- Implements
- Inherited Members
Constructors
RsaPssParameters(HashAlgorithmName, HashAlgorithmName, int, int)
Creates a PSS parameter value.
public RsaPssParameters(HashAlgorithmName hashAlgorithm, HashAlgorithmName maskGenerationHashAlgorithm, int saltLength, int trailerField = 1)
Parameters
hashAlgorithmHashAlgorithmNamemaskGenerationHashAlgorithmHashAlgorithmNamesaltLengthinttrailerFieldint
Exceptions
- ArgumentOutOfRangeException
A parameter is not supported.
Properties
HashAlgorithm
The digest used for the message hash.
public HashAlgorithmName HashAlgorithm { get; }
Property Value
MaskGenerationHashAlgorithm
The digest used by MGF1.
public HashAlgorithmName MaskGenerationHashAlgorithm { get; }
Property Value
SaltLength
The PSS salt length, in octets.
public int SaltLength { get; }
Property Value
TrailerField
The PSS trailer field. Only value 1 is supported by CMS and .NET.
public int TrailerField { get; }