Output save_alt Download

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