ascon

package
v1.0.2067 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Overview

Package ascon implements the ASCON AEAD cipher.

Index

Constants

View Source
const (
	// BlockSize128a is the size in bytes of an ASCON-128a block.
	BlockSize128a = 16

	// BlockSize128 is the size in bytes of an ASCON-128 block.
	BlockSize128 = 8

	// KeySize is the size in bytes of ASCON-128 and ASCON-128a
	// keys.
	KeySize = 16

	// NonceSize is the size in bytes of ASCON-128 and ASCON-128a
	// nonces.
	NonceSize = 16

	// TagSize is the size in bytes of ASCON-128 and ASCON-128a
	// authenticators.
	TagSize = 16
)

Variables

This section is empty.

Functions

func NewCipher added in v1.0.2067

func NewCipher(key []byte) (cipher.AEAD, error)

NewCipher creates a 128-bit ASCON-128 AEAD.

func NewCiphera added in v1.0.2067

func NewCiphera(key []byte) (cipher.AEAD, error)

NewCiphera creates a 128-bit ASCON-128a AEAD.

Types

This section is empty.

Jump to

Keyboard shortcuts

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