Documentation ¶
Index ¶
Constants ¶
View Source
const ( ValidAES128KeySize int = 16 ValidAES256KeySize int = 32 NonceByteSize int = 12 )
Variables ¶
View Source
var ( ErrInvalidKey = errors.New("invalid key, should be 16 or 32 bytes") ErrInvalidNonce = errors.New("invalid nonce, should be 12 bytes") )
Functions ¶
This section is empty.
Types ¶
type AESGcm ¶
type AESGcm struct {
// contains filtered or unexported fields
}
func (*AESGcm) DecryptString ¶
DecryptString decrypts ciphertext string
func (*AESGcm) EncryptToString ¶
EncryptToString encrypts plaintext to string
Click to show internal directories.
Click to hide internal directories.