Class PqcPublicKeyFactory
- Namespace
- Org.BouncyCastle.Pqc.Crypto.Utilities
- Assembly
- BouncyCastle.Cryptography.dll
public static class PqcPublicKeyFactory
- Inheritance
-
PqcPublicKeyFactory
- Inherited Members
Methods
CreateKey(SubjectPublicKeyInfo)
Create a public key from the passed in SubjectPublicKeyInfo
public static AsymmetricKeyParameter CreateKey(SubjectPublicKeyInfo keyInfo)
Parameters
keyInfoSubjectPublicKeyInfothe SubjectPublicKeyInfo containing the key data
Returns
- AsymmetricKeyParameter
the appropriate key parameter
Exceptions
- IOException
on an error decoding the key
CreateKey(SubjectPublicKeyInfo, object)
Create a public key from the passed in SubjectPublicKeyInfo
public static AsymmetricKeyParameter CreateKey(SubjectPublicKeyInfo keyInfo, object defaultParams)
Parameters
keyInfoSubjectPublicKeyInfothe SubjectPublicKeyInfo containing the key data
defaultParamsobjectdefault parameters that might be needed.
Returns
- AsymmetricKeyParameter
the appropriate key parameter
Exceptions
- IOException
on an error decoding the key
CreateKey(byte[])
Create a public key from a SubjectPublicKeyInfo encoding
public static AsymmetricKeyParameter CreateKey(byte[] keyInfoData)
Parameters
keyInfoDatabyte[]the SubjectPublicKeyInfo encoding
Returns
- AsymmetricKeyParameter
the appropriate key parameter
Exceptions
- IOException
on an error decoding the key
CreateKey(Stream)
Create a public key from a SubjectPublicKeyInfo encoding read from a stream
public static AsymmetricKeyParameter CreateKey(Stream inStr)
Parameters
inStrStreamthe stream to read the SubjectPublicKeyInfo encoding from
Returns
- AsymmetricKeyParameter
the appropriate key parameter
Exceptions
- IOException
on an error decoding the key