Versions in this module Expand all Collapse all v1 v1.0.1 Jul 20, 2021 Changes in this version + func AesDecrypt(crypted, key []byte) ([]byte, error) + func AesEncrypt(origData, key []byte) ([]byte, error) + func ECCDecrypt(ct []byte, prk ecies.PrivateKey) ([]byte, error) + func ECCEncrypt(pt []byte, puk ecies.PublicKey) ([]byte, error) + func PKCS7Padding(ciphertext []byte, blockSize int) []byte + func PKCS7UnPadding(origData []byte) []byte + func RsaDecrypt(ciphertext []byte) ([]byte, error) + func RsaEncrypt(origData []byte) ([]byte, error) + type AES struct + type Cifrado interface + Desencriptar func() ([]byte, error) + Encriptar func() ([]byte, error) + type ECC struct + type RSA struct