Blame SOURCES/nss-3.79-increase-pbe-cache.patch

7093c5
diff --git a/lib/softoken/lowpbe.c b/lib/softoken/lowpbe.c
7093c5
--- a/lib/softoken/lowpbe.c
7093c5
+++ b/lib/softoken/lowpbe.c
7093c5
@@ -565,17 +565,17 @@ struct KDFCacheItemStr {
7093c5
     int iterations;
7093c5
     int keyLen;
7093c5
 };
7093c5
 typedef struct KDFCacheItemStr KDFCacheItem;
7093c5
 
7093c5
 /* Bug 1606992 - Cache the hash result for the common case that we're
7093c5
  * asked to repeatedly compute the key for the same password item,
7093c5
  * hash, iterations and salt. */
7093c5
-#define KDF2_CACHE_COUNT 3
7093c5
+#define KDF2_CACHE_COUNT 150
7093c5
 static struct {
7093c5
     PZLock *lock;
7093c5
     struct {
7093c5
         KDFCacheItem common;
7093c5
         int ivLen;
7093c5
         PRBool faulty3DES;
7093c5
     } cacheKDF1;
7093c5
     struct {