public class BcTlsEd25519Signer extends BcTlsSigner
Modifier and Type | Field and Description |
---|---|
protected org.bouncycastle.crypto.params.Ed25519PublicKeyParameters |
publicKey |
crypto, privateKey
Constructor and Description |
---|
BcTlsEd25519Signer(BcTlsCrypto crypto,
org.bouncycastle.crypto.params.Ed25519PrivateKeyParameters privateKey,
org.bouncycastle.crypto.params.Ed25519PublicKeyParameters publicKey) |
Modifier and Type | Method and Description |
---|---|
byte[] |
generateRawSignature(SignatureAndHashAlgorithm algorithm,
byte[] hash)
Generate an encoded signature based on the passed in hash,
|
TlsStreamSigner |
getStreamSigner(SignatureAndHashAlgorithm algorithm) |
protected final org.bouncycastle.crypto.params.Ed25519PublicKeyParameters publicKey
public BcTlsEd25519Signer(BcTlsCrypto crypto, org.bouncycastle.crypto.params.Ed25519PrivateKeyParameters privateKey, org.bouncycastle.crypto.params.Ed25519PublicKeyParameters publicKey)
public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) throws java.io.IOException
TlsSigner
algorithm
- the signature algorithm to use.hash
- the hash calculated for the signature.java.io.IOException
- in case of an exception processing the hash.public TlsStreamSigner getStreamSigner(SignatureAndHashAlgorithm algorithm)
getStreamSigner
in interface TlsSigner
getStreamSigner
in class BcTlsSigner