Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.crypto.params
Class Ed25519PrivateKeyParameters

java.lang.Object
  |
  +--org.bouncycastle.crypto.params.AsymmetricKeyParameter
        |
        +--org.bouncycastle.crypto.params.Ed25519PrivateKeyParameters
All Implemented Interfaces:
CipherParameters

public final class Ed25519PrivateKeyParameters
extends AsymmetricKeyParameter


Field Summary
static int KEY_SIZE
           
static int SIGNATURE_SIZE
           
 
Constructor Summary
Ed25519PrivateKeyParameters(byte[] buf)
           
Ed25519PrivateKeyParameters(byte[] buf, int off)
           
Ed25519PrivateKeyParameters(java.io.InputStream input)
           
Ed25519PrivateKeyParameters(java.security.SecureRandom random)
           
 
Method Summary
 void encode(byte[] buf, int off)
           
 Ed25519PublicKeyParameters generatePublicKey()
           
 byte[] getEncoded()
           
 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 key
 
Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter
isPrivate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_SIZE

public static final int KEY_SIZE

SIGNATURE_SIZE

public static final int SIGNATURE_SIZE
Constructor Detail

Ed25519PrivateKeyParameters

public Ed25519PrivateKeyParameters(java.security.SecureRandom random)

Ed25519PrivateKeyParameters

public Ed25519PrivateKeyParameters(byte[] buf)

Ed25519PrivateKeyParameters

public Ed25519PrivateKeyParameters(byte[] buf,
                                   int off)

Ed25519PrivateKeyParameters

public Ed25519PrivateKeyParameters(java.io.InputStream input)
                            throws java.io.IOException
Method Detail

encode

public void encode(byte[] buf,
                   int off)

getEncoded

public byte[] getEncoded()

generatePublicKey

public Ed25519PublicKeyParameters 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)

Bouncy Castle Cryptography Library 1.77.0