Table of Contents

Method ImportPkcs8PrivateKey

Namespace
Rotherprivat.KemBasedNet.Cryptography
Assembly
KemBasedNet.dll

ImportPkcs8PrivateKey(byte[])

Import private key and create the encryptor / decryptor

public static HybridMLKem ImportPkcs8PrivateKey(byte[] pkcs8)

Parameters

pkcs8 byte[]

Returns

HybridMLKem

encryptor / decryptor instance

Exceptions

CryptographicException

ImportPkcs8PrivateKey(ReadOnlySpan<byte>)

Import private key and create the encryptor / decryptor

public static HybridMLKem ImportPkcs8PrivateKey(ReadOnlySpan<byte> pkcs8)

Parameters

pkcs8 ReadOnlySpan<byte>

PKCS#8 encoded private key

Returns

HybridMLKem

encryptor / decryptor instance