From 8b2c0f7cd2b485ed3937f5708e8db7c0fb956fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Frauenschl=C3=A4ger?= Date: Wed, 1 Apr 2026 09:16:55 +0200 Subject: [PATCH] Make sure ASCON is unusable on big endian --- wolfcrypt/src/ascon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wolfcrypt/src/ascon.c b/wolfcrypt/src/ascon.c index 8c61f00bf0..8bd1e88d4d 100644 --- a/wolfcrypt/src/ascon.c +++ b/wolfcrypt/src/ascon.c @@ -45,6 +45,9 @@ #ifndef WORD64_AVAILABLE #error "Ascon implementation requires a 64-bit word" #endif +#ifdef BIG_ENDIAN_ORDER + #error "Ascon not yet supported on big-endian systems" +#endif /* Data block size in bytes */ #define ASCON_HASH256_RATE 8