Table of Contents

Class BcTlsSigner

Namespace
Org.BouncyCastle.Tls.Crypto.Impl.BC
Assembly
BouncyCastle.Cryptography.dll
public abstract class BcTlsSigner : TlsSigner
Inheritance
BcTlsSigner
Implements
Derived
Inherited Members

Constructors

BcTlsSigner(BcTlsCrypto, AsymmetricKeyParameter)

protected BcTlsSigner(BcTlsCrypto crypto, AsymmetricKeyParameter privateKey)

Parameters

crypto BcTlsCrypto
privateKey AsymmetricKeyParameter

Fields

m_crypto

protected readonly BcTlsCrypto m_crypto

Field Value

BcTlsCrypto

m_privateKey

protected readonly AsymmetricKeyParameter m_privateKey

Field Value

AsymmetricKeyParameter

Methods

GenerateRawSignature(SignatureAndHashAlgorithm, byte[])

Generate an encoded signature based on the passed in hash.

public virtual 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.

GetStreamSigner(SignatureAndHashAlgorithm)

public virtual TlsStreamSigner GetStreamSigner(SignatureAndHashAlgorithm algorithm)

Parameters

algorithm SignatureAndHashAlgorithm

Returns

TlsStreamSigner

Exceptions

IOException