Documentation
¶
Index ¶
- Constants
- Variables
- func ParseRSAPrivateKeyDER(der []byte) (key *rsa.PrivateKey, err error)
- func ParseRSAPrivateKeyPEM(raw []byte) (key *rsa.PrivateKey, err error)
- func ParseRSAPublicKeyDER(der []byte) (key *rsa.PublicKey, err error)
- func ParseRSAPublicKeyPEM(raw []byte) (key *rsa.PublicKey, err error)
Constants ¶
View Source
const ( PEMTypePKXIPublicKey = "PUBLIC KEY" PEMTypePKCS1PublicKey = "RSA PUBLIC KEY" PEMTypePKCS8PrivateKey = "PRIVATE KEY" PEMTypePKCS1PrivateKey = "RSA PRIVATE KEY" )
Variables ¶
View Source
var ErrInvalidDataFormat = errors.New("invalid data format")
Functions ¶
func ParseRSAPrivateKeyDER ¶
func ParseRSAPrivateKeyDER(der []byte) (key *rsa.PrivateKey, err error)
func ParseRSAPrivateKeyPEM ¶
func ParseRSAPrivateKeyPEM(raw []byte) (key *rsa.PrivateKey, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.