Table of Contents

Class X25519PrivateKeyParameters

Namespace
Enterprises.Org.BouncyCastle.Crypto.Parameters
Assembly
Enterprises.BouncyCastle.Crypto.dll
public sealed class X25519PrivateKeyParameters : AsymmetricKeyParameter, ICipherParameters
Inheritance
X25519PrivateKeyParameters
Implements
Inherited Members

Constructors

X25519PrivateKeyParameters(SecureRandom)

public X25519PrivateKeyParameters(SecureRandom random)

Parameters

random SecureRandom

X25519PrivateKeyParameters(byte[], int)

public X25519PrivateKeyParameters(byte[] buf, int off)

Parameters

buf byte[]
off int

X25519PrivateKeyParameters(Stream)

public X25519PrivateKeyParameters(Stream input)

Parameters

input Stream

Fields

KeySize

public static readonly int KeySize

Field Value

int

SecretSize

public static readonly int SecretSize

Field Value

int

Methods

Encode(byte[], int)

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

Parameters

buf byte[]
off int

GeneratePublicKey()

public X25519PublicKeyParameters GeneratePublicKey()

Returns

X25519PublicKeyParameters

GenerateSecret(X25519PublicKeyParameters, byte[], int)

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

Parameters

publicKey X25519PublicKeyParameters
buf byte[]
off int

GetEncoded()

public byte[] GetEncoded()

Returns

byte[]