ASCON Suite
Classes | Typedefs
ascon Namespace Reference

Classes

class  hash
 ASCON-HASH digest algorithm. More...
 
class  hasha
 ASCON-HASHA digest algorithm. More...
 
class  xof_with_output_length
 ASCON-XOF with a specific output length. More...
 
class  xofa_with_output_length
 ASCON-XOFA with a specific output length. More...
 

Typedefs

typedef std::vector< unsigned char > byte_array
 C++ type for an array of bytes. More...
 
typedef xof_with_output_length< 0 > xof
 ASCON-XOF object with arbitrary-length output. More...
 
typedef xofa_with_output_length< 0 > xofa
 ASCON-XOFA object with arbitrary-length output. More...
 

Typedef Documentation

◆ byte_array

typedef std::vector<unsigned char> ascon::byte_array

C++ type for an array of bytes.

On systems with the Standard Template Library (STL), this is identical to std::vector<unsigned char>.

On other systems like Arduino, this is replaced with a minimal implementation with a subset of the std::vector API.

Definition at line 109 of file utility.h.

◆ xof

ASCON-XOF object with arbitrary-length output.

The following example runs ASCON-XOF over an input string and then squeezes 64 bytes of output:

unsigned char output2[64];
x.absorb("Hello, World!");
x.squeeze(output2, sizeof(output2));
ASCON-XOF with a specific output length.
Definition: xof.h:441
void squeeze(unsigned char *data, size_t len)
Squeezes output data from this ASCON-XOF object.
Definition: xof.h:583
void absorb(const unsigned char *data, size_t len)
Absorbs more input data into this ASCON-XOF object.
Definition: xof.h:544

Definition at line 928 of file xof.h.

◆ xofa

ASCON-XOFA object with arbitrary-length output.

The following example runs ASCON-XOFA over an input string and then squeezes 64 bytes of output:

unsigned char output2[64];
x.absorb("Hello, World!");
x.squeeze(output2, sizeof(output2));
ASCON-XOFA with a specific output length.
Definition: xof.h:695
void absorb(const unsigned char *data, size_t len)
Absorbs more input data into this ASCON-XOFA object.
Definition: xof.h:798
void squeeze(unsigned char *data, size_t len)
Squeezes output data from this ASCON-XOFA object.
Definition: xof.h:834

Definition at line 944 of file xof.h.