Package org.bouncycastle.crypto.params
Class Ed25519PrivateKeyParameters
java.lang.Object
org.bouncycastle.crypto.params.AsymmetricKeyParameter
org.bouncycastle.crypto.params.Ed25519PrivateKeyParameters
- All Implemented Interfaces:
CipherParameters
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEd25519PrivateKeyParameters
(byte[] buf) Ed25519PrivateKeyParameters
(byte[] buf, int off) -
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(byte[] buf, int off) byte[]
void
sign
(int algorithm, byte[] ctx, byte[] msg, int msgOff, int msgLen, byte[] sig, int sigOff) 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 keyMethods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter
isPrivate
-
Field Details
-
KEY_SIZE
public static final int KEY_SIZE- See Also:
-
SIGNATURE_SIZE
public static final int SIGNATURE_SIZE- See Also:
-
-
Constructor Details
-
Ed25519PrivateKeyParameters
-
Ed25519PrivateKeyParameters
public Ed25519PrivateKeyParameters(byte[] buf) -
Ed25519PrivateKeyParameters
public Ed25519PrivateKeyParameters(byte[] buf, int off) -
Ed25519PrivateKeyParameters
- Throws:
IOException
-
-
Method Details
-
encode
public void encode(byte[] buf, int off) -
getEncoded
public byte[] getEncoded() -
generatePublicKey
-
sign
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 -
sign
public void sign(int algorithm, byte[] ctx, byte[] msg, int msgOff, int msgLen, byte[] sig, int sigOff)
-