Output save_alt Download

Operation
crypto_encrypt
Primitive
lotus256
Implementation
ref
Compiler options
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv
Host
venus
1 error 0
2 crypto_encrypt_open does not handle c=t overlap
3 ==15011== Memcheck, a memory error detector
4 ==15011== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
5 ==15011== Using Valgrind-3.15.0.GIT and LibVEX; rerun with -h for copyright info
6 ==15011== Command: ./try
7 ==15011==
8 ==15011== Warning: client switching stacks? SP change: 0x1ffeffff48 --> 0x1ffedddf38
9 ==15011== to suppress, use: --max-stackframe=2236432 or greater
10 ==15011== Invalid write of size 8
11 ==15011== at 0x10A10E: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
12 ==15011== by 0x1FFF00006F: ???
13 ==15011== by 0x109557: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
14 ==15011== by 0x1090B4: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
15 ==15011== Address 0x1ffedddf38 is on thread 1's stack
16 ==15011== in frame #0, created by crypto_encrypt_lotus256_ref_keypair (???:)
17 ==15011==
18 ==15011== Invalid write of size 2
19 ==15011== at 0x10A779: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
20 ==15011== by 0x10AF9F: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
21 ==15011== by 0x10B038: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
22 ==15011== by 0x10A112: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
23 ==15011== by 0x109557: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
24 ==15011== by 0x1090B4: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
25 ==15011== Address 0x1ffee45f40 is on thread 1's stack
26 ==15011== in frame #3, created by crypto_encrypt_lotus256_ref_keypair (???:)
27 ==15011==
28 ==15011== Invalid write of size 2
29 ==15011== at 0x10A790: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
30 ==15011== by 0x10AF9F: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
31 ==15011== by 0x10B038: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
32 ==15011== by 0x10A112: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
33 ==15011== by 0x109557: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
34 ==15011== by 0x1090B4: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
35 ==15011== Address 0x1ffee45f60 is on thread 1's stack
36 ==15011== in frame #3, created by crypto_encrypt_lotus256_ref_keypair (???:)
37 ==15011==
38 ==15011== Invalid write of size 2
39 ==15011== at 0x10A7A7: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
40 ==15011== by 0x10AF9F: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
41 ==15011== by 0x10B038: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
42 ==15011== by 0x10A112: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
43 ==15011== by 0x109557: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
44 ==15011== by 0x1090B4: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
45 ==15011== Address 0x1ffee45f80 is on thread 1's stack
46 ==15011== in frame #3, created by crypto_encrypt_lotus256_ref_keypair (???:)
47 ==15011==
48 ==15011== Invalid write of size 2
49 ==15011== at 0x10A7BE: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
50 ==15011== by 0x10AF9F: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
51 ==15011== by 0x10B038: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
52 ==15011== by 0x10A112: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
53 ==15011== by 0x109557: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
54 ==15011== by 0x1090B4: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
55 ==15011== Address 0x1ffee45fa0 is on thread 1's stack
56 ==15011== in frame #3, created by crypto_encrypt_lotus256_ref_keypair (???:)
57 ==15011==
58 ==15011== Invalid write of size 2
59 ==15011== at 0x10A7D7: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
60 ==15011== by 0x10AF9F: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
61 ==15011== by 0x10B038: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
62 ==15011== by 0x10A112: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
63 ==15011== by 0x109557: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
64 ==15011== by 0x1090B4: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
65 ==15011== Address 0x1ffee45fc0 is on thread 1's stack
66 ==15011== in frame #3, created by crypto_encrypt_lotus256_ref_keypair (???:)
67 ==15011==
68 ==15011== Invalid write of size 2
69 ==15011== at 0x10A7F0: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
70 ==15011== by 0x10AF9F: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
71 ==15011== by 0x10B038: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
72 ==15011== by 0x10A112: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
73 ==15011== by 0x109557: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
74 ==15011== by 0x1090B4: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
75 ==15011== Address 0x1ffee45fe0 is on thread 1's stack
76 ==15011== in frame #3, created by crypto_encrypt_lotus256_ref_keypair (???:)
77 ==15011==
78 ==15011== Invalid write of size 2
79 ==15011== at 0x10A844: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
80 ==15011== by 0x10AF9F: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
81 ==15011== by 0x10B038: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
82 ==15011== by 0x10A112: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
83 ==15011== by 0x109557: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
84 ==15011== by 0x1090B4: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
85 ==15011== Address 0x1ffee46000 is on thread 1's stack
86 ==15011== in frame #3, created by crypto_encrypt_lotus256_ref_keypair (???:)
87 ==15011==
88 ==15011== Invalid write of size 2
89 ==15011== at 0x10A883: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
90 ==15011== by 0x10AF9F: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
91 ==15011== by 0x10B038: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
92 ==15011== by 0x10A112: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
93 ==15011== by 0x109557: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
94 ==15011== by 0x1090B4: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
95 ==15011== Address 0x1ffee46020 is on thread 1's stack
96 ==15011== in frame #3, created by crypto_encrypt_lotus256_ref_keypair (???:)
97 ==15011==
98 ==15011== Invalid write of size 2
99 ==15011== at 0x10A8C2: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
100 ==15011== by 0x10AF9F: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
101 ==15011== by 0x10B038: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
102 ==15011== by 0x10A112: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
103 ==15011== by 0x109557: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
104 ==15011== by 0x1090B4: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
105 ==15011== Address 0x1ffee46030 is on thread 1's stack
106 ==15011== in frame #3, created by crypto_encrypt_lotus256_ref_keypair (???:)
107 ==15011==
108 ==15011== Invalid write of size 2
109 ==15011== at 0x10AFE8: sample_discrete_gaussian (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
110 ==15011== by 0x10B04C: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
111 ==15011== by 0x10A112: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
112 ==15011== by 0x109557: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
113 ==15011== by 0x1090B4: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
114 ==15011== Address 0x1ffedddf40 is on thread 1's stack
115 ==15011== in frame #2, created by crypto_encrypt_lotus256_ref_keypair (???:)
116 ==15011==
117 ==15011== Invalid write of size 2
118 ==15011== at 0x10AFE8: sample_discrete_gaussian (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
119 ==15011== by 0x10B059: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
120 ==15011== by 0x10A112: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
121 ==15011== by 0x109557: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
122 ==15011== by 0x1090B4: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
123 ==15011== Address 0x1ffef97f40 is on thread 1's stack
124 ==15011== in frame #2, created by crypto_encrypt_lotus256_ref_keypair (???:)
125 ==15011==
126 ==15011== Invalid read of size 2
127 ==15011== at 0x10B373: submul (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
128 ==15011== by 0x10B067: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
129 ==15011== by 0x10A112: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
130 ==15011== by 0x109557: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
131 ==15011== by 0x1090B4: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
132 ==15011== Address 0x1ffedddf40 is on thread 1's stack
133 ==15011== in frame #2, created by crypto_encrypt_lotus256_ref_keypair (???:)
134 ==15011==
135 ==15011== Invalid read of size 2
136 ==15011== at 0x10B378: submul (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
137 ==15011== by 0x10B067: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
138 ==15011== by 0x10A112: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
139 ==15011== by 0x109557: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
140 ==15011== by 0x1090B4: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
141 ==15011== Address 0x1ffee45f40 is on thread 1's stack
142 ==15011== in frame #2, created by crypto_encrypt_lotus256_ref_keypair (???:)
143 ==15011==
144 ==15011== Invalid read of size 2
145 ==15011== at 0x10B37D: submul (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
146 ==15011== by 0x10B067: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
147 ==15011== by 0x10A112: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
148 ==15011== by 0x109557: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
149 ==15011== by 0x1090B4: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try)
150 ==15011== Address 0x1ffef97f40 is on thread 1's stack
151 ==15011== in frame #2, created by crypto_encrypt_lotus256_ref_keypair (???:)
152 ==15011==
153 ==15011==
154 ==15011== More than 10000000 total errors detected. I'm not reporting any more.
155 ==15011== Final error counts will be inaccurate. Go fix your program!
156 ==15011== Rerun with --error-limit=no to disable this cutoff. Note
157 ==15011== that errors may occur in your program without prior warning from
158 ==15011== Valgrind, because errors are no longer being displayed.
159 ==15011==
160 ==15011== Warning: client switching stacks? SP change: 0x1ffedddf40 --> 0x1ffeffff48
161 ==15011== to suppress, use: --max-stackframe=2236424 or greater
162 ==15011== Warning: client switching stacks? SP change: 0x1ffeffff38 --> 0x1ffeddcd90
163 ==15011== to suppress, use: --max-stackframe=2240936 or greater
164 ==15011== further instances of this message will not be shown.
165 ==15011==
166 ==15011== HEAP SUMMARY:
167 ==15011== in use at exit: 16,310,192 bytes in 12 blocks
168 ==15011== total heap usage: 2,118 allocs, 2,106 frees, 16,418,976 bytes allocated
169 ==15011==
170 ==15011== LEAK SUMMARY:
171 ==15011== definitely lost: 0 bytes in 0 blocks
172 ==15011== indirectly lost: 0 bytes in 0 blocks
173 ==15011== possibly lost: 16,309,760 bytes in 10 blocks
174 ==15011== still reachable: 432 bytes in 2 blocks
175 ==15011== suppressed: 0 bytes in 0 blocks
176 ==15011== Rerun with --leak-check=full to see details of leaked memory
177 ==15011==
178 ==15011== For lists of detected and suppressed errors, rerun with: -s
179 ==15011== ERROR SUMMARY: 10000000 errors from 15 contexts (suppressed: 0 from 0)