Documentation ¶
Index ¶
- func AESDecrypt(key, ciphertext []byte) ([]byte, error)
- func AESEncrypt(key, data []byte) ([]byte, error)
- func DecryptData(ciphertext []byte, prvHex string) ([]byte, error)
- func EncryptData(data []byte, pubHex string) ([]byte, error)
- func GenerateRandomKey() ([]byte, error)
- func PKCS5Padding(plaintext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func SignatureMessage(data []byte, prvHex string) ([]byte, error)
- func VerifySignature(data []byte, pubHex string, signature []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESDecrypt ¶
func AESEncrypt ¶
func GenerateRandomKey ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.