package
Version:
v5.2.1
Opens a new window with list of versions in this module.
Published: Oct 5, 2019
License: BSD-3-Clause
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const GcmStreamBufSize = 1024 * 1024
View Source
var (
GCMBlockSizeIncorrectErr = errors.New("cipher: NewGCM requires 128-bit block cipher")
GCMNonceLengthIncorrectErr = errors.New("cipher: incorrect nonce length given to GCM")
)
NewGCM returns the given 128-bit, block cipher wrapped in Galois Counter Mode
with the standard nonce length.
func XorBytes(dst, a, b []byte) int
xorBytes xors the bytes in a and b. The destination is assumed to have enough
space. Returns the number of bytes xor'd.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.