gcm

package
v5.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var (
	GCMBlockSizeIncorrectErr   = errors.New("cipher: NewGCM requires 128-bit block cipher")
	GCMNonceLengthIncorrectErr = errors.New("cipher: incorrect nonce length given to GCM")
)

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