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
domainFfcDomainprivateKeyReadOnlySpan<byte>
Returns
Generate(FfcDomain, SecureRandom?)
Generates a key pair.
public static FfcStaticKeyPair Generate(FfcDomain domain, SecureRandom? random = null)
Parameters
domainFfcDomainrandomSecureRandom
Returns
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
domainFfcDomainprivateKeyReadOnlySpan<byte>publicKeyReadOnlySpan<byte>