<PackageReference Include="BouncyCastle.Cryptography" Version="2.6.1" />

Iso9796d2PssSigner

ISO9796-2 - mechanism using a hash function with recovery (scheme 2 and 3). Note: the usual length for the salt is the length of the hash function used in bytes.
public virtual string AlgorithmName { get; }

public Iso9796d2PssSigner(IAsymmetricBlockCipher cipher, IDigest digest, int saltLength, bool isImplicit)

Generate a signer with either implicit or explicit trailer for ISO9796-2, scheme 2 or 3.

public Iso9796d2PssSigner(IAsymmetricBlockCipher cipher, IDigest digest, int saltLength)

Generate a signer with explicit trailer for ISO9796-2, scheme 2 or 3.

public virtual void BlockUpdate(byte[] input, int inOff, int inLen)

public virtual byte[] GenerateSignature()

Generate a signature for the loaded message using the key we were initialised with.

public virtual int GetMaxSignatureSize()

public byte[] GetRecoveredMessage()

Return a reference to the recoveredMessage message.

public virtual bool HasFullMessage()

Return true if the full message was recoveredMessage.

public virtual void Init(bool forSigning, ICipherParameters parameters)

Initialise the signer.

public virtual void Reset()

reset the internal state

public virtual void Update(byte input)

update the internal digest with the byte b

public virtual void UpdateWithRecoveredMessage(byte[] signature)

public virtual bool VerifySignature(byte[] signature)

return true if the signature represents a ISO9796-2 signature for the passed in message.