Class BcTlsRsaPssSigner
Operator supporting the generation of RSASSA-PSS signatures using the BC light-weight API.
public class BcTlsRsaPssSigner : BcTlsSigner, TlsSigner
- Inheritance
-
BcTlsRsaPssSigner
- Implements
- Inherited Members
Constructors
BcTlsRsaPssSigner(BcTlsCrypto, RsaKeyParameters, int)
public BcTlsRsaPssSigner(BcTlsCrypto crypto, RsaKeyParameters privateKey, int signatureScheme)
Parameters
cryptoBcTlsCryptoprivateKeyRsaKeyParameterssignatureSchemeint
Methods
GenerateRawSignature(SignatureAndHashAlgorithm, byte[])
Generate an encoded signature based on the passed in hash.
public override byte[] GenerateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash)
Parameters
algorithmSignatureAndHashAlgorithmthe signature algorithm to use.
hashbyte[]the hash calculated for the signature.
Returns
- byte[]
an encoded signature.
Exceptions
- IOException
in case of an exception processing the hash.