aescbc

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NonceSize = 16
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AesCbcHmac

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

func New

func New(key []byte, f BlockCipherFunc) (*AesCbcHmac, error)

func (AesCbcHmac) ComputeAuthTag

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

func (AesCbcHmac) NonceSize

func (c AesCbcHmac) NonceSize() int

NonceSize fulfills the crypto.AEAD interface

func (AesCbcHmac) Open

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

Open fulfills the crypto.AEAD interface

func (AesCbcHmac) Overhead

func (c AesCbcHmac) Overhead() int

Overhead fulfills the crypto.AEAD interface

func (AesCbcHmac) Seal

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

Seal fulfills the crypto.AEAD interface

type BlockCipherFunc

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

Jump to

Keyboard shortcuts

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