ocb

package
v1.0.2065 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOCB

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

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

func NewOCBWithNonceAndTagSize

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

NewOCBWithNonceAndTagSize 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 NewOCBWithNonceSize

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

func NewOCBWithTagSize

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