Output save_alt Download

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