aegis

package module
v0.0.0-...-e2b5605 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

README

aegis

Testing out the experimental Go SIMD API by implementing the AEGIS AEAD.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AEAD128x2

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

func NewAEAD128x2

func NewAEAD128x2(key [16]byte) AEAD128x2

func (AEAD128x2) DetachedOpen16

func (a AEAD128x2) DetachedOpen16(dst, nonce, ciphertext, aad []byte, tag [16]byte) ([]byte, error)

func (AEAD128x2) DetachedOpen32

func (a AEAD128x2) DetachedOpen32(dst, nonce, ciphertext, aad []byte, tag [32]byte) ([]byte, error)

func (AEAD128x2) DetachedSeal16

func (a AEAD128x2) DetachedSeal16(dst, nonce, plaintext, aad []byte) ([]byte, [16]byte)

func (AEAD128x2) DetachedSeal32

func (a AEAD128x2) DetachedSeal32(dst, nonce, plaintext, aad []byte) ([]byte, [32]byte)

func (AEAD128x2) NonceSize

func (a AEAD128x2) NonceSize() int

func (AEAD128x2) Open

func (a AEAD128x2) Open(dst, nonce, ciphertext, aad []byte) ([]byte, error)

func (AEAD128x2) Overhead

func (a AEAD128x2) Overhead() int

func (AEAD128x2) Seal

func (a AEAD128x2) Seal(dst, nonce, plaintext, aad []byte) []byte

type Mac128x2

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

func NewMac128x2

func NewMac128x2(key [16]byte) Mac128x2

func (Mac128x2) Sum16

func (m Mac128x2) Sum16(nonce []byte, data []byte) [16]byte

func (Mac128x2) Sum32

func (m Mac128x2) Sum32(nonce []byte, data []byte) [32]byte

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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