eax

package
v1.0.2061 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEAX

func NewEAX(block cipher.Block) (cipher.AEAD, error)

NewEAX returns an EAX instance with AES-{KEYLENGTH} and default nonce and tag lengths. Supports {128, 192, 256}- bit key length.

func NewEAXWithNonceAndTagSize

func NewEAXWithNonceAndTagSize(
	block cipher.Block,
	nonceSize int,
	tagSize int,
) (cipher.AEAD, error)

NewEAXWithNonceAndTagSize returns an EAX instance with AES-{keyLength} and given nonce and tag lengths in bytes. Panics on zero nonceSize and exceedingly long tags.

It is recommended to use at least 12 bytes as tag length (see, for instance, NIST SP 800-38D).

Only to be used for compatibility with existing cryptosystems with non-standard parameters. For all other cases, prefer NewEAX.

func NewEAXWithNonceSize

func NewEAXWithNonceSize(block cipher.Block, nonceSize int) (cipher.AEAD, error)

func NewEAXWithTagSize

func NewEAXWithTagSize(block cipher.Block, tagSize int) (cipher.AEAD, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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