Branch: Tag:

2014-12-04

2014-12-04 19:26:16 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Nettle: Release the interpreter for encrypt and decrypt.

Allow other threads to execute when encrypting or decrypting
data larger than 1 KB.

16:   /* Hashing methods can normally process hundreds of megabytes per second    so it's rather wasteful to enable threads during hashing of smaller    data sizes. Limit is now 1 MB. */ - #define THREADS_ALLOW_THRESHOLD (1024 * 1024) + #define HASH_THREADS_ALLOW_THRESHOLD (1024 * 1024)    -  + /* Encrypt/decrypt methods are a bit more expensive. */ + #define CIPHER_THREADS_ALLOW_THRESHOLD 1024 +    #ifdef HAVE_NETTLE_DSA_H   #include <nettle/dsa.h>   #endif