Adjust work factor for better performance

This commit is contained in:
Juhani Krekelä 2021-04-10 17:46:29 +03:00
parent 4c8194acd2
commit ef96103cd4
1 changed files with 1 additions and 1 deletions

2
puer.c
View File

@ -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]) {