Table of Contents

Method ImportFromPem

Namespace
Rotherprivat.KemBasedNet.Cryptography
Assembly
KemBasedNet.dll

ImportFromPem(string)

Import public / encapsulation key and create the encryptor / decryptor

public static HybridMLKem ImportFromPem(string pemKey)

Parameters

pemKey string

PEM encoded public key

Returns

HybridMLKem

encryptor / decryptor instance

Exceptions

CryptographicException

ImportFromPem(ReadOnlySpan<char>)

Import public / encapsulation key and create the encryptor / decryptor

public static HybridMLKem ImportFromPem(ReadOnlySpan<char> pemKey)

Parameters

pemKey ReadOnlySpan<char>

PEM encoded public key

Returns

HybridMLKem

encryptor / decryptor instance

Exceptions

CryptographicException