Method ImportPrivateKey
- Namespace
- Rotherprivat.KemBasedNet.Cryptography
- Assembly
- KemBasedNet.dll
ImportPrivateKey(MLKemAlgorithm, byte[])
Import private key and create the encryptor / decryptor
public static HybridMLKem ImportPrivateKey(MLKemAlgorithm algorithm, byte[] privateKey)
Parameters
algorithmMLKemAlgorithmML-KEM algorithm
privateKeybyte[]native private key
Returns
- HybridMLKem
encryptor / decryptor instance
ImportPrivateKey(CompositeMLKemAlgorithm, byte[])
Import private key and create the encryptor / decryptor
public static HybridMLKem ImportPrivateKey(CompositeMLKemAlgorithm algorithm, byte[] privateKey)
Parameters
algorithmCompositeMLKemAlgorithmCompositeMLKem algorithm
privateKeybyte[]native private key
Returns
- HybridMLKem
encryptor / decryptor instance