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

public Class BcTlsEd25519Signer

extends BcTlsSigner
Class Inheritance
Imports
java.io.IOException, org.bouncycastle.crypto.params.Ed25519PrivateKeyParameters, org.bouncycastle.crypto.signers.Ed25519Signer, org.bouncycastle.tls.SignatureAndHashAlgorithm, .SignatureScheme, org.bouncycastle.tls.crypto.TlsStreamSigner

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

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

Constructor Detail

BcTlsEd25519Signerback to summary
public BcTlsEd25519Signer(BcTlsCrypto crypto, Ed25519PrivateKeyParameters privateKey)

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)

Overrides org.bouncycastle.tls.crypto.impl.bc.BcTlsSigner.getStreamSigner.

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