ASCON Suite
Functions | Variables
snippets.c File Reference

Go to the source code of this file.

Functions

 ascon_clean (data, sizeof(data))
 
void ofb_encrypt (ascon_state_t *state, unsigned char *c, const unsigned char *m, int len)
 [snippet_zero2] More...
 
void cfb_encrypt (ascon_state_t *state, unsigned char *c, const unsigned char *m, int len)
 [snippet_encrypt_ofb] More...
 
void cfb_decrypt (ascon_state_t *state, unsigned char *m, const unsigned char *c, int len)
 [snippet_encrypt_cfb] More...
 
void cfb_auth_encrypt (ascon_state_t *state, unsigned char *c, const unsigned char *m, int len, unsigned char tag[16])
 [snippet_decrypt_cfb2] More...
 

Variables

ascon_state_t state
 [snippet_key] More...
 
unsigned char data [8]
 [snippet_key] More...
 

Function Documentation

◆ ascon_clean()

ascon_clean ( data  ,
sizeof(data  
)

◆ cfb_auth_encrypt()

void cfb_auth_encrypt ( ascon_state_t state,
unsigned char *  c,
const unsigned char *  m,
int  len,
unsigned char  tag[16] 
)

[snippet_decrypt_cfb2]

[snippet_encrypt_cfb_auth]

Definition at line 85 of file snippets.c.

◆ cfb_decrypt()

void cfb_decrypt ( ascon_state_t state,
unsigned char *  m,
const unsigned char *  c,
int  len 
)

[snippet_encrypt_cfb]

[snippet_decrypt_cfb]

[snippet_decrypt_cfb2]

Definition at line 55 of file snippets.c.

◆ cfb_encrypt()

void cfb_encrypt ( ascon_state_t state,
unsigned char *  c,
const unsigned char *  m,
int  len 
)

[snippet_encrypt_ofb]

[snippet_encrypt_cfb]

Definition at line 39 of file snippets.c.

◆ ofb_encrypt()

void ofb_encrypt ( ascon_state_t state,
unsigned char *  c,
const unsigned char *  m,
int  len 
)

[snippet_zero2]

[snippet_encrypt_ofb]

Definition at line 25 of file snippets.c.

Variable Documentation

◆ data

unsigned char data[8]

[snippet_key]

[snippet_zero]

Examples
asconcrypt/asconcrypt.c, and permutation/hash/main.c.

Definition at line 14 of file snippets.c.

◆ state

[snippet_key]

[snippet_zero]

[snippet_zero2]

Examples
asconcrypt/asconcrypt.c, asconsum/asconsum.c, permutation/encrypt/main.c, and permutation/hash/main.c.

Definition at line 2 of file snippets.c.