Documentation ¶
Overview ¶
Package ascon_aead implements the Ascon-128, Ascon-128a and Ascon-80pq AEAD, as specified in Section 2.4 of https://ascon.iaik.tugraz.at/files/asconv12-nist.pdf.
Index ¶
Constants ¶
View Source
const ( // KeySize is the size of the key used by Ascon-128 and Ascon-128a, in bytes. KeySize = 16 // KeySize80pq is the size of the key used by Ascon-80pq. KeySize80pq = 20 // NonceSize is the size of the nonce used in bytes. // // Can safely be generated randomly or be a counter. NonceSize = 16 // TagSize is the size of the authentication tag. TagSize = 16 )
Variables ¶
Functions ¶
func New128 ¶
New128 returns a Ascon-128 AEAD that uses the given 128-bit key.
Errors if the key is not 128 bits.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.