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) NonceSize ¶ added in v1.4.4
NonceSize returns the required size of the nonce / IV.
func (*StupidGCM) Open ¶ added in v1.4.4
Open decrypts "in" using "iv" and "authData" and append the result to "dst"
func (*StupidGCM) Overhead ¶ added in v1.4.4
Overhead returns the number of bytes that are added for authentication.
Click to show internal directories.
Click to hide internal directories.