Documentation
¶
Index ¶
- func AESDecryptGCM(k string, ct string, iv []byte, additionalData []byte) (string, error)
- func AESEncryptGCM(k string, plaintext string, iv []byte, additionalData []byte) (string, error)
- func AESTestGcm()
- func DecryptRSA(rsaPriKey *rsa.PrivateKey, data string) (string, error)
- func EncryptRSA(rsaPubKey *rsa.PublicKey, data string) (string, error)
- func GetKeyWithIvByRSA(rsaPriKey *rsa.PrivateKey, encKey string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESDecryptGCM ¶
AESDecryptGCM ...
func AESEncryptGCM ¶
AESEncryptGCM ...
func DecryptRSA ¶
func DecryptRSA(rsaPriKey *rsa.PrivateKey, data string) (string, error)
DecryptRSA ...
func EncryptRSA ¶
EncryptRSA ...
func GetKeyWithIvByRSA ¶
func GetKeyWithIvByRSA(rsaPriKey *rsa.PrivateKey, encKey string) ([]string, error)
GetKeyWithIvByRSA ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.