File nss-fips-drbg-remove-continuous-test.patch of Package mozilla-nss.6304

From 464e5eff3baeb59acc85f2fa6f2f5f676d318cf9 Mon Sep 17 00:00:00 2001
From: Hans Petter Jansson <hpj@suse.com>
Date: Sun, 17 Sep 2017 21:41:15 +0200
Subject: [PATCH 5/6] DRBG: Remove continuous self test.

---
 nss/lib/freebl/drbg.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/nss/lib/freebl/drbg.c b/nss/lib/freebl/drbg.c
index ac0bba6..af0ffe8 100644
--- a/nss/lib/freebl/drbg.c
+++ b/nss/lib/freebl/drbg.c
@@ -365,10 +365,6 @@ prng_generateNewBytes(RNGContext *rng,
     if (no_of_returned_bytes == SHA256_LENGTH) {
         /* short_cut to hashbuf and a couple of copies and clears */
         SHA256_HashBuf(returned_bytes, V(rng), VSize(rng));
-        /* continuous rng check */
-        if (memcmp(rng->lastOutput, returned_bytes, SHA256_LENGTH) == 0) {
-            rng->isValid = PR_FALSE;
-        }
         PORT_Memcpy(rng->lastOutput, returned_bytes, sizeof rng->lastOutput);
     } else {
         prng_Hashgen(rng, returned_bytes, no_of_returned_bytes);
-- 
2.12.0

openSUSE Build Service is sponsored by