Output save_alt Download

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