Method ImportEncryptedPkcs8PrivateKey
- Namespace
- Rotherprivat.KemBasedNet.Cryptography
- Assembly
- KemBasedNet.dll
ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte>, byte[])
Import private keys of ML-KEM and traditional key exchange algorithms
public static CompositeMLKem ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, byte[] pkcs8)
Parameters
passwordBytesReadOnlySpan<byte>password
pkcs8byte[]PKCS#8 encoded private key
Returns
- CompositeMLKem
keys and algorithm implementation
Exceptions
ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char>, byte[])
Import private keys of ML-KEM and traditional key exchange algorithms
public static CompositeMLKem ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, byte[] pkcs8)
Parameters
passwordReadOnlySpan<char>password
pkcs8byte[]PKCS#8 encoded private key
Returns
- CompositeMLKem
keys and algorithm implementation
Exceptions
ImportEncryptedPkcs8PrivateKey(string, byte[])
Import private keys of ML-KEM and traditional key exchange algorithms
public static CompositeMLKem ImportEncryptedPkcs8PrivateKey(string password, byte[] pkcs8)
Parameters
Returns
- CompositeMLKem
keys and algorithm implementation