Documentation ¶
Overview ¶
Package stupidgcm is a thin wrapper for OpenSSL's GCM encryption and decryption functions. It only support 32-byte keys and 16-bit IVs.
Index ¶
Constants ¶
View Source
const ( // BuiltWithoutOpenssl indicates if openssl been disabled at compile-time BuiltWithoutOpenssl = false )
Variables ¶
View Source
var ErrAuth = fmt.Errorf("stupidgcm: message authentication failed")
ErrAuth is returned when the message authentication fails
Functions ¶
Types ¶
type StupidGCM ¶ added in v1.4.4
type StupidGCM struct {
// contains filtered or unexported fields
}
stupidGCM implements the cipher.AEAD interface
func (*StupidGCM) Open ¶ added in v1.4.4
Open decrypts "in" using "iv" and "authData" and append the result to "dst"
Click to show internal directories.
Click to hide internal directories.