deoxys

package module
v0.0.0-...-1b06d78 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2019 License: ISC Imports: 3 Imported by: 0

Documentation

Overview

Package deoxys implements the Deoxys-BC block cipher and Deoxys-II nonce-misuse-resistant authenticated encryption mode.

Deoxys 1.43 Specification:

https://sites.google.com/view/deoxyscipher
https://drive.google.com/file/d/1IUELtBUdp6vrY8uhxHhycsGuSH_XlpMJ/view

Index

Constants

View Source
const (
	NonceSize = 15
	TagSize   = 16
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AEAD

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

AEAD implements the Deoxys-II authenticated encryption mode with Deoxys-BC as the underlying tweakable block cipher

func New

func New(key []byte) *AEAD

func (*AEAD) NonceSize

func (m *AEAD) NonceSize() int

func (*AEAD) Open

func (m *AEAD) Open(dst, nonce, ciphertext, additionalData []byte) ([]byte, error)

Open authenticates the ciphertext and additional data and returns the decrypted plaintext.

func (*AEAD) Overhead

func (m *AEAD) Overhead() int

func (*AEAD) Reset

func (m *AEAD) Reset(key []byte)

func (*AEAD) Seal

func (m *AEAD) Seal(dst, nonce, plaintext, additionalData []byte) []byte

Seal encrypts and authenticates the plaintext

Jump to

Keyboard shortcuts

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