std::encoding::pem¶
Status: experimental
PEM block encoder and decoder.
API details and source¶
The implementation source contains the complete declarations and implementation notes. The table below lists canonical Gossamer call signatures; every item name links directly to its implementation file.
| Item | Canonical signature or declaration | Description |
|---|---|---|
Block |
type Block |
A decoded PEM block with type label and DER bytes. |
decode |
fn decode(data: String) -> Result<pem::Block, errors::Error> |
Decodes the first PEM block from a string. |
decode_all |
fn decode_all(data: String) -> Result<Vec<pem::Block>, errors::Error> |
Decodes all PEM blocks from a string. |
encode |
fn encode(block: pem::Block) -> String |
Encodes a Block as a PEM string. |