mgm

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Multilinear Galois Mode (MGM) block cipher mode.

Index

Constants

This section is empty.

Variables

View Source
var (
	R64  *big.Int = big.NewInt(0)
	R128 *big.Int = big.NewInt(0)
)

Functions

func NewMGM

func NewMGM(cipher cipher.Block, tagSize int) (cipher.AEAD, error)

Types

type MGM

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

func (*MGM) NonceSize

func (mgm *MGM) NonceSize() int

func (*MGM) Open

func (mgm *MGM) Open(dst, nonce, ciphertext, additionalData []byte) ([]byte, error)

func (*MGM) Overhead

func (mgm *MGM) Overhead() int

func (*MGM) Seal

func (mgm *MGM) Seal(dst, nonce, plaintext, additionalData []byte) []byte

Jump to

Keyboard shortcuts

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