Versions in this module Expand all Collapse all v1 v1.0.0 Aug 23, 2023 Changes in this version + func FormatAlipayPrivateKey(privateKey string) (pKey string) + func FormatAlipayPublicKey(publicKey string) (pKey string) + func RsaDecryptData(t PKCSType, cipherData []byte, privateKey string) (originData []byte, err error) + func RsaDecryptOAEPData(h hash.Hash, t PKCSType, privateKey string, ciphertext, label []byte) (originData []byte, err error) + func RsaEncryptData(t PKCSType, originData []byte, publicKey string) (cipherData []byte, err error) + func RsaEncryptOAEPData(h hash.Hash, t PKCSType, publicKey string, originData, label []byte) (cipherData []byte, err error) + type PKCSType uint8 + const PKCS1 + const PKCS8