Documentation ¶
Index ¶
- func AESDecryptWithGCM(data string, key string, nonceStr string, additionalData string) string
- func DecryptOAEP(ciphertext string, pemPath string) string
- func EncryptOAEP(text string, pemPath string) string
- func Get(url string) (body []byte, err error)
- func IsBlank(str string) bool
- func IsNotBlank(str string) bool
- func ParsePKCS1PrivateKey(pemPath string) (privateKey *rsa.PrivateKey, err error)
- func ParsePKIXPublicKey(pemPath string) (publicKey *rsa.PublicKey, err error)
- func Post(url, contentType string, data []byte) ([]byte, error)
- func PostWithAuthorizationSerial(url string, data []byte, authorization string, serial string) ([]byte, error)
- func PostWithJSON(url string, data []byte) ([]byte, error)
- func SHA256withRSA(data string, pem string) (string, error)
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESDecryptWithGCM ¶
AESDecryptWithGCM AES-256-GCM
func ParsePKCS1PrivateKey ¶
func ParsePKCS1PrivateKey(pemPath string) (privateKey *rsa.PrivateKey, err error)
ParsePKCS1PrivateKey 解析私钥
func ParsePKIXPublicKey ¶
ParsePKIXPublicKey 获取RSA公钥
func PostWithAuthorizationSerial ¶
func PostWithAuthorizationSerial(url string, data []byte, authorization string, serial string) ([]byte, error)
PostWithAuthorizationSerial POST 认证信息 证书编号
func PostWithJSON ¶
PostWithJSON http post
Types ¶
Click to show internal directories.
Click to hide internal directories.