ascon: move implementation defines to source file

This commit is contained in:
Juliusz Sosinowicz
2025-01-29 11:10:44 +01:00
parent ab5ce46bf3
commit 0e20cbe210
2 changed files with 10 additions and 8 deletions

View File

@ -48,6 +48,16 @@
* - Add support for big-endian systems
* - Add support for 32-bit and smaller systems */
/* Data block size in bytes */
#define ASCON_HASH256_RATE 8
#define ASCON_HASH256_ROUNDS 12
#define ASCON_HASH256_IV 0x0000080100CC0002ULL
#define ASCON_AEAD128_ROUNDS_PA 12
#define ASCON_AEAD128_ROUNDS_PB 8
#define ASCON_AEAD128_IV 0x00001000808C0001ULL
#define ASCON_AEAD128_RATE 16
#define MAX_ROUNDS 12
#ifndef WOLFSSL_ASCON_UNROLL

View File

@ -31,18 +31,10 @@ extern "C" {
#endif
#define ASCON_HASH256_SZ 32
/* Data block size in bytes */
#define ASCON_HASH256_RATE 8
#define ASCON_HASH256_ROUNDS 12
#define ASCON_HASH256_IV 0x0000080100CC0002ULL
#define ASCON_AEAD128_ROUNDS_PA 12
#define ASCON_AEAD128_ROUNDS_PB 8
#define ASCON_AEAD128_IV 0x00001000808C0001ULL
#define ASCON_AEAD128_KEY_SZ 16
#define ASCON_AEAD128_NONCE_SZ 16
#define ASCON_AEAD128_TAG_SZ 16
#define ASCON_AEAD128_RATE 16
typedef union AsconState {
word64 s64[5];