Top Fields Constructors Methods
org.bouncycastle.tls.crypto.impl.jcajce

public abstract Class JcaTlsEdDSASigner

extends Object
implements TlsSigner
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.crypto.TlsSigner
Known Direct Subclasses
org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsEd25519Signer, org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsEd448Signer
Imports
java.io.IOException, java.security.PrivateKey, org.bouncycastle.tls.HashAlgorithm, .SignatureAndHashAlgorithm, org.bouncycastle.tls.crypto.TlsSigner, .TlsStreamSigner

Field Summary

Modifier and TypeField and Description
protected final String
protected final short
protected final JcaTlsCrypto
protected final PrivateKey

Constructor Summary

AccessConstructor and Description
public
JcaTlsEdDSASigner(JcaTlsCrypto crypto, PrivateKey privateKey, short algorithmType, String algorithmName)

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.
public TlsStreamSigner
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algorithmNameback to summary
protected final String algorithmName
algorithmTypeback to summary
protected final short algorithmType
cryptoback to summary
protected final JcaTlsCrypto crypto
privateKeyback to summary
protected final PrivateKey privateKey

Constructor Detail

JcaTlsEdDSASignerback to summary
public JcaTlsEdDSASigner(JcaTlsCrypto crypto, PrivateKey privateKey, short algorithmType, String algorithmName)

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.
getStreamSignerback to summary
public TlsStreamSigner getStreamSigner(SignatureAndHashAlgorithm algorithm) throws IOException

Implements org.bouncycastle.tls.crypto.TlsSigner.getStreamSigner.