Class PemBlock
A PEM-encoded block (RFC 7468). A PEM block is a base64-encoded DER blob wrapped in text labels.
Inherited Members
Namespace: DRIT.Mail.Rfc.Crypto
Assembly: DRIT.Mail.dll
Syntax
public sealed class PemBlock
Constructors
View SourcePemBlock(string, byte[])
Initializes a new instance of the PemBlock class.
Declaration
public PemBlock(string label, byte[] derData)
Parameters
| Type | Name | Description |
|---|---|---|
| string | label | Specifies the label value. |
| byte[] | derData | The der data used by the operation. |
Properties
View SourceDerData
Gets the decoded DER bytes.
Declaration
public byte[] DerData { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Label
Gets the PEM label (e.g. RSA PRIVATE KEY).
Declaration
public string Label { get; }
Property Value
| Type | Description |
|---|---|
| string |