Documentation
¶
Index ¶
- func MustReadPrivateKey(encodedPrivateKey []byte) crypto.PrivateKey
- func MustReadPrivateKeyFile(pkFile string) crypto.PrivateKey
- func MustReadPublicKeyFile(pubkeyFile string) crypto.PublicKey
- func ReadPrivateKey(encodedPrivateKey []byte) (crypto.PrivateKey, error)
- func ReadPrivateKeyFile(pkFile string) (crypto.PrivateKey, error)
- func ReadPublicKey(encodedPubkey []byte) (crypto.PublicKey, error)
- func ReadPublicKeyFile(pubkeyFile string) (crypto.PublicKey, error)
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 ¶
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 ¶
ReadPublicKey decodes a PEM encoded public key and parses into crypto.PublicKey
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.