Class BcTlsRsaSigner
Operator supporting the generation of RSASSA-PKCS1-v1_5 signatures using the BC light-weight API.
public class BcTlsRsaSigner : BcTlsSigner, TlsSigner
- Inheritance
-
BcTlsRsaSigner
- Implements
- Inherited Members
Constructors
BcTlsRsaSigner(BcTlsCrypto, RsaKeyParameters)
public BcTlsRsaSigner(BcTlsCrypto crypto, RsaKeyParameters privateKey)
Parameters
cryptoBcTlsCryptoprivateKeyRsaKeyParameters
BcTlsRsaSigner(BcTlsCrypto, RsaKeyParameters, RsaKeyParameters)
[Obsolete("Use constructor without 'publicKey' parameter instead")]
public BcTlsRsaSigner(BcTlsCrypto crypto, RsaKeyParameters privateKey, RsaKeyParameters publicKey)
Parameters
cryptoBcTlsCryptoprivateKeyRsaKeyParameterspublicKeyRsaKeyParameters
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.