RsaPss constructor

RsaPss(
  1. HashAlgorithm hashAlgorithm, {
  2. int nonceLengthInBytes = defaultNonceLengthInBytes,
})

Constructs RSA-PSS with the given hash algorithm.

You can also choose a nonceLengthInBytes that is different from the default (RsaPss.defaultNonceLengthInBytes).

Implementation

factory RsaPss(
  HashAlgorithm hashAlgorithm, {
  int nonceLengthInBytes = defaultNonceLengthInBytes,
}) {
  return Cryptography.instance.rsaPss(
    hashAlgorithm,
    nonceLengthInBytes: nonceLengthInBytes,
  );
}