Documentation
¶
Index ¶
- Constants
- func DecryptWithOAEP(base64Data string, privateKeyPath string) ([]byte, error)
- func DecryptWithRSA(base64Data string, privateKeyPath string) ([]byte, error)
- func EncryContentWithAES(data string, aesKey []byte, aesIv []byte) (string, error)
- func EncryContentWithAESGCM(data string, aesKey []byte, aesIv []byte) (string, error)
- func EncryptWithOAEP(data []byte, publicKeyPath string) (string, error)
- func EncryptWithRSA(data []byte, publicKeyPath string) (string, error)
- func NewCBCDecrypter(key []byte, iv []byte, ciphertext []byte) ([]byte, error)
- func NewGCMDecrypter(key []byte, iv []byte, ciphertext []byte) ([]byte, error)
- func SignParamsWithRSA(data string, privateKeyPath string) (string, error)
- func SignParamsWithRSAPSS(data string, privateKeyPath string) (string, error)
- func VerifySignWithRSA(data string, base64Sign string, rasPublicKeyPath string) bool
- func VerifySignWithRSAPSS(data string, base64Sign string, rasPublicKeyPath string) bool
Constants ¶
View Source
const ECB_OAEP = "ECB_OAEP"
View Source
const GCM = "GCM_NOPADDING"
Variables ¶
This section is empty.
Functions ¶
func DecryptWithOAEP ¶
func EncryContentWithAES ¶
func EncryContentWithAESGCM ¶
func NewCBCDecrypter ¶
func NewGCMDecrypter ¶
func SignParamsWithRSAPSS ¶ added in v1.0.2
func VerifySignWithRSA ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.