Output save_alt Download

Operation
crypto_kem
Primitive
lotus256
Implementation
ref
Compiler options
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv
Host
venus
1 error 0
2 4d76b8688005833b361d800ff564f1f24a90a1b00af16d1599025416236ca611 640331426 97378038821 4300000000 crypto_kem/lotus256/ref
3 ==19335== Memcheck, a memory error detector
4 ==19335== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
5 ==19335== Using Valgrind-3.15.0.GIT and LibVEX; rerun with -h for copyright info
6 ==19335== Command: ./try
7 ==19335==
8 ==19335== Warning: client switching stacks? SP change: 0x1ffeffff38 --> 0x1ffedddf28
9 ==19335== to suppress, use: --max-stackframe=2236432 or greater
10 ==19335== Invalid write of size 8
11 ==19335== at 0x10AA91: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
12 ==19335== by 0x1FFF00006F: ???
13 ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
14 ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
15 ==19335== Address 0x1ffedddf28 is on thread 1's stack
16 ==19335== in frame #0, created by crypto_kem_lotus256_ref_keypair (???:)
17 ==19335==
18 ==19335== Invalid write of size 8
19 ==19335== at 0x10CDE2: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
20 ==19335== by 0x10F695: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
21 ==19335== by 0x10F746: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
22 ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
23 ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
24 ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
25 ==19335== Address 0x1ffee45f30 is on thread 1's stack
26 ==19335== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:)
27 ==19335==
28 ==19335== Invalid write of size 8
29 ==19335== at 0x10CE09: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
30 ==19335== by 0x10F695: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
31 ==19335== by 0x10F746: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
32 ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
33 ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
34 ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
35 ==19335== Address 0x1ffee45f50 is on thread 1's stack
36 ==19335== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:)
37 ==19335==
38 ==19335== Invalid write of size 8
39 ==19335== at 0x10CE31: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
40 ==19335== by 0x10F695: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
41 ==19335== by 0x10F746: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
42 ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
43 ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
44 ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
45 ==19335== Address 0x1ffee45f70 is on thread 1's stack
46 ==19335== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:)
47 ==19335==
48 ==19335== Invalid write of size 8
49 ==19335== at 0x10CE5F: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
50 ==19335== by 0x10F695: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
51 ==19335== by 0x10F746: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
52 ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
53 ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
54 ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
55 ==19335== Address 0x1ffee45f90 is on thread 1's stack
56 ==19335== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:)
57 ==19335==
58 ==19335== Invalid write of size 8
59 ==19335== at 0x10CE90: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
60 ==19335== by 0x10F695: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
61 ==19335== by 0x10F746: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
62 ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
63 ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
64 ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
65 ==19335== Address 0x1ffee45fb0 is on thread 1's stack
66 ==19335== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:)
67 ==19335==
68 ==19335== Invalid write of size 8
69 ==19335== at 0x10CEC4: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
70 ==19335== by 0x10F695: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
71 ==19335== by 0x10F746: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
72 ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
73 ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
74 ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
75 ==19335== Address 0x1ffee45fd0 is on thread 1's stack
76 ==19335== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:)
77 ==19335==
78 ==19335== Invalid write of size 8
79 ==19335== at 0x10CF45: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
80 ==19335== by 0x10F695: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
81 ==19335== by 0x10F746: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
82 ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
83 ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
84 ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
85 ==19335== Address 0x1ffee45ff0 is on thread 1's stack
86 ==19335== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:)
87 ==19335==
88 ==19335== Invalid write of size 8
89 ==19335== at 0x10CFAB: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
90 ==19335== by 0x10F695: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
91 ==19335== by 0x10F746: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
92 ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
93 ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
94 ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
95 ==19335== Address 0x1ffee46010 is on thread 1's stack
96 ==19335== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:)
97 ==19335==
98 ==19335== Invalid write of size 8
99 ==19335== at 0x10D00E: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
100 ==19335== by 0x10F695: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
101 ==19335== by 0x10F746: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
102 ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
103 ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
104 ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
105 ==19335== Address 0x1ffee46020 is on thread 1's stack
106 ==19335== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:)
107 ==19335==
108 ==19335== Invalid write of size 2
109 ==19335== at 0x10F6EF: sample_discrete_gaussian (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
110 ==19335== by 0x10F75A: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
111 ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
112 ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
113 ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
114 ==19335== Address 0x1ffedddf30 is on thread 1's stack
115 ==19335== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:)
116 ==19335==
117 ==19335== Invalid write of size 2
118 ==19335== at 0x10F6EF: sample_discrete_gaussian (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
119 ==19335== by 0x10F767: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
120 ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
121 ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
122 ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
123 ==19335== Address 0x1ffef97f30 is on thread 1's stack
124 ==19335== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:)
125 ==19335==
126 ==19335== Invalid read of size 2
127 ==19335== at 0x10FB0D: submul (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
128 ==19335== by 0x10F775: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
129 ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
130 ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
131 ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
132 ==19335== Address 0x1ffedddf30 is on thread 1's stack
133 ==19335== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:)
134 ==19335==
135 ==19335== Invalid read of size 2
136 ==19335== at 0x10FB11: submul (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
137 ==19335== by 0x10F775: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
138 ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
139 ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
140 ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
141 ==19335== Address 0x1ffee45f30 is on thread 1's stack
142 ==19335== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:)
143 ==19335==
144 ==19335== Invalid read of size 2
145 ==19335== at 0x10FB16: submul (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
146 ==19335== by 0x10F775: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
147 ==19335== by 0x10AA95: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
148 ==19335== by 0x109468: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
149 ==19335== by 0x108F14: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
150 ==19335== Address 0x1ffef97f30 is on thread 1's stack
151 ==19335== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:)
152 ==19335==
153 ==19335==
154 ==19335== More than 10000000 total errors detected. I'm not reporting any more.
155 ==19335== Final error counts will be inaccurate. Go fix your program!
156 ==19335== Rerun with --error-limit=no to disable this cutoff. Note
157 ==19335== that errors may occur in your program without prior warning from
158 ==19335== Valgrind, because errors are no longer being displayed.
159 ==19335==
160 ==19335== Warning: client switching stacks? SP change: 0x1ffedddf30 --> 0x1ffeffff38
161 ==19335== to suppress, use: --max-stackframe=2236424 or greater
162 ==19335== Warning: client switching stacks? SP change: 0x1ffeffff00 --> 0x1ffeddcd00
163 ==19335== to suppress, use: --max-stackframe=2241024 or greater
164 ==19335== further instances of this message will not be shown.
165 ==19335==
166 ==19335== HEAP SUMMARY:
167 ==19335== in use at exit: 16,310,192 bytes in 12 blocks
168 ==19335== total heap usage: 42 allocs, 30 frees, 16,329,320 bytes allocated
169 ==19335==
170 ==19335== LEAK SUMMARY:
171 ==19335== definitely lost: 0 bytes in 0 blocks
172 ==19335== indirectly lost: 0 bytes in 0 blocks
173 ==19335== possibly lost: 16,309,760 bytes in 10 blocks
174 ==19335== still reachable: 432 bytes in 2 blocks
175 ==19335== suppressed: 0 bytes in 0 blocks
176 ==19335== Rerun with --leak-check=full to see details of leaked memory
177 ==19335==
178 ==19335== For lists of detected and suppressed errors, rerun with: -s
179 ==19335== ERROR SUMMARY: 10000000 errors from 15 contexts (suppressed: 0 from 0)