signing

package
v0.0.0-...-08e1117 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyFilePerms    fs.FileMode = 0600
	PubKeyFilePerms fs.FileMode = 0644
)

Variables

This section is empty.

Functions

func EncodedECDSAReaders

func EncodedECDSAReaders(key *ecdsa.PrivateKey, pub *ecdsa.PublicKey) (keyReader, pubReader io.Reader, err error)

func EncodedPubECDSAReader

func EncodedPubECDSAReader(pub *ecdsa.PublicKey) (pubReader io.Reader, err error)

func GenerateECDSA

func GenerateECDSA() (*ecdsa.PrivateKey, *ecdsa.PublicKey, error)

func KeyFilePermsValid

func KeyFilePermsValid(keyFile, pubFile string) (keyFileValid, pubFileValid bool, err error)

func PubKeyFilePermsValid

func PubKeyFilePermsValid(pubFile string) (pubFileValid bool, err error)

func ReadECDSA

func ReadECDSA(keyReader, pubReader io.Reader) (*ecdsa.PrivateKey, *ecdsa.PublicKey, error)

func ReadECDSAFiles

func ReadECDSAFiles(keyFile, pubFile string) (*ecdsa.PrivateKey, *ecdsa.PublicKey, error)

func ReadPubECDSA

func ReadPubECDSA(pubReader io.Reader) (*ecdsa.PublicKey, error)

func ReadPubECDSAFile

func ReadPubECDSAFile(pubFile string) (*ecdsa.PublicKey, error)

func SetKeyFilePerms

func SetKeyFilePerms(keyFile, pubFile string) error

func WriteECDSA

func WriteECDSA(key *ecdsa.PrivateKey, keyWriter io.Writer, pub *ecdsa.PublicKey, pubWriter io.Writer) error

func WriteECDSAFiles

func WriteECDSAFiles(key *ecdsa.PrivateKey, keyFile string, pub *ecdsa.PublicKey, pubFile string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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