<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0" />

Org.BouncyCastle.Crypto.Utilities.Lib25519

public static class Lib25519
Implements the lib25519 API.
public static readonly int DHBytes

Equivalent of lib25519_dh_BYTES.

public static readonly int DHPublicKeyBytes

Equivalent of lib25519_dh_PUBLICKEYBYTES.

public static readonly int DHSecretKeyBytes

Equivalent of lib25519_dh_SECRETKEYBYTES.

public static readonly int SignBytes

Equivalent of lib25519_sign_BYTES.

public static readonly int SignPublicKeyBytes

Equivalent of lib25519_sign_PUBLICKEYBYTES.

public static readonly int SignSecretKeyBytes

Equivalent of lib25519_sign_SECRETKEYBYTES.

public static void DH(Span<byte> k, ReadOnlySpan<byte> pk, ReadOnlySpan<byte> sk)

Equivalent of lib25519_dh.

public static void DHKeyPair(Span<byte> pk, Span<byte> sk)

Equivalent of lib25519_dh_keypair.

public static void Sign(Span<byte> sm, out int smlen, ReadOnlySpan<byte> m, ReadOnlySpan<byte> sk)

Equivalent of lib25519_sign.

public static void SignKeyPair(Span<byte> pk, Span<byte> sk)

Equivalent of lib25519_sign_keypair.

public static bool SignOpen(Span<byte> m, out int mlen, ReadOnlySpan<byte> sm, ReadOnlySpan<byte> pk)

Equivalent of lib25519_sign_open.