ocb

package
v1.0.3020 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v1.0.3018

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

New returns an OCB instance with the given block cipher and default tag and nonce sizes.

func NewWithNonceAndTagSize added in v1.0.3018

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

NewWithNonceAndTagSize returns an OCB instance with the given block cipher, nonce length, and tag length. Panics on zero nonceSize and exceedingly long tag size.

It is recommended to use at least 12 bytes as tag length.

func NewWithNonceSize added in v1.0.3018

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

func NewWithTagSize added in v1.0.3018

func NewWithTagSize(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