Documentation ¶
Index ¶
- func LoadCertSerialNo(certPath string) (string, error)
- func LoadPrivKeyAndCert(pfxPath string, password string) (*rsa.PrivateKey, *x509.Certificate, error)
- func LoadPrivateKey(privKeyPath string) (*rsa.PrivateKey, error)
- func LoadPubKeyFromCert(certPath string) (*rsa.PublicKey, error)
- func LoadPublicKey(pubKeyPath string) (*rsa.PublicKey, error)
- func MD5Digest(data []byte) []byte
- func ParseCertSerialNo(data []byte) (string, error)
- func ParsePrivateKey(data []byte) (*rsa.PrivateKey, error)
- func ParsePublicKey(data []byte) (*rsa.PublicKey, error)
- func SHA1Digest(data []byte) []byte
- func Sign(priKey *rsa.PrivateKey, data []byte) (string, error)
- func Verify(pubKey *rsa.PublicKey, data []byte, sign string) error
- func VerifyRSAWithMD5(pubKey *rsa.PublicKey, data []byte, sign string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadCertSerialNo ¶
func LoadPrivKeyAndCert ¶
func LoadPrivKeyAndCert(pfxPath string, password string) (*rsa.PrivateKey, *x509.Certificate, error)
func LoadPrivateKey ¶
func LoadPrivateKey(privKeyPath string) (*rsa.PrivateKey, error)
func ParseCertSerialNo ¶
func ParsePrivateKey ¶
func ParsePrivateKey(data []byte) (*rsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.