mgm

package
v0.0.0-...-0de9ac5 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: MIT Imports: 7 Imported by: 0

README

MGM

This package provides a custom implementation of Multilinear Galois Mode (MGM) suitable for Ru-WireGuard.

The supported tag and block sizes are 128 bit only.

The implementation adopts Go-GOST's MGM.

Documentation

Overview

Package mgm provides a custom implementation of Multilinear Galois Mode (MGM) suitable for RU-WireGuard. The supported tag and block sizes are 128 bit only.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMGM

func NewMGM(cipher cipher.Block) (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