keyutil

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustReadPrivateKey

func MustReadPrivateKey(encodedPrivateKey []byte) crypto.PrivateKey

func MustReadPrivateKeyFile

func MustReadPrivateKeyFile(pkFile string) crypto.PrivateKey

MustReadPrivateKeyFile decodes a PEM encoded private key file and parses into a crypto.PrivateKey or panics.

func MustReadPublicKeyFile

func MustReadPublicKeyFile(pubkeyFile string) crypto.PublicKey

MustReadPublicKeyFile reads a PEM encoded public key file or panics

func ReadPrivateKey

func ReadPrivateKey(encodedPrivateKey []byte) (crypto.PrivateKey, error)

ReadPrivateKey decoded a PEM encoded private key and parses into a crypto.PrivateKey.

func ReadPrivateKeyFile

func ReadPrivateKeyFile(pkFile string) (crypto.PrivateKey, error)

ReadPrivateKeyFile opens the given file and calls ReadPrivateKey to return a crypto.PrivateKey

func ReadPublicKey

func ReadPublicKey(encodedPubkey []byte) (crypto.PublicKey, error)

ReadPublicKey decodes a PEM encoded public key and parses into crypto.PublicKey

func ReadPublicKeyFile

func ReadPublicKeyFile(pubkeyFile string) (crypto.PublicKey, error)

ReadPublicKeyFile reads a PEM encdoded public key file and parses into crypto.PublicKey

Types

This section is empty.

Jump to

Keyboard shortcuts

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