Top Fields Constructors Methods
org.bouncycastle.crypto.signers

public Class Ed25519phSigner

extends Object
implements Signer
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.Signer
Imports
org.bouncycastle.crypto.CipherParameters, .CryptoServicesRegistrar, .Digest, .Signer, org.bouncycastle.crypto.params.Ed25519PrivateKeyParameters, .Ed25519PublicKeyParameters, org.bouncycastle.math.ec.rfc8032.Ed25519, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
private final byte[]
private boolean
private final Digest
private Ed25519PrivateKeyParameters
private Ed25519PublicKeyParameters

Constructor Summary

AccessConstructor and Description
public
Ed25519phSigner(byte[] context)

Method Summary

Modifier and TypeMethod and Description
public byte[]
generateSignature()

Implements org.bouncycastle.crypto.Signer.generateSignature.

generate a signature for the message we've been loaded with using the key we were initialised with.
public void
init(boolean
true if for signing, false otherwise
forSigning
,
CipherParameters
necessary parameters.
parameters
)

Implements org.bouncycastle.crypto.Signer.init.

Initialise the signer for signing or verification.
public void
reset()

Implements org.bouncycastle.crypto.Signer.reset.

reset the internal state
public void
update(byte b)

Implements org.bouncycastle.crypto.Signer.update.

update the internal digest with the byte b
public void
update(byte[] buf, int off, int len)

Implements org.bouncycastle.crypto.Signer.update.

update the internal digest with the byte array in
public boolean
verifySignature(byte[] signature)

Implements org.bouncycastle.crypto.Signer.verifySignature.

return true if the internal state represents the signature described in the passed in array.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextback to summary
private final byte[] context
forSigningback to summary
private boolean forSigning
prehashback to summary
private final Digest prehash
privateKeyback to summary
private Ed25519PrivateKeyParameters privateKey
publicKeyback to summary
private Ed25519PublicKeyParameters publicKey

Constructor Detail

Ed25519phSignerback to summary
public Ed25519phSigner(byte[] context)

Method Detail

generateSignatureback to summary
public byte[] generateSignature()

Implements org.bouncycastle.crypto.Signer.generateSignature.

Doc from org.bouncycastle.crypto.Signer.generateSignature.

generate a signature for the message we've been loaded with using the key we were initialised with.

initback to summary
public void init(boolean forSigning, CipherParameters parameters)

Implements org.bouncycastle.crypto.Signer.init.

Doc from org.bouncycastle.crypto.Signer.init.

Initialise the signer for signing or verification.

Parameters
forSigning:boolean

true if for signing, false otherwise

parameters:CipherParameters

necessary parameters.

resetback to summary
public void reset()

Implements org.bouncycastle.crypto.Signer.reset.

Doc from org.bouncycastle.crypto.Signer.reset.

reset the internal state

updateback to summary
public void update(byte b)

Implements org.bouncycastle.crypto.Signer.update.

Doc from org.bouncycastle.crypto.Signer.update.

update the internal digest with the byte b

updateback to summary
public void update(byte[] buf, int off, int len)

Implements org.bouncycastle.crypto.Signer.update.

Doc from org.bouncycastle.crypto.Signer.update.

update the internal digest with the byte array in

verifySignatureback to summary
public boolean verifySignature(byte[] signature)

Implements org.bouncycastle.crypto.Signer.verifySignature.

Doc from org.bouncycastle.crypto.Signer.verifySignature.

return true if the internal state represents the signature described in the passed in array.