Class RsaPssParams

RSA-PSS parameters

Implements

Constructors

Properties

Methods

Constructors

  • Creates a new instance of RsaPssParams

    Parameters

    • hashAlg: MechanismEnum = MechanismEnum.SHA1

      Hash algorithm used in the PSS encoding

    • mgf: RsaMgf = RsaMgf.MGF1_SHA1

      Mask generation function to use on the encoded block

    • saltLen: number = 20

      Length, in bytes, of the salt value used in the PSS encoding

    Returns RsaPssParams

Properties

hashAlgorithm: MechanismEnum

Hash algorithm used in the PSS encoding;

  • if the signature mechanism does not include message hashing, then this value must be the mechanism used by the application to generate the message hash;
  • if the signature mechanism includes hashing, then this value must match the hash algorithm indicated by the signature mechanism
mgf: RsaMgf

Mask generation function to use on the encoded block

saltLength: number

Length, in bytes, of the salt value used in the PSS encoding;

  • typical values are the length of the message hash and zero
type: MechParams = MechParams.RsaPSS

Methods