Table of Contents

Method ImportPkcs8PrivateKey

Namespace
Rotherprivat.KemBasedNet.Cryptography
Assembly
KemBasedNet.dll

ImportPkcs8PrivateKey(byte[])

Import private keys of ML-KEM and traditional key exchange algorithms

public static CompositeMLKem ImportPkcs8PrivateKey(byte[] pkcs8)

Parameters

pkcs8 byte[]

PKCS#8 encoded private key

Returns

CompositeMLKem

keys and algorithm implementation

Exceptions

CryptographicException

ImportPkcs8PrivateKey(ReadOnlySpan<byte>)

Import private keys of ML-KEM and traditional key exchange algorithms

public static CompositeMLKem ImportPkcs8PrivateKey(ReadOnlySpan<byte> pkcs8)

Parameters

pkcs8 ReadOnlySpan<byte>

PKCS#8 encoded private key

Returns

CompositeMLKem

keys and algorithm implementation

Exceptions

CryptographicException