Table of Contents

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

algorithm MLKemAlgorithm

ML-KEM algorithm

privateKey byte[]

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

algorithm CompositeMLKemAlgorithm

CompositeMLKem algorithm

privateKey byte[]

native private key

Returns

HybridMLKem

encryptor / decryptor instance