Top Fields Constructors Methods
org.bouncycastle.crypto.general

pack-priv final Class Ed25519PrivateKeyParameters

extends AsymmetricKeyParameter
Class Inheritance
Imports
java.io.EOFException, .IOException, .InputStream, java.security.SecureRandom, org.bouncycastle.crypto.fips.FipsSHS, org.bouncycastle.crypto.internal.Digest, org.bouncycastle.crypto.internal.params.AsymmetricKeyParameter, org.bouncycastle.math.ec.rfc8032.Ed25519, org.bouncycastle.util.Arrays, org.bouncycastle.util.io.Streams

Field Summary

Modifier and TypeField and Description
private final byte[]
private final Ed25519
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
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)

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

Field Detail

databack to summary
private final byte[] data
ed25519back to summary
private final Ed25519 ed25519
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, 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)