pemDecode

fnPemBlock pemDecode(string pem) @safe

Decodes a PEM-encoded string into its label and DER bytes.

Parameters

pemThe PEM-encoded string.

Returns

A PemBlock containing the label and decoded bytes.

Throws

CryptoException if the PEM format is invalid.