Table of Contents

Class Ed25519

Namespace
Enterprises.Org.BouncyCastle.Math.EC.Rfc8032
Assembly
Enterprises.BouncyCastle.Crypto.dll
public abstract class Ed25519
Inheritance
Ed25519
Inherited Members

Constructors

Ed25519()

protected Ed25519()

Fields

PrehashSize

public static readonly int PrehashSize

Field Value

int

PublicKeySize

public static readonly int PublicKeySize

Field Value

int

SecretKeySize

public static readonly int SecretKeySize

Field Value

int

SignatureSize

public static readonly int SignatureSize

Field Value

int

Methods

CreatePrehash()

public static IDigest CreatePrehash()

Returns

IDigest

GeneratePrivateKey(SecureRandom, byte[])

public static void GeneratePrivateKey(SecureRandom random, byte[] k)

Parameters

random SecureRandom
k byte[]

GeneratePublicKey(byte[], int, byte[], int)

public static void GeneratePublicKey(byte[] sk, int skOff, byte[] pk, int pkOff)

Parameters

sk byte[]
skOff int
pk byte[]
pkOff int

Precompute()

public static void Precompute()

Sign(byte[], int, byte[], byte[], int, int, byte[], int)

public static void Sign(byte[] sk, int skOff, byte[] ctx, byte[] m, int mOff, int mLen, byte[] sig, int sigOff)

Parameters

sk byte[]
skOff int
ctx byte[]
m byte[]
mOff int
mLen int
sig byte[]
sigOff int

Sign(byte[], int, byte[], int, byte[], byte[], int, int, byte[], int)

public static void Sign(byte[] sk, int skOff, byte[] pk, int pkOff, byte[] ctx, byte[] m, int mOff, int mLen, byte[] sig, int sigOff)

Parameters

sk byte[]
skOff int
pk byte[]
pkOff int
ctx byte[]
m byte[]
mOff int
mLen int
sig byte[]
sigOff int

Sign(byte[], int, byte[], int, byte[], int, int, byte[], int)

public static void Sign(byte[] sk, int skOff, byte[] pk, int pkOff, byte[] m, int mOff, int mLen, byte[] sig, int sigOff)

Parameters

sk byte[]
skOff int
pk byte[]
pkOff int
m byte[]
mOff int
mLen int
sig byte[]
sigOff int

Sign(byte[], int, byte[], int, int, byte[], int)

public static void Sign(byte[] sk, int skOff, byte[] m, int mOff, int mLen, byte[] sig, int sigOff)

Parameters

sk byte[]
skOff int
m byte[]
mOff int
mLen int
sig byte[]
sigOff int

SignPrehash(byte[], int, byte[], IDigest, byte[], int)

public static void SignPrehash(byte[] sk, int skOff, byte[] ctx, IDigest ph, byte[] sig, int sigOff)

Parameters

sk byte[]
skOff int
ctx byte[]
ph IDigest
sig byte[]
sigOff int

SignPrehash(byte[], int, byte[], byte[], int, byte[], int)

public static void SignPrehash(byte[] sk, int skOff, byte[] ctx, byte[] ph, int phOff, byte[] sig, int sigOff)

Parameters

sk byte[]
skOff int
ctx byte[]
ph byte[]
phOff int
sig byte[]
sigOff int

SignPrehash(byte[], int, byte[], int, byte[], IDigest, byte[], int)

public static void SignPrehash(byte[] sk, int skOff, byte[] pk, int pkOff, byte[] ctx, IDigest ph, byte[] sig, int sigOff)

Parameters

sk byte[]
skOff int
pk byte[]
pkOff int
ctx byte[]
ph IDigest
sig byte[]
sigOff int

SignPrehash(byte[], int, byte[], int, byte[], byte[], int, byte[], int)

public static void SignPrehash(byte[] sk, int skOff, byte[] pk, int pkOff, byte[] ctx, byte[] ph, int phOff, byte[] sig, int sigOff)

Parameters

sk byte[]
skOff int
pk byte[]
pkOff int
ctx byte[]
ph byte[]
phOff int
sig byte[]
sigOff int

Verify(byte[], int, byte[], int, byte[], byte[], int, int)

public static bool Verify(byte[] sig, int sigOff, byte[] pk, int pkOff, byte[] ctx, byte[] m, int mOff, int mLen)

Parameters

sig byte[]
sigOff int
pk byte[]
pkOff int
ctx byte[]
m byte[]
mOff int
mLen int

Returns

bool

Verify(byte[], int, byte[], int, byte[], int, int)

public static bool Verify(byte[] sig, int sigOff, byte[] pk, int pkOff, byte[] m, int mOff, int mLen)

Parameters

sig byte[]
sigOff int
pk byte[]
pkOff int
m byte[]
mOff int
mLen int

Returns

bool

VerifyPrehash(byte[], int, byte[], int, byte[], IDigest)

public static bool VerifyPrehash(byte[] sig, int sigOff, byte[] pk, int pkOff, byte[] ctx, IDigest ph)

Parameters

sig byte[]
sigOff int
pk byte[]
pkOff int
ctx byte[]
ph IDigest

Returns

bool

VerifyPrehash(byte[], int, byte[], int, byte[], byte[], int)

public static bool VerifyPrehash(byte[] sig, int sigOff, byte[] pk, int pkOff, byte[] ctx, byte[] ph, int phOff)

Parameters

sig byte[]
sigOff int
pk byte[]
pkOff int
ctx byte[]
ph byte[]
phOff int

Returns

bool