Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCBCPKCS5Padding ¶
func NewCBCPKCS5Padding() *cbcPKCS5Padding
NewCBCPKCS5Padding constructs an AES/CBC/PKCS5Padding encryption engine.
Types ¶
type GCM ¶
type GCM struct {
// contains filtered or unexported fields
}
func (*GCM) Encrypt ¶
Encrypt returns AES/GCM base64 cipher text. The key argument should be the base64 encoded AES key, either 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256.
func (*GCM) SetRandReader ¶ added in v0.7.3
Click to show internal directories.
Click to hide internal directories.