gcm

package
v4.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2018 License: BSD-3-Clause, BSD-3-Clause Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const GcmStreamBufSize = 1024 * 1024 //megabyte buffer

Variables

This section is empty.

Functions

func NewGCM

func NewGCM(cipher cipher.Block) (*gcm, error)

NewGCM returns the given 128-bit, block cipher wrapped in Galois Counter Mode with the standard nonce length.

func XorBytes

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL