Table of Contents

Class PqcSubjectPublicKeyInfoFactory

Namespace
Org.BouncyCastle.Pqc.Crypto.Utilities
Assembly
BouncyCastle.Cryptography.dll

A factory to produce Public Key Info Objects.

public static class PqcSubjectPublicKeyInfoFactory
Inheritance
PqcSubjectPublicKeyInfoFactory
Inherited Members

Methods

CreateSubjectPublicKeyInfo(AsymmetricKeyParameter)

Create a Subject Public Key Info object for a given public key.

public static SubjectPublicKeyInfo CreateSubjectPublicKeyInfo(AsymmetricKeyParameter publicKey)

Parameters

publicKey AsymmetricKeyParameter

One of ElGammalPublicKeyParameters, DSAPublicKeyParameter, DHPublicKeyParameters, RsaKeyParameters or ECPublicKeyParameters

Returns

SubjectPublicKeyInfo

A subject public key info object.

Exceptions

Exception

Throw exception if object provided is not one of the above.