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
algorithmCompositeMLKemAlgorithmAlgorithm description
encapsulationKeybyte[]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
algorithmCompositeMLKemAlgorithmAlgorithm description
encapsulationKeyReadOnlySpan<byte>encapsulation- /public- key
Returns
- CompositeMLKem
keys and algorithm implementation