Documentation ¶
Index ¶
- func PemDecodePrivateKey(pvKey string) (*ecdsa.PrivateKey, error)
- func PemDecodePublicKey(pubKey string) (*ecdsa.PublicKey, error)
- func PemEncodePrivateKey(pvKey *ecdsa.PrivateKey) (string, error)
- func PemEncodePublicKey(pubKey *ecdsa.PublicKey) (string, error)
- func ReadPrivateKeyFromFile(path string) (*ecdsa.PrivateKey, error)
- func ReadPublicKeyFromFile(path string) (*ecdsa.PublicKey, error)
- func ReadRemotePublicKey(url string) (*ecdsa.PublicKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PemDecodePrivateKey ¶
func PemDecodePrivateKey(pvKey string) (*ecdsa.PrivateKey, error)
PemDecodePrivateKey transforms a pem encoded string into a *ecdsa.PrivateKey
func PemDecodePublicKey ¶
PemDecodePublicKey transforms a pem encoded string into a *ecdsa.PublicKey
func PemEncodePrivateKey ¶
func PemEncodePrivateKey(pvKey *ecdsa.PrivateKey) (string, error)
PemEncodePrivateKey transforms a *ecdsa.PrivateKey into a pem encoded string
func PemEncodePublicKey ¶
PemEncodePublicKey transforms a *ecdsa.PublicKey into a pem encoded string
func ReadPrivateKeyFromFile ¶
func ReadPrivateKeyFromFile(path string) (*ecdsa.PrivateKey, error)
ReadPrivateKeyFromFile reads a file containing a pem encoded key into a *ecdsa.PrivateKey
func ReadPublicKeyFromFile ¶
ReadPublicKeyFromFile reads a file containing a pem encoded key into a *ecdsa.PublicKey
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.