Top Fields Constructors Methods
org.bouncycastle.crypto.params

public final Class X25519PrivateKeyParameters

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

Field Summary

Modifier and TypeField and Description
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
X25519PrivateKeyParameters(byte[] buf, int off)

public

Method Summary

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

public X25519PublicKeyParameters
public void
generateSecret(X25519PublicKeyParameters publicKey, byte[] buf, int off)

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

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

Field Detail

databack to summary
private final byte[] data
KEY_SIZEback to summary
public static final int KEY_SIZE
SECRET_SIZEback to summary
public static final int SECRET_SIZE

Constructor Detail

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

Method Detail

encodeback to summary
public void encode(byte[] buf, int off)
generatePublicKeyback to summary
public X25519PublicKeyParameters generatePublicKey()
generateSecretback to summary
public void generateSecret(X25519PublicKeyParameters publicKey, byte[] buf, int off)
getEncodedback to summary
public byte[] getEncoded()
validateback to summary
private static byte[] validate(byte[] buf)