Method ImportFromPem
- Namespace
- Rotherprivat.KemBasedNet.Cryptography
- Assembly
- KemBasedNet.dll
ImportFromPem(string)
Import encapsulation keys of ML-KEM and traditional key exchange algorithms
public static CompositeMLKem ImportFromPem(string pemKey)
Parameters
pemKeystringPEM encoded encapsulation- /public- key
Returns
- CompositeMLKem
keys and algorithm implementation
ImportFromPem(ReadOnlySpan<char>)
Import encapsulation keys of ML-KEM and traditional key exchange algorithms
public static CompositeMLKem ImportFromPem(ReadOnlySpan<char> pemKey)
Parameters
pemKeyReadOnlySpan<char>PEM encoded encapsulation- /public- key
Returns
- CompositeMLKem
keys and algorithm implementation