Method ImportSubjectPublicKeyInfo
- Namespace
- Rotherprivat.KemBasedNet.Cryptography
- Assembly
- KemBasedNet.dll
ImportSubjectPublicKeyInfo(byte[])
Import public / encapsulation key and create the encryptor / decryptor
public static HybridMLKem ImportSubjectPublicKeyInfo(byte[] publicKey)
Parameters
publicKeybyte[]DER encoded public key
Returns
- HybridMLKem
encryptor / decryptor instance
Exceptions
ImportSubjectPublicKeyInfo(ReadOnlySpan<byte>)
Import public / encapsulation key and create the encryptor / decryptor
public static HybridMLKem ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> publicKey)
Parameters
publicKeyReadOnlySpan<byte>DER encoded public key
Returns
- HybridMLKem
encryptor / decryptor instance