From ef96103cd4f3a2b7cbbfe07b976fed5f171154cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sat, 10 Apr 2021 17:46:29 +0300 Subject: [PATCH] Adjust work factor for better performance --- puer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/puer.c b/puer.c index 47e1d0b..839b9f7 100644 --- a/puer.c +++ b/puer.c @@ -13,7 +13,7 @@ // Adjusting this will render the file format incompatible // KDF_WORKFACTOR must be a power of two between 1 and 2^32 #define KDF_BLOCKSIZE 1024 -#define KDF_WORKFACTOR (64 * 1024) +#define KDF_WORKFACTOR (16 * 1024) unsigned char workbuf[KDF_WORKFACTOR * KDF_BLOCKSIZE]; void xxtea128(uint32_t const key[4], uint32_t block[4]) {