# Packages
No description provided by the author
# Functions
DecryptAES256GCM 使用 AEAD_AES_256_GCM 算法进行解密
你可以使用此算法完成微信支付平台证书和回调报文解密,详见: https://wechatpay-api.gitbook.io/wechatpay-api-v3/qian-ming-zhi-nan-1/zheng-shu-he-hui-tiao-bao-wen-jie-mi.
DecryptOAEP 使用私钥进行解密.
DecryptPKCS1v15 使用私钥对PKCS1 padding方式加密的字符串进行解密.
EncryptOAEPWithCertificate 先解析出证书中的公钥,然后使用 OAEP padding方式公钥进行加密.
EncryptOAEPWithPublicKey 使用 OAEP padding方式用公钥进行加密.
EncryptPKCS1v15WithCertificate 先解析出证书中的公钥,然后使用PKCS1 padding方式用公钥进行加密.
EncryptPKCS1v15WithPublicKey 使用PKCS1 padding方式用公钥进行加密.
GenerateNonce 生成一个长度为 NonceLength 的随机字符串(只包含大小写字母与数字).
GetCertificateSerialNumber 从证书中获取证书序列号.
IsCertExpired 判定证书在特定时间是否过期
Deprecated: 请使用 IsCertificateExpired.
IsCertificateExpired 判定证书在特定时间是否过期.
IsCertificateValid 判定证书在特定时间是否有效.
IsCertValid 判定证书在特定时间是否有效
Deprecated: 请使用 IsCertificateValid.
LoadCertificate 通过证书的文本内容加载证书.
LoadCertificateWithPath 通过证书的文件路径加载证书.
LoadPrivateKey 通过私钥的文本内容加载私钥.
LoadPrivateKeyWithPath 通过私钥的文件路径内容加载私钥.
LoadPublicKey 通过公钥的文本内容加载公钥.
LoadPublicKeyWithPath 通过公钥的文件路径加载公钥.
SignSHA256WithRSA 通过私钥对字符串以 SHA256WithRSA 算法生成签名信息.