Class BcTlsECDsa13Signer
Implementation class for generation of ECDSA signatures in TLS 1.3+ using the BC light-weight API.
public class BcTlsECDsa13Signer : BcTlsSigner, TlsSigner
- Inheritance
-
BcTlsECDsa13Signer
- Implements
- Inherited Members
Constructors
BcTlsECDsa13Signer(BcTlsCrypto, ECPrivateKeyParameters, int)
public BcTlsECDsa13Signer(BcTlsCrypto crypto, ECPrivateKeyParameters privateKey, int signatureScheme)
Parameters
cryptoBcTlsCryptoprivateKeyECPrivateKeyParameterssignatureSchemeint
Methods
GenerateRawSignature(SignatureAndHashAlgorithm, byte[])
Generate an encoded signature based on the passed in hash.
public override 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.