Versions in this module Expand all Collapse all v0 v0.0.1 Nov 27, 2023 Changes in this version + func FormatAlipayPrivateKey(privateKey string) (pKey string) + func FormatAlipayPublicKey(publicKey string) (pKey string) + func RsaDecrypt(t PKCSType, cipherData []byte, privateKey string) (originData []byte, err error) + func RsaDecryptOAEP(h hash.Hash, t PKCSType, privateKey string, ciphertext, label []byte) (originData []byte, err error) + func RsaEncrypt(t PKCSType, originData []byte, publicKey string) (cipherData []byte, err error) + func RsaEncryptOAEP(h hash.Hash, t PKCSType, publicKey string, originData, label []byte) (cipherData []byte, err error) + type PKCSType uint8 + const PKCS1 + const PKCS8