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