Table of Contents

Method ImportEncapsulationKey

Namespace
Rotherprivat.KemBasedNet.Cryptography
Assembly
KemBasedNet.dll

ImportEncapsulationKey(MLKemAlgorithm, byte[])

Import public / encapsulation key and create the encryptor / decryptor

public static HybridMLKem ImportEncapsulationKey(MLKemAlgorithm algorithm, byte[] encapsulationKey)

Parameters

algorithm MLKemAlgorithm

ML-KEM algorithm

encapsulationKey byte[]

public / encapsulation key

Returns

HybridMLKem

encryptor / decryptor

ImportEncapsulationKey(CompositeMLKemAlgorithm, byte[])

Import public / encapsulation key and create the encryptor / decryptor

public static HybridMLKem ImportEncapsulationKey(CompositeMLKemAlgorithm algorithm, byte[] encapsulationKey)

Parameters

algorithm CompositeMLKemAlgorithm

CompositeMLKem algorithm

encapsulationKey byte[]

public / encapsulation key

Returns

HybridMLKem

encryptor / decryptor