Method ImportPkcs8PrivateKey
- Namespace
- Rotherprivat.KemBasedNet.Cryptography
- Assembly
- KemBasedNet.dll
ImportPkcs8PrivateKey(byte[])
Import private key and create the encryptor / decryptor
public static HybridMLKem ImportPkcs8PrivateKey(byte[] pkcs8)
Parameters
pkcs8byte[]
Returns
- HybridMLKem
encryptor / decryptor instance
Exceptions
ImportPkcs8PrivateKey(ReadOnlySpan<byte>)
Import private key and create the encryptor / decryptor
public static HybridMLKem ImportPkcs8PrivateKey(ReadOnlySpan<byte> pkcs8)
Parameters
pkcs8ReadOnlySpan<byte>PKCS#8 encoded private key
Returns
- HybridMLKem
encryptor / decryptor instance