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
domainEcDomainprivateKeyReadOnlySpan<byte>
Returns
Generate(EcDomain, SecureRandom?)
Generates a key pair.
public static EcStaticKeyPair Generate(EcDomain domain, SecureRandom? random = null)
Parameters
domainEcDomainrandomSecureRandom
Returns
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
domainEcDomainprivateKeyReadOnlySpan<byte>publicKeyReadOnlySpan<byte>