aescbc

package
v2.0.18 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NonceSize = 16
)

Variables

This section is empty.

Functions

This section is empty.

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