Method ImportSubjectPublicKeyInfo
- Namespace
- Rotherprivat.KemBasedNet.Cryptography
- Assembly
- KemBasedNet.dll
ImportSubjectPublicKeyInfo(byte[])
Import encapsulation keys of ML-KEM and traditional key exchange algorithms
public static CompositeMLKem ImportSubjectPublicKeyInfo(byte[] publicKey)
Parameters
publicKeybyte[]DER encoded encapsulation- /public- key
Returns
- CompositeMLKem
keys and algorithm implementation
ImportSubjectPublicKeyInfo(ReadOnlySpan<byte>)
Import encapsulation keys of ML-KEM and traditional key exchange algorithms
public static CompositeMLKem ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> publicKey)
Parameters
publicKeyReadOnlySpan<byte>DER encoded encapsulation- /public- key
Returns
- CompositeMLKem
keys and algorithm implementation