ocb

package
v1.0.4006 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 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

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

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

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

func NewWithTagSize

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