Class SubjectPublicKeyInfo
A SubjectPublicKeyInfo structure (RFC 5280 §4.1.2.7). Contains the algorithm identifier and the public key bits.
Inherited Members
Namespace: DRIT.Mail.Rfc.Crypto.X509
Assembly: DRIT.Mail.dll
Syntax
public sealed class SubjectPublicKeyInfo
Constructors
View SourceSubjectPublicKeyInfo(AlgorithmIdentifier, byte[])
Initializes a new instance of the SubjectPublicKeyInfo class.
Declaration
public SubjectPublicKeyInfo(AlgorithmIdentifier algorithm, byte[] publicKey)
Parameters
| Type | Name | Description |
|---|---|---|
| AlgorithmIdentifier | algorithm | Specifies the algorithm value. |
| byte[] | publicKey | The public key used by the operation. |
Properties
View SourceAlgorithm
Gets the algorithm identifier.
Declaration
public AlgorithmIdentifier Algorithm { get; }
Property Value
| Type | Description |
|---|---|
| AlgorithmIdentifier |
PublicKey
Gets the public key bytes (BIT STRING content without the unused-bits prefix). For RSA, this is the DER-encoded RSAPublicKey.
Declaration
public byte[] PublicKey { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |