aes

package
v1.0.2056 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KeySizeErr = errors.New("siv: bad key size")

Functions

func NewCMAC

func NewCMAC(key []byte, nonceSize int) (cipher.AEAD, error)

NewCMAC returns an SIV instance implementing cipher.AEAD interface

Unless the given nonce size is less than zero, Seal and Open will panic when passed nonce of a different size.

func NewPMAC

func NewPMAC(key []byte, nonceSize int) (cipher.AEAD, error)

NewPMAC returns an SIV instance implementing cipher.AEAD interface

Unless the given nonce size is less than zero, Seal and Open will panic when passed nonce of a different size.

func NewSiv

func NewSiv(key []byte, nonceSize int) (cipher.AEAD, error)

NewSiv returns an SIV instance implementing cipher.AEAD interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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