Class JcaTlsECDSA13Signer
java.lang.Object
org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsECDSA13Signer
- All Implemented Interfaces:
TlsSigner
Implementation class for generation of ECDSA signatures in TLS 1.3+ using the JCA.
-
Constructor Summary
ConstructorDescriptionJcaTlsECDSA13Signer
(JcaTlsCrypto crypto, PrivateKey privateKey, int signatureScheme) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
generateRawSignature
(SignatureAndHashAlgorithm algorithm, byte[] hash) Generate an encoded signature based on the passed in hash.getStreamSigner
(SignatureAndHashAlgorithm algorithm)
-
Constructor Details
-
JcaTlsECDSA13Signer
-
-
Method Details
-
generateRawSignature
public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) throws IOException Description copied from interface:TlsSigner
Generate an encoded signature based on the passed in hash.- Specified by:
generateRawSignature
in interfaceTlsSigner
- Parameters:
algorithm
- the signature algorithm to use.hash
- the hash calculated for the signature.- Returns:
- an encoded signature.
- Throws:
IOException
- in case of an exception processing the hash.
-
getStreamSigner
- Specified by:
getStreamSigner
in interfaceTlsSigner
- Throws:
IOException
-