Table of Contents

Method ImportSubjectPublicKeyInfo

Namespace
Rotherprivat.KemBasedNet.Cryptography
Assembly
KemBasedNet.dll

ImportSubjectPublicKeyInfo(byte[])

Import public / encapsulation key and create the encryptor / decryptor

public static HybridMLKem ImportSubjectPublicKeyInfo(byte[] publicKey)

Parameters

publicKey byte[]

DER encoded public key

Returns

HybridMLKem

encryptor / decryptor instance

Exceptions

CryptographicException

ImportSubjectPublicKeyInfo(ReadOnlySpan<byte>)

Import public / encapsulation key and create the encryptor / decryptor

public static HybridMLKem ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> publicKey)

Parameters

publicKey ReadOnlySpan<byte>

DER encoded public key

Returns

HybridMLKem

encryptor / decryptor instance

Exceptions

CryptographicException