Table of Contents

Method ImportEncapsulationKey

Namespace
Rotherprivat.KemBasedNet.Cryptography
Assembly
KemBasedNet.dll

ImportEncapsulationKey(CompositeMLKemAlgorithm, byte[])

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

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

Parameters

algorithm CompositeMLKemAlgorithm

Algorithm description

encapsulationKey byte[]

encapsulation- /public- key

Returns

CompositeMLKem

keys and algorithm implementation

ImportEncapsulationKey(CompositeMLKemAlgorithm, ReadOnlySpan<byte>)

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

public static CompositeMLKem ImportEncapsulationKey(CompositeMLKemAlgorithm algorithm, ReadOnlySpan<byte> encapsulationKey)

Parameters

algorithm CompositeMLKemAlgorithm

Algorithm description

encapsulationKey ReadOnlySpan<byte>

encapsulation- /public- key

Returns

CompositeMLKem

keys and algorithm implementation