Documentation ¶
Index ¶
- func AesCBCDecrypt(cipherText, key, iv []byte) ([]byte, error)
- func AesCBCEncrypt(originText, key, iv []byte) ([]byte, error)
- func AesCFBDecrypt(cipherText, key, iv []byte) ([]byte, error)
- func AesCFBEncrypt(originText, key, iv []byte) ([]byte, error)
- func AesCTRDecrypt(cipherText, key, iv []byte) ([]byte, error)
- func AesCTREncrypt(originText, key, iv []byte) ([]byte, error)
- func AesGCMDecrypt(cipherText, key, nonce []byte) ([]byte, error)
- func AesGCMEncrypt(originText, key, nonce []byte) ([]byte, error)
- func AesOFBDecrypt(cipherText, key, iv []byte) ([]byte, error)
- func AesOFBDecryptStreamWriter(cipherText, key, iv []byte) ([]byte, error)
- func AesOFBEncrypt(originText, key, iv []byte) ([]byte, error)
- func AesOFBEncryptStreamReader(originText, key, iv []byte) ([]byte, error)
- func BuildRSAPKCS1PrivateKey(privateKey []byte) (*rsa.PrivateKey, error)
- func BuildRSAPKCS1PublicKey(publicKey []byte) (*rsa.PublicKey, error)
- func BuildRSAPrivateKey(privateKey []byte) (*rsa.PrivateKey, error)
- func BuildRSAPublicKey(publicKey []byte) (*rsa.PublicKey, error)
- func DesCBCDecrypt(cipherText, key, iv []byte) ([]byte, error)
- func DesCBCEncrypt(originText, key, iv []byte) ([]byte, error)
- func DesCFBDecrypt(cipherText, key, iv []byte) ([]byte, error)
- func DesCFBEncrypt(originText, key, iv []byte) ([]byte, error)
- func DesCTRDecrypt(cipherText, key, iv []byte) ([]byte, error)
- func DesCTREncrypt(originText, key, iv []byte) ([]byte, error)
- func DesOFBDecrypt(cipherText, key, iv []byte) ([]byte, error)
- func DesOFBDecryptStreamWriter(cipherText, key, iv []byte) ([]byte, error)
- func DesOFBEncrypt(originText, key, iv []byte) ([]byte, error)
- func DesOFBEncryptStreamReader(originText, key, iv []byte) ([]byte, error)
- func RsaDecrypt(privateKey, cipherText []byte) ([]byte, error)
- func RsaDecryptOAEP(privateKey, cipherText, label []byte) ([]byte, error)
- func RsaEncrypt(publicKey, originText []byte) ([]byte, error)
- func RsaEncryptOAEP(publicKey, originText, label []byte) ([]byte, error)
- func RsaSign(privateKey, originText []byte) ([]byte, error)
- func RsaSignPass(privateKey, originText []byte, opts *rsa.PSSOptions) ([]byte, error)
- func RsaVerify(publicKey, originText, signature []byte) error
- func RsaVerifyPass(publicKey, originText, signature []byte, opts *rsa.PSSOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesCBCDecrypt ¶
AesCBCDecrypt 解密
func AesCBCEncrypt ¶
AesCBCEncrypt 加密
func AesCFBDecrypt ¶
AesCFBDecrypt 解密
func AesCFBEncrypt ¶
AesCFBEncrypt 加密
func AesCTRDecrypt ¶
AesCTRDecrypt 解密
func AesCTREncrypt ¶
AesCTREncrypt 加密
func AesGCMDecrypt ¶
AesGCMDecrypt 解密
func AesGCMEncrypt ¶
AesGCMEncrypt 加密
func AesOFBDecrypt ¶
AesOFBDecrypt 解密
func AesOFBDecryptStreamWriter ¶
AesOFBDecryptStreamWriter 解密
func AesOFBEncrypt ¶
AesOFBEncrypt 加密
func AesOFBEncryptStreamReader ¶
AesOFBEncryptStreamReader 加密
func BuildRSAPKCS1PrivateKey ¶
func BuildRSAPKCS1PrivateKey(privateKey []byte) (*rsa.PrivateKey, error)
BuildRSAPKCS1PrivateKey build PrivateKey
func BuildRSAPKCS1PublicKey ¶
BuildRSAPKCS1PublicKey build PublicKey
func BuildRSAPrivateKey ¶
func BuildRSAPrivateKey(privateKey []byte) (*rsa.PrivateKey, error)
BuildRSAPrivateKey build PrivateKey
func BuildRSAPublicKey ¶
BuildRSAPublicKey build PublicKey
func DesCBCDecrypt ¶
DesCBCDecrypt 解密
func DesCBCEncrypt ¶
DesCBCEncrypt 加密
func DesCFBDecrypt ¶
DesCFBDecrypt 解密
func DesCFBEncrypt ¶
DesCFBEncrypt 加密
func DesCTRDecrypt ¶
DesCTRDecrypt 解密
func DesCTREncrypt ¶
DesCTREncrypt 加密
func DesOFBDecrypt ¶
DesOFBDecrypt 解密
func DesOFBDecryptStreamWriter ¶
DesOFBDecryptStreamWriter 解密
func DesOFBEncrypt ¶
DesOFBEncrypt 加密
func DesOFBEncryptStreamReader ¶
DesOFBEncryptStreamReader 加密
func RsaDecryptOAEP ¶
RsaDecryptOAEP 解密
func RsaEncryptOAEP ¶
RsaEncryptOAEP 加密
func RsaSignPass ¶
func RsaSignPass(privateKey, originText []byte, opts *rsa.PSSOptions) ([]byte, error)
RsaSignPass 签名
func RsaVerifyPass ¶
func RsaVerifyPass(publicKey, originText, signature []byte, opts *rsa.PSSOptions) error
RsaVerifyPass 验签
Types ¶
This section is empty.