Class RSASSAPSSMechanismParams
- Namespace
- iText.Signatures
- Assembly
- itext.sign.dll
Encode the signer's parameters for producing an RSASSA-PSS signature.
public class RSASSAPSSMechanismParams : IApplicableSignatureParams, ISignatureMechanismParams
- Inheritance
-
RSASSAPSSMechanismParams
- Implements
- Inherited Members
Remarks
Encode the signer's parameters for producing an RSASSA-PSS signature. Note that this class is intended for use in the signing process only, so it does not need to be able to represent all possible parameter configurations; only the ones we consider reasonable. For the purposes of this class, the mask generation function is always MGF1, and the associated digest function is the same as the digest function used in the signing process.
Constructors
RSASSAPSSMechanismParams(IDerObjectIdentifier, int, int)
Instantiate RSASSA-PSS parameters with MGF1 for a given digest algorithm OID, salt length and trailer field value.
public RSASSAPSSMechanismParams(IDerObjectIdentifier digestAlgoOid, int saltLen, int trailerField)
Parameters
digestAlgoOid
IDerObjectIdentifierthe digest algorithm OID that will be used for both the digest and MGF
saltLen
intthe salt length
trailerField
intthe trailer field
Fields
DEFAULT_TRAILER_FIELD
Default value of the trailer field parameter.
public const int DEFAULT_TRAILER_FIELD = 1
Field Value
Methods
Apply(ISigner)
public virtual void Apply(ISigner signature)
Parameters
signature
ISigner
CreateForDigestAlgorithm(string)
Instantiate RSASSA-PSS parameters with MGF1 for the given algorithm name.
public static RSASSAPSSMechanismParams CreateForDigestAlgorithm(string digestAlgorithmName)
Parameters
digestAlgorithmName
stringthe name of the digest algorithm
Returns
ToEncodable()
public virtual IAsn1Encodable ToEncodable()
Returns
- IAsn1Encodable