Documentation ¶
Index ¶
- Constants
- func EncodedECDSAReaders(key *ecdsa.PrivateKey, pub *ecdsa.PublicKey) (keyReader, pubReader io.Reader, err error)
- func EncodedPubECDSAReader(pub *ecdsa.PublicKey) (pubReader io.Reader, err error)
- func GenerateECDSA() (*ecdsa.PrivateKey, *ecdsa.PublicKey, error)
- func KeyFilePermsValid(keyFile, pubFile string) (keyFileValid, pubFileValid bool, err error)
- func PubKeyFilePermsValid(pubFile string) (pubFileValid bool, err error)
- func ReadECDSA(keyReader, pubReader io.Reader) (*ecdsa.PrivateKey, *ecdsa.PublicKey, error)
- func ReadECDSAFiles(keyFile, pubFile string) (*ecdsa.PrivateKey, *ecdsa.PublicKey, error)
- func ReadPubECDSA(pubReader io.Reader) (*ecdsa.PublicKey, error)
- func ReadPubECDSAFile(pubFile string) (*ecdsa.PublicKey, error)
- func SetKeyFilePerms(keyFile, pubFile string) error
- func WriteECDSA(key *ecdsa.PrivateKey, keyWriter io.Writer, pub *ecdsa.PublicKey, ...) error
- func WriteECDSAFiles(key *ecdsa.PrivateKey, keyFile string, pub *ecdsa.PublicKey, pubFile string) error
Constants ¶
View Source
const ( KeyFilePerms fs.FileMode = 0600 PubKeyFilePerms fs.FileMode = 0644 )
Variables ¶
This section is empty.
Functions ¶
func EncodedECDSAReaders ¶
func EncodedPubECDSAReader ¶
func GenerateECDSA ¶
func GenerateECDSA() (*ecdsa.PrivateKey, *ecdsa.PublicKey, error)
func KeyFilePermsValid ¶
func PubKeyFilePermsValid ¶
func ReadECDSAFiles ¶
func SetKeyFilePerms ¶
func WriteECDSA ¶
func WriteECDSAFiles ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.