|
ASCON Suite
|
#include "aead/ascon-aead-masked-common.h"Go to the source code of this file.
Functions | |
| void | ascon_masked_aead_absorb_8 (ascon_masked_state_t *state, const unsigned char *data, size_t len, uint8_t first_round, ascon_masked_word_t *word, uint64_t *preserve, ascon_trng_state_t *trng) |
| Absorbs data into a masked ASCON state with an 8-byte rate. More... | |
| void | ascon_masked_aead_absorb_16 (ascon_masked_state_t *state, const unsigned char *data, size_t len, uint8_t first_round, ascon_masked_word_t *word, uint64_t *preserve, ascon_trng_state_t *trng) |
| Absorbs data into a masked ASCON state with a 16-byte rate. More... | |
| void | ascon_masked_aead_encrypt_8 (ascon_masked_state_t *state, unsigned char *dest, const unsigned char *src, size_t len, uint8_t first_round, ascon_masked_word_t *word, uint64_t *preserve, ascon_trng_state_t *trng) |
| Encrypts a block of data with a masked ASCON state and an 8-byte rate. More... | |
| void | ascon_masked_aead_encrypt_16 (ascon_masked_state_t *state, unsigned char *dest, const unsigned char *src, size_t len, uint8_t first_round, ascon_masked_word_t *word, uint64_t *preserve, ascon_trng_state_t *trng) |
| Encrypts a block of data with a masked ASCON state and a 16-byte rate. More... | |
| void | ascon_masked_aead_decrypt_8 (ascon_masked_state_t *state, unsigned char *dest, const unsigned char *src, size_t len, uint8_t first_round, ascon_masked_word_t *word, uint64_t *preserve, ascon_trng_state_t *trng) |
| Decrypts a block of data with a masked ASCON state and an 8-byte rate. More... | |
| void | ascon_masked_aead_decrypt_16 (ascon_masked_state_t *state, unsigned char *dest, const unsigned char *src, size_t len, uint8_t first_round, ascon_masked_word_t *word, uint64_t *preserve, ascon_trng_state_t *trng) |
| Decrypts a block of data with an ASCON state and a 16-byte rate. More... | |
| void ascon_masked_aead_absorb_16 | ( | ascon_masked_state_t * | state, |
| const unsigned char * | data, | ||
| size_t | len, | ||
| uint8_t | first_round, | ||
| ascon_masked_word_t * | word, | ||
| uint64_t * | preserve, | ||
| ascon_trng_state_t * | trng | ||
| ) |
Absorbs data into a masked ASCON state with a 16-byte rate.
| state | The state to absorb the data into. |
| data | Points to the data to be absorbed. |
| len | Length of the data to be absorbed. |
| first_round | First round of the permutation to apply each block. |
| word | Points to temporary storage for a masked word. |
| preserve | Preserved randomness from the previous step. |
| trng | TRNG to use to generate randomness to mask the data. |
Definition at line 48 of file ascon-aead-masked-common.c.
| void ascon_masked_aead_absorb_8 | ( | ascon_masked_state_t * | state, |
| const unsigned char * | data, | ||
| size_t | len, | ||
| uint8_t | first_round, | ||
| ascon_masked_word_t * | word, | ||
| uint64_t * | preserve, | ||
| ascon_trng_state_t * | trng | ||
| ) |
Absorbs data into a masked ASCON state with an 8-byte rate.
| state | The state to absorb the data into. |
| data | Points to the data to be absorbed. |
| len | Length of the data to be absorbed. |
| first_round | First round of the permutation to apply each block. |
| word | Points to temporary storage for a masked word. |
| preserve | Preserved randomness from the previous step. |
| trng | TRNG to use to generate randomness to mask the data. |
Definition at line 28 of file ascon-aead-masked-common.c.
| void ascon_masked_aead_decrypt_16 | ( | ascon_masked_state_t * | state, |
| unsigned char * | dest, | ||
| const unsigned char * | src, | ||
| size_t | len, | ||
| uint8_t | first_round, | ||
| ascon_masked_word_t * | word, | ||
| uint64_t * | preserve, | ||
| ascon_trng_state_t * | trng | ||
| ) |
Decrypts a block of data with an ASCON state and a 16-byte rate.
| state | The state to decrypt with. |
| dest | Points to the destination buffer. |
| src | Points to the source buffer. |
| len | Length of the data to decrypt from src into dest. |
| first_round | First round of the permutation to apply each block. |
| word | Points to temporary storage for a masked word. |
| preserve | Preserved randomness from the previous step. |
| trng | TRNG to use to generate randomness to mask the data. |
Definition at line 168 of file ascon-aead-masked-common.c.
| void ascon_masked_aead_decrypt_8 | ( | ascon_masked_state_t * | state, |
| unsigned char * | dest, | ||
| const unsigned char * | src, | ||
| size_t | len, | ||
| uint8_t | first_round, | ||
| ascon_masked_word_t * | word, | ||
| uint64_t * | preserve, | ||
| ascon_trng_state_t * | trng | ||
| ) |
Decrypts a block of data with a masked ASCON state and an 8-byte rate.
| state | The state to decrypt with. |
| dest | Points to the destination buffer. |
| src | Points to the source buffer. |
| len | Length of the data to decrypt from src into dest. |
| first_round | First round of the permutation to apply each block. |
| word | Points to temporary storage for a masked word. |
| preserve | Preserved randomness from the previous step. |
| trng | TRNG to use to generate randomness to mask the data. |
Definition at line 144 of file ascon-aead-masked-common.c.
| void ascon_masked_aead_encrypt_16 | ( | ascon_masked_state_t * | state, |
| unsigned char * | dest, | ||
| const unsigned char * | src, | ||
| size_t | len, | ||
| uint8_t | first_round, | ||
| ascon_masked_word_t * | word, | ||
| uint64_t * | preserve, | ||
| ascon_trng_state_t * | trng | ||
| ) |
Encrypts a block of data with a masked ASCON state and a 16-byte rate.
| state | The state to encrypt with. |
| dest | Points to the destination buffer. |
| src | Points to the source buffer. |
| len | Length of the data to encrypt from src into dest. |
| first_round | First round of the permutation to apply each block. |
| word | Points to temporary storage for a masked word. |
| preserve | Preserved randomness from the previous step. |
| trng | TRNG to use to generate randomness to mask the data. |
Definition at line 104 of file ascon-aead-masked-common.c.
| void ascon_masked_aead_encrypt_8 | ( | ascon_masked_state_t * | state, |
| unsigned char * | dest, | ||
| const unsigned char * | src, | ||
| size_t | len, | ||
| uint8_t | first_round, | ||
| ascon_masked_word_t * | word, | ||
| uint64_t * | preserve, | ||
| ascon_trng_state_t * | trng | ||
| ) |
Encrypts a block of data with a masked ASCON state and an 8-byte rate.
| state | The state to encrypt with. |
| dest | Points to the destination buffer. |
| src | Points to the source buffer. |
| len | Length of the data to encrypt from src into dest. |
| first_round | First round of the permutation to apply each block. |
| word | Points to temporary storage for a masked word. |
| preserve | Preserved randomness from the previous step. |
| trng | TRNG to use to generate randomness to mask the data. |
Definition at line 82 of file ascon-aead-masked-common.c.