Table of Contents

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

keyInfo SubjectPublicKeyInfo

the 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

keyInfo SubjectPublicKeyInfo

the SubjectPublicKeyInfo containing the key data

defaultParams object

default 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

keyInfoData byte[]

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

inStr Stream

the stream to read the SubjectPublicKeyInfo encoding from

Returns

AsymmetricKeyParameter

the appropriate key parameter

Exceptions

IOException

on an error decoding the key