Documentation
¶
Index ¶
- Variables
- func LoadRSAPrivateKey(pemFile string) (*rsa.PrivateKey, error)
- func LoadRSAPublicKey(pemFile string) (*rsa.PublicKey, error)
- func MarshalPrivkey(privkey *rsa.PrivateKey) []byte
- func MarshalPubkey(pubkey *rsa.PublicKey) ([]byte, error)
- func UnmarshalPrivkey(data []byte) (*rsa.PrivateKey, error)
- func UnmarshalPubkey(data []byte) (*rsa.PublicKey, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidPublicKeyType = errors.New("invalid public key type") ErrEmptyPEMBlock = errors.New("empty pem block") )
Functions ¶
func LoadRSAPrivateKey ¶
func LoadRSAPrivateKey(pemFile string) (*rsa.PrivateKey, error)
func MarshalPrivkey ¶
func MarshalPrivkey(privkey *rsa.PrivateKey) []byte
func UnmarshalPrivkey ¶
func UnmarshalPrivkey(data []byte) (*rsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.