Extends
Accessors
digestAlgorithm
Set Signature
set digestAlgorithm(algorithm): void
Set the digest algorithm to use for hashing message contents.
This will default to SHA-256 if not specified.
Throws
InvalidArgumentError If the algorithm is invalid.Parameters
algorithm
DigestAlgorithm
The digest algorithm to use.
Returns
void
Inherited from
SignatureContextBuilder.digestAlgorithm
saltLength
Set Signature
set saltLength(saltLength): void
Set the length of the salt to use in the RSASSA-PSS signature scheme.
Remarks
If not set, it will default to using the hash length as the salt length.Parameters
saltLength
number
The length of the salt in bytes.
Returns
void

