Table of Contents

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

hashAlgorithm HashAlgorithmName
maskGenerationHashAlgorithm HashAlgorithmName
saltLength int
trailerField int

Exceptions

ArgumentOutOfRangeException

A parameter is not supported.

Properties

HashAlgorithm

The digest used for the message hash.

public HashAlgorithmName HashAlgorithm { get; }

Property Value

HashAlgorithmName

MaskGenerationHashAlgorithm

The digest used by MGF1.

public HashAlgorithmName MaskGenerationHashAlgorithm { get; }

Property Value

HashAlgorithmName

SaltLength

The PSS salt length, in octets.

public int SaltLength { get; }

Property Value

int

TrailerField

The PSS trailer field. Only value 1 is supported by CMS and .NET.

public int TrailerField { get; }

Property Value

int