RSA-PSS as described in Pkcs# 1 v 2.1.
///
/// Note: the usual value for the salt length is the number of
/// bytes in the hash function.
///
public class PssSigner
: ISigner
{
public const byte TrailerImplicit = (byte)0xBC;
private readonly IDigest digest;
private readonly IAsymmetricBlockCipher cipher;
private SecureRandom random;
private int hLen;
private int sLen;
private int emBits;
private byte[] salt;
private byte[] mDash;
private byte[] block;
private byte trailer;
public PssSigner(
IAsymmetricBlockCipher cipher,
IDigest digest)
: this(cipher, digest, digest.GetDigestSize())
{
}
///