Skip to content

Commit 8b2c0f7

Browse files
committed
Make sure ASCON is unusable on big endian
1 parent da597e3 commit 8b2c0f7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

wolfcrypt/src/ascon.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
#ifndef WORD64_AVAILABLE
4646
#error "Ascon implementation requires a 64-bit word"
4747
#endif
48+
#ifdef BIG_ENDIAN_ORDER
49+
#error "Ascon not yet supported on big-endian systems"
50+
#endif
4851

4952
/* Data block size in bytes */
5053
#define ASCON_HASH256_RATE 8

0 commit comments

Comments
 (0)