go2hx

manual

github

Module: stdgo.encoding.pem

(view library index)

Overview

Index

Classes

import

class Pem

Package pem implements the PEM data encoding, which originated in Privacy
    Enhanced Mail. The most common use of PEM encoding today is in TLS keys and
    certificates. See RFC 1421.

Pem function decode

function decode(_data:Array<UInt>):stdgo.Tuple<stdgo.encoding.pem.Block, Array<UInt>>
Decode will find the next PEM formatted block (certificate, private key
        etc) in the input. It returns that block and the remainder of the input. If
        no PEM data is found, p is nil and the whole of the input is returned in
        rest.

(view code)

Pem function encode

function encode(_out:stdgo._internal.io.Writer, _b:stdgo.encoding.pem.Block):stdgo.Error

Encode writes the PEM encoding of b to out.

(view code)

Pem function encodeToMemory

function encodeToMemory(_b:stdgo.encoding.pem.Block):Array<UInt>

EncodeToMemory returns the PEM encoding of b.

If b has invalid headers and cannot be encoded, EncodeToMemory returns nil. If it is important to report details about this error case, use Encode instead.

(view code)

Abstracts

abstract Block

(view file containing code)

abstract T_lineBreaker

(view file containing code)