Documentation ¶
Index ¶
- func MustPEMToRSAPrivateKey(buf []byte) *rsa.PrivateKey
- func MustPEMToRSAPublicKey(buf []byte) *rsa.PublicKey
- func PEMToRSAPrivateKey(buf []byte) (*rsa.PrivateKey, error)
- func PEMToRSAPublicKey(buf []byte) (*rsa.PublicKey, error)
- func RSAPrivateKeyToPEM(key *rsa.PrivateKey) []byte
- func RSAPublicKeyToPEM(key *rsa.PublicKey) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustPEMToRSAPrivateKey ¶
func MustPEMToRSAPrivateKey(buf []byte) *rsa.PrivateKey
MustPEMToRSAPrivateKey is like PEMToRSAPrivateKey but panics on error.
func MustPEMToRSAPublicKey ¶
MustPEMToRSAPublicKey is like PEMToRSAPublicKey but panics on error.
func PEMToRSAPrivateKey ¶
func PEMToRSAPrivateKey(buf []byte) (*rsa.PrivateKey, error)
PEMToRSAPrivateKey tries to find and parse an RSA private key in the given PEM file.
func PEMToRSAPublicKey ¶
PEMToRSAPublicKey tries to find and parse an RSA public key in the given PEM file.
func RSAPrivateKeyToPEM ¶
func RSAPrivateKeyToPEM(key *rsa.PrivateKey) []byte
RSAPrivateKeyToPEM encodes an RSA private key to PEM format.
func RSAPublicKeyToPEM ¶
RSAPublicKeyToPEM encodes an RSA public key to PEM format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.