Output save_alt Download

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