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
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.
GetStreamSigner(SignatureAndHashAlgorithm)
TlsStreamSigner GetStreamSigner(SignatureAndHashAlgorithm algorithm)
Parameters
algorithmSignatureAndHashAlgorithm