internal

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePEM

func DecodePEM(pemBytes []byte, typ string) (*pem.Block, error)

DecodePEM scans the supplied pem data, which may include multiple blocks, to return the decoded instance of the first block with the requested type.

func EncodePEM

func EncodePEM(typ string, der []byte, headers map[string]string) ([]byte, error)

EncodePEM creates an encodes a PEM block with the specified type, headers and bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL