ASCON Suite
|
Go to the source code of this file.
Macros | |
#define | ascon_set_sliced(state, data, offset) |
Sets data into the ASCON state in sliced form. More... | |
#define | ascon_set_word64(state, value, offset) |
#define | ascon_absorb_sliced(state, data, offset) |
Absorbs data into the ASCON state in sliced form. More... | |
#define | ascon_absorb_word64(state, value, offset) |
Absorbs data into the ASCON state in sliced form. More... | |
#define | ascon_absorb32_low_sliced(state, data, offset) |
Absorbs 32 bits of data into the ASCON state in sliced form. More... | |
#define | ascon_absorb32_high_sliced(state, data, offset) |
Absorbs 32 bits of data into the ASCON state in sliced form. More... | |
#define | ascon_squeeze_sliced(state, data, offset) |
Squeezes data from the ASCON state in sliced form. More... | |
#define | ascon_squeeze_word64(state, value, offset) |
Squeezes a 64-bit from the ASCON state in sliced form. More... | |
#define | ascon_encrypt_sliced(state, c, m, offset) |
Encrypts data using the ASCON state in sliced form. More... | |
#define | ascon_decrypt_sliced(state, m, c, offset) |
Decrypts data using the ASCON state in sliced form. More... | |
#define | ascon_decrypt_sliced_no_insert(state, m, c, offset) |
Decrypts data using the ASCON state in sliced form but do not insert the ciphertext back into the state. More... | |
Absorbs 32 bits of data into the ASCON state in sliced form.
state | The ASCON state for the data to be absorbed into. |
data | Points to 4 bytes of data in big-endian byte order to absorb. |
offset | Offset of the 64-bit word within the state to absorb at, between 0 and 4. |
The data is absorbed into the high bits of the 64-bit word at offset.
Definition at line 173 of file ascon-sliced32.h.
Absorbs 32 bits of data into the ASCON state in sliced form.
state | The ASCON state for the data to be absorbed into. |
data | Points to 4 bytes of data in big-endian byte order to absorb. |
offset | Offset of the 64-bit word within the state to absorb at, between 0 and 4. |
The data is absorbed into the low bits of the 64-bit word at offset.
Definition at line 154 of file ascon-sliced32.h.
Absorbs data into the ASCON state in sliced form.
state | The ASCON state for the data to be absorbed into. |
data | Points to 8 bytes of data in big-endian byte order to absorb. |
offset | Offset of the 64-bit word within the state to absorb at, between 0 and 4. |
Definition at line 114 of file ascon-sliced32.h.
#define ascon_absorb_word64 | ( | state, | |
value, | |||
offset | |||
) |
Absorbs data into the ASCON state in sliced form.
state | The ASCON state for the data to be absorbed into. |
value | Value as a 64-bit word in big endian order. |
offset | Offset of the 64-bit word within the state to absorb at, between 0 and 4. |
Definition at line 133 of file ascon-sliced32.h.
#define ascon_decrypt_sliced | ( | state, | |
m, | |||
c, | |||
offset | |||
) |
Decrypts data using the ASCON state in sliced form.
state | The ASCON state. |
m | Points to 8 bytes of output plaintext in big-endian byte order. |
c | Points to 8 bytes of input ciphertext in big-endian byte order. |
offset | Offset of the 64-bit word within the state to absorb and squeeze at, between 0 and 4. |
Definition at line 262 of file ascon-sliced32.h.
#define ascon_decrypt_sliced_no_insert | ( | state, | |
m, | |||
c, | |||
offset | |||
) |
Decrypts data using the ASCON state in sliced form but do not insert the ciphertext back into the state.
state | The ASCON state. |
m | Points to 8 bytes of output plaintext in big-endian byte order. |
c | Points to 8 bytes of input ciphertext in big-endian byte order. |
offset | Offset of the 64-bit word within the state to absorb and squeeze at, between 0 and 4. |
Definition at line 292 of file ascon-sliced32.h.
#define ascon_encrypt_sliced | ( | state, | |
c, | |||
m, | |||
offset | |||
) |
Encrypts data using the ASCON state in sliced form.
state | The ASCON state. |
c | Points to 8 bytes of output ciphertext in big-endian byte order. |
m | Points to 8 bytes of input plaintext in big-endian byte order. |
offset | Offset of the 64-bit word within the state to absorb and squeeze at, between 0 and 4. |
Definition at line 234 of file ascon-sliced32.h.
Sets data into the ASCON state in sliced form.
state | The ASCON state for the data to be absorbed into. |
data | Points to 8 bytes of data in big-endian byte order to set. |
offset | Offset of the 64-bit word within the state to set at, between 0 and 4. |
Definition at line 76 of file ascon-sliced32.h.
#define ascon_set_word64 | ( | state, | |
value, | |||
offset | |||
) |
Definition at line 95 of file ascon-sliced32.h.
Squeezes data from the ASCON state in sliced form.
state | The ASCON state to extract the data from. |
data | Points to the 8 bytes to be extracted from the state. |
offset | Offset of the 64-bit word within the state to extract, between 0 and 4. |
Definition at line 190 of file ascon-sliced32.h.
#define ascon_squeeze_word64 | ( | state, | |
value, | |||
offset | |||
) |
Squeezes a 64-bit from the ASCON state in sliced form.
state | The ASCON state to extract the data from. |
value | Returns the 64-bit word that is squeezed out. |
offset | Offset of the 64-bit word within the state to extract, between 0 and 4. |
Definition at line 212 of file ascon-sliced32.h.