Method GenerateKey
- Namespace
- Rotherprivat.KemBasedNet.Cryptography
- Assembly
- KemBasedNet.dll
GenerateKey(MLKemAlgorithm)
Generate keys for ML-KEM algorithm and create the encryptor / decryptor
public static HybridMLKem GenerateKey(MLKemAlgorithm mLKemAlgorithm)
Parameters
mLKemAlgorithmMLKemAlgorithmML-KEM algorithm
Returns
- HybridMLKem
encryptor / decryptor instance
GenerateKey(CompositeMLKemAlgorithm)
Generate keys for CompositeMLKKEM algorithm and create the encryptor / decryptor
public static HybridMLKem GenerateKey(CompositeMLKemAlgorithm compositeMLKemAlgorithm)
Parameters
compositeMLKemAlgorithmCompositeMLKemAlgorithmCompositeMLKKEM algorithm
Returns
- HybridMLKem
encryptor / decryptor instance