Table of Contents

Class BcTlsRsaSigner

Namespace
Org.BouncyCastle.Tls.Crypto.Impl.BC
Assembly
BouncyCastle.Cryptography.dll

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

crypto BcTlsCrypto
privateKey RsaKeyParameters

BcTlsRsaSigner(BcTlsCrypto, RsaKeyParameters, RsaKeyParameters)

[Obsolete("Use constructor without 'publicKey' parameter instead")]
public BcTlsRsaSigner(BcTlsCrypto crypto, RsaKeyParameters privateKey, RsaKeyParameters publicKey)

Parameters

crypto BcTlsCrypto
privateKey RsaKeyParameters
publicKey RsaKeyParameters

Methods

GenerateRawSignature(SignatureAndHashAlgorithm, byte[])

Generate an encoded signature based on the passed in hash.

public override byte[] GenerateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash)

Parameters

algorithm SignatureAndHashAlgorithm

the signature algorithm to use.

hash byte[]

the hash calculated for the signature.

Returns

byte[]

an encoded signature.

Exceptions

IOException

in case of an exception processing the hash.