Table of Contents

Class FfcStaticKeyPair

Namespace
Kdf108
Assembly
Kdf108.dll

A static FFC key pair.

public sealed class FfcStaticKeyPair : FfcKeyPair<FfcStaticPublicKey>
Inheritance
FfcStaticKeyPair
Inherited Members

Methods

FromPrivate(FfcDomain, ReadOnlySpan<byte>)

Imports a private key and computes its public key.

public static FfcStaticKeyPair FromPrivate(FfcDomain domain, ReadOnlySpan<byte> privateKey)

Parameters

domain FfcDomain
privateKey ReadOnlySpan<byte>

Returns

FfcStaticKeyPair

Generate(FfcDomain, SecureRandom?)

Generates a key pair.

public static FfcStaticKeyPair Generate(FfcDomain domain, SecureRandom? random = null)

Parameters

domain FfcDomain
random SecureRandom

Returns

FfcStaticKeyPair

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

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

public static FfcStaticKeyPair Import(FfcDomain domain, ReadOnlySpan<byte> privateKey, ReadOnlySpan<byte> publicKey)

Parameters

domain FfcDomain
privateKey ReadOnlySpan<byte>
publicKey ReadOnlySpan<byte>

Returns

FfcStaticKeyPair