Table of Contents

Class EcStaticKeyPair

Namespace
Kdf108
Assembly
Kdf108.dll

A static ECC key pair.

public sealed class EcStaticKeyPair : EcKeyPair<EcStaticPublicKey>
Inheritance
EcStaticKeyPair
Inherited Members

Methods

FromPrivate(EcDomain, ReadOnlySpan<byte>)

Imports a private key and computes its public key.

public static EcStaticKeyPair FromPrivate(EcDomain domain, ReadOnlySpan<byte> privateKey)

Parameters

domain EcDomain
privateKey ReadOnlySpan<byte>

Returns

EcStaticKeyPair

Generate(EcDomain, SecureRandom?)

Generates a key pair.

public static EcStaticKeyPair Generate(EcDomain domain, SecureRandom? random = null)

Parameters

domain EcDomain
random SecureRandom

Returns

EcStaticKeyPair

Import(EcDomain, ReadOnlySpan<byte>, ReadOnlySpan<byte>)

Imports both halves and checks that they correspond (pairwise consistency).

public static EcStaticKeyPair Import(EcDomain domain, ReadOnlySpan<byte> privateKey, ReadOnlySpan<byte> publicKey)

Parameters

domain EcDomain
privateKey ReadOnlySpan<byte>
publicKey ReadOnlySpan<byte>

Returns

EcStaticKeyPair