Top Description Fields Constructors Methods
org.bouncycastle.tls.crypto.impl.bc

public Class BcTlsECDSA13Signer

extends BcTlsSigner
Class Inheritance
Imports
java.io.IOException, org.bouncycastle.crypto.CryptoException, .DSA, .Signer, org.bouncycastle.crypto.digests.NullDigest, org.bouncycastle.crypto.params.ECPrivateKeyParameters, .ParametersWithRandom, org.bouncycastle.crypto.signers.DSADigestSigner, .ECDSASigner, .HMacDSAKCalculator, org.bouncycastle.tls.AlertDescription, .SignatureAndHashAlgorithm, .SignatureScheme, .TlsFatalAlert

Implementation class for generation of ECDSA signatures in TLS 1.3+ using the BC light-weight API.

Field Summary

Modifier and TypeField and Description
private final int
Inherited from org.bouncycastle.tls.crypto.impl.bc.BcTlsSigner:
cryptoprivateKey

Constructor Summary

AccessConstructor and Description
public
BcTlsECDSA13Signer(BcTlsCrypto crypto, ECPrivateKeyParameters privateKey, int signatureScheme)

Method Summary

Modifier and TypeMethod and Description
public byte[]
generateRawSignature(SignatureAndHashAlgorithm
the signature algorithm to use.
algorithm
,
byte[]
the hash calculated for the signature.
hash
)

Implements org.bouncycastle.tls.crypto.TlsSigner.generateRawSignature.

Generate an encoded signature based on the passed in hash.

Inherited from org.bouncycastle.tls.crypto.impl.bc.BcTlsSigner:
getStreamSigner

Field Detail

signatureSchemeback to summary
private final int signatureScheme

Constructor Detail

BcTlsECDSA13Signerback to summary
public BcTlsECDSA13Signer(BcTlsCrypto crypto, ECPrivateKeyParameters privateKey, int signatureScheme)

Method Detail

generateRawSignatureback to summary
public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) throws IOException

Implements org.bouncycastle.tls.crypto.TlsSigner.generateRawSignature.

Doc from org.bouncycastle.tls.crypto.TlsSigner.generateRawSignature.

Generate an encoded signature based on the passed in 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.