summaryrefslogtreecommitdiff
path: root/debian/patches/reset-rng.patch
blob: add97a6e9f85930b0779c947f3e3a5a88fa28c8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 libica (2.6.1-3) yakkety; urgency=medium
 .
   * Cherry-pick upstream patch to stop reseeding global DRBG instance on
     every call. LP: #1608954
Author: Dimitri John Ledkov <xnox@ubuntu.com>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1608954

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- libica-2.6.1.orig/src/tests/icastats_test.c
+++ libica-2.6.1/src/tests/icastats_test.c
@@ -87,6 +87,8 @@ int main (int argc, char **argv)
 	 * Reset Counters
 	 **/
 	system("icastats -r");
+	sha512_switch = 0;
+	sha512_drng_switch = 0;
 	rc = ica_random_number_generate(AES_CIPHER_BLOCK, ctr);
 	if (rc)
 		exit(handle_ica_error(rc, "ica_random_number_generate"));