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
algorithmMLKemAlgorithmML-KEM algorithm
encapsulationKeybyte[]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
algorithmCompositeMLKemAlgorithmCompositeMLKem algorithm
encapsulationKeybyte[]public / encapsulation key
Returns
- HybridMLKem
encryptor / decryptor