Adjust work factor for better performance
This commit is contained in:
parent
4c8194acd2
commit
ef96103cd4
2
puer.c
2
puer.c
|
@ -13,7 +13,7 @@
|
||||||
// Adjusting this will render the file format incompatible
|
// Adjusting this will render the file format incompatible
|
||||||
// KDF_WORKFACTOR must be a power of two between 1 and 2^32
|
// KDF_WORKFACTOR must be a power of two between 1 and 2^32
|
||||||
#define KDF_BLOCKSIZE 1024
|
#define KDF_BLOCKSIZE 1024
|
||||||
#define KDF_WORKFACTOR (64 * 1024)
|
#define KDF_WORKFACTOR (16 * 1024)
|
||||||
unsigned char workbuf[KDF_WORKFACTOR * KDF_BLOCKSIZE];
|
unsigned char workbuf[KDF_WORKFACTOR * KDF_BLOCKSIZE];
|
||||||
|
|
||||||
void xxtea128(uint32_t const key[4], uint32_t block[4]) {
|
void xxtea128(uint32_t const key[4], uint32_t block[4]) {
|
||||||
|
|
Loading…
Reference in New Issue