Table of Contents

Interface TlsSigner

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

Base interface for a TLS signer that works on raw message digests.

public interface TlsSigner

Methods

GenerateRawSignature(SignatureAndHashAlgorithm, byte[])

Generate an encoded signature based on the passed in hash.

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)

TlsStreamSigner GetStreamSigner(SignatureAndHashAlgorithm algorithm)

Parameters

algorithm SignatureAndHashAlgorithm

Returns

TlsStreamSigner

Exceptions

IOException