From f60b67a6fcbed7329f7d27511e8c572dc252934e Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 23 Jan 2026 18:45:34 +0100 Subject: lib: Speed up key rotation tests The tests were not correct as the library was compiled with the default 1 << 20 epoch. Added a parametere to the sk configuration that specifies the epoch size. Set to 1 << KEY_ROTATION_BIT in dev.c, but lowered to 7 in unit tests. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- include/ouroboros/crypt.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/ouroboros/crypt.h b/include/ouroboros/crypt.h index 20b3c262..e1ad3199 100644 --- a/include/ouroboros/crypt.h +++ b/include/ouroboros/crypt.h @@ -93,6 +93,7 @@ struct crypt_sk { int nid; uint8_t * key; + uint8_t rot_bit; /* Rotation bit to control epoch */ }; struct sec_config { -- cgit v1.2.3