Output save_alt Download

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