Class BcTlsSigner
public abstract class BcTlsSigner : TlsSigner
- Inheritance
-
BcTlsSigner
- Implements
- Derived
- Inherited Members
Constructors
BcTlsSigner(BcTlsCrypto, AsymmetricKeyParameter)
protected BcTlsSigner(BcTlsCrypto crypto, AsymmetricKeyParameter privateKey)
Parameters
cryptoBcTlsCryptoprivateKeyAsymmetricKeyParameter
Fields
m_crypto
protected readonly BcTlsCrypto m_crypto
Field Value
m_privateKey
protected readonly AsymmetricKeyParameter m_privateKey
Field Value
Methods
GenerateRawSignature(SignatureAndHashAlgorithm, byte[])
Generate an encoded signature based on the passed in hash.
public virtual 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)
public virtual TlsStreamSigner GetStreamSigner(SignatureAndHashAlgorithm algorithm)
Parameters
algorithmSignatureAndHashAlgorithm