keyutil

package
v0.0.0-...-46f36e0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package keyutil provides some simple wrappers for serializing + deserializing cryptographic keys. Currently, only Ed25519 keypair utilities are supported.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeED25519PrivateKey

func DecodeED25519PrivateKey(privDER []byte) (ed25519.PrivateKey, error)

func DecodeED25519PrivateKeyFromFile

func DecodeED25519PrivateKeyFromFile(in string) (ed25519.PrivateKey, error)

func DecodeED25519PublicKey

func DecodeED25519PublicKey(pubDER []byte) (ed25519.PublicKey, error)

func DecodeED25519PublicKeyFromFile

func DecodeED25519PublicKeyFromFile(in string) (ed25519.PublicKey, error)

func EncodeED25519PrivateKeyToFile

func EncodeED25519PrivateKeyToFile(priv ed25519.PrivateKey, out string) error

func EncodeED25519PublicKeyToFile

func EncodeED25519PublicKeyToFile(pub ed25519.PublicKey, out string) error

func GenerateED25519ToFiles

func GenerateED25519ToFiles(pubFile, privFile string) error

GenerateED25519ToFiles generates an Ed25519 keypair and writes the public and private keys to the given files, in PEM-encoded ASN.1 DER format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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