aescbc

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NonceSize = 16
)

Variables

This section is empty.

Functions

func SetMaxBufferSize added in v2.0.20

func SetMaxBufferSize(siz int64)

Types

type BlockCipherFunc

type BlockCipherFunc func([]byte) (cipher.Block, error)

type Hmac

type Hmac struct {
	// contains filtered or unexported fields
}

func New

func New(key []byte, f BlockCipherFunc) (hmac *Hmac, err error)

func (Hmac) ComputeAuthTag

func (c Hmac) ComputeAuthTag(aad, nonce, ciphertext []byte) ([]byte, error)

func (Hmac) NonceSize

func (c Hmac) NonceSize() int

NonceSize fulfills the crypto.AEAD interface

func (Hmac) Open

func (c Hmac) Open(dst, nonce, ciphertext, data []byte) ([]byte, error)

Open fulfills the crypto.AEAD interface

func (Hmac) Overhead

func (c Hmac) Overhead() int

Overhead fulfills the crypto.AEAD interface

func (Hmac) Seal

func (c Hmac) Seal(dst, nonce, plaintext, data []byte) []byte

Seal fulfills the crypto.AEAD interface

Jump to

Keyboard shortcuts

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