Top Fields Constructors Methods
org.bouncycastle.crypto.params

public final Class Ed25519PrivateKeyParameters

extends AsymmetricKeyParameter
Class Inheritance
Imports
java.io.EOFException, .IOException, .InputStream, java.security.SecureRandom, org.bouncycastle.math.ec.rfc8032.Ed25519, org.bouncycastle.util.Arrays, org.bouncycastle.util.io.Streams

Field Summary

Modifier and TypeField and Description
private Ed25519PublicKeyParameters
private final byte[]
public static final int
public static final int
Inherited from org.bouncycastle.crypto.params.AsymmetricKeyParameter:
privateKey

Constructor Summary

AccessConstructor and Description
public
public
public
Ed25519PrivateKeyParameters(byte[] buf, int off)

public

Method Summary

Modifier and TypeMethod and Description
public void
encode(byte[] buf, int off)

public Ed25519PublicKeyParameters
public byte[]
public void
sign(int algorithm, Ed25519PublicKeyParameters publicKey, byte[] ctx, byte[] msg, int msgOff, int msgLen, byte[] sig, int sigOff)

Deprecated use overload that doesn't take a public key
public void
sign(int algorithm, byte[] ctx, byte[] msg, int msgOff, int msgLen, byte[] sig, int sigOff)

private static byte[]
validate(byte[] buf)

Inherited from org.bouncycastle.crypto.params.AsymmetricKeyParameter:
isPrivate

Field Detail

cachedPublicKeyback to summary
private Ed25519PublicKeyParameters cachedPublicKey
databack to summary
private final byte[] data
KEY_SIZEback to summary
public static final int KEY_SIZE
SIGNATURE_SIZEback to summary
public static final int SIGNATURE_SIZE

Constructor Detail

Ed25519PrivateKeyParametersback to summary
public Ed25519PrivateKeyParameters(SecureRandom random)
Ed25519PrivateKeyParametersback to summary
public Ed25519PrivateKeyParameters(byte[] buf)
Ed25519PrivateKeyParametersback to summary
public Ed25519PrivateKeyParameters(byte[] buf, int off)
Ed25519PrivateKeyParametersback to summary
public Ed25519PrivateKeyParameters(InputStream input) throws IOException

Method Detail

encodeback to summary
public void encode(byte[] buf, int off)
generatePublicKeyback to summary
public Ed25519PublicKeyParameters generatePublicKey()
getEncodedback to summary
public byte[] getEncoded()
signback to summary
public void sign(int algorithm, Ed25519PublicKeyParameters publicKey, byte[] ctx, byte[] msg, int msgOff, int msgLen, byte[] sig, int sigOff)

Deprecated

use overload that doesn't take a public key

signback to summary
public void sign(int algorithm, byte[] ctx, byte[] msg, int msgOff, int msgLen, byte[] sig, int sigOff)
validateback to summary
private static byte[] validate(byte[] buf)