/src/cryptofuzz/executor.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | #include "executor.h" |
2 | | #include "tests.h" |
3 | | #include "mutatorpool.h" |
4 | | #include "config.h" |
5 | | #include <cryptofuzz/util.h> |
6 | | #include <fuzzing/memory.hpp> |
7 | | #include <algorithm> |
8 | | #include <set> |
9 | | #include <boost/multiprecision/cpp_int.hpp> |
10 | | |
11 | | uint32_t PRNG(void); |
12 | | |
13 | 106k | #define RETURN_IF_DISABLED(option, id) if ( !option.Have(id) ) return std::nullopt; |
14 | | |
15 | | namespace cryptofuzz { |
16 | | |
17 | 0 | static std::string GxCoordMutate(const uint64_t curveID, std::string coord) { |
18 | 0 | if ( (PRNG()%10) != 0 ) { |
19 | 0 | return coord; |
20 | 0 | } |
21 | | |
22 | 0 | if ( curveID == CF_ECC_CURVE("BLS12_381") ) { |
23 | 0 | const static auto prime = boost::multiprecision::cpp_int("4002409555221667393417789825735904156556882819939007885332058136124031650490837864442687629129015664037894272559787"); |
24 | 0 | return boost::multiprecision::cpp_int(boost::multiprecision::cpp_int(coord) + prime).str(); |
25 | 0 | } else if ( curveID == CF_ECC_CURVE("alt_bn128") ) { |
26 | 0 | const static auto prime = boost::multiprecision::cpp_int("21888242871839275222246405745257275088696311157297823662689037894645226208583"); |
27 | 0 | return boost::multiprecision::cpp_int(boost::multiprecision::cpp_int(coord) + prime).str(); |
28 | 0 | } else { |
29 | 0 | return coord; |
30 | 0 | } |
31 | 0 | } |
32 | 0 | static void G1AddToPool(const uint64_t curveID, const std::string& g1_x, const std::string& g1_y) { |
33 | 0 | Pool_CurveBLSG1.Set({ curveID, GxCoordMutate(curveID, g1_x), GxCoordMutate(curveID, g1_y) }); |
34 | 0 | } |
35 | | |
36 | | static void G2AddToPool(const uint64_t curveID, |
37 | | const std::string& g2_v, |
38 | | const std::string& g2_w, |
39 | | const std::string& g2_x, |
40 | 0 | const std::string& g2_y) { |
41 | |
|
42 | 0 | Pool_CurveBLSG2.Set({ curveID, |
43 | 0 | GxCoordMutate(curveID, g2_v), |
44 | 0 | GxCoordMutate(curveID, g2_w), |
45 | 0 | GxCoordMutate(curveID, g2_x), |
46 | 0 | GxCoordMutate(curveID, g2_y) |
47 | 0 | }); |
48 | 0 | } |
49 | | |
50 | | /* Specialization for operation::Digest */ |
51 | 6.03k | template<> void ExecutorBase<component::Digest, operation::Digest>::postprocess(std::shared_ptr<Module> module, operation::Digest& op, const ExecutorBase<component::Digest, operation::Digest>::ResultPair& result) const { |
52 | 6.03k | (void)module; |
53 | 6.03k | (void)op; |
54 | | |
55 | 6.03k | if ( result.second != std::nullopt ) { |
56 | 4.13k | fuzzing::memory::memory_test_msan(result.second->GetPtr(), result.second->GetSize()); |
57 | 4.13k | } |
58 | 6.03k | } |
59 | | |
60 | 6.03k | template<> std::optional<component::Digest> ExecutorBase<component::Digest, operation::Digest>::callModule(std::shared_ptr<Module> module, operation::Digest& op) const { |
61 | 6.03k | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
62 | | |
63 | 5.86k | return module->OpDigest(op); |
64 | 6.03k | } |
65 | | |
66 | | /* Specialization for operation::HMAC */ |
67 | 3.44k | template<> void ExecutorBase<component::MAC, operation::HMAC>::postprocess(std::shared_ptr<Module> module, operation::HMAC& op, const ExecutorBase<component::MAC, operation::HMAC>::ResultPair& result) const { |
68 | 3.44k | (void)module; |
69 | 3.44k | (void)op; |
70 | | |
71 | 3.44k | if ( result.second != std::nullopt ) { |
72 | 1.95k | fuzzing::memory::memory_test_msan(result.second->GetPtr(), result.second->GetSize()); |
73 | 1.95k | } |
74 | 3.44k | } |
75 | | |
76 | 3.45k | template<> std::optional<component::MAC> ExecutorBase<component::MAC, operation::HMAC>::callModule(std::shared_ptr<Module> module, operation::HMAC& op) const { |
77 | 3.45k | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
78 | | |
79 | 3.33k | return module->OpHMAC(op); |
80 | 3.45k | } |
81 | | |
82 | | /* Specialization for operation::UMAC */ |
83 | 0 | template<> void ExecutorBase<component::MAC, operation::UMAC>::postprocess(std::shared_ptr<Module> module, operation::UMAC& op, const ExecutorBase<component::MAC, operation::UMAC>::ResultPair& result) const { |
84 | 0 | (void)module; |
85 | 0 | (void)op; |
86 | |
|
87 | 0 | if ( result.second != std::nullopt ) { |
88 | 0 | fuzzing::memory::memory_test_msan(result.second->GetPtr(), result.second->GetSize()); |
89 | 0 | } |
90 | 0 | } |
91 | | |
92 | 0 | template<> std::optional<component::MAC> ExecutorBase<component::MAC, operation::UMAC>::callModule(std::shared_ptr<Module> module, operation::UMAC& op) const { |
93 | 0 | return module->OpUMAC(op); |
94 | 0 | } |
95 | | |
96 | | /* Specialization for operation::CMAC */ |
97 | 0 | template<> void ExecutorBase<component::MAC, operation::CMAC>::postprocess(std::shared_ptr<Module> module, operation::CMAC& op, const ExecutorBase<component::MAC, operation::CMAC>::ResultPair& result) const { |
98 | 0 | (void)module; |
99 | 0 | (void)op; |
100 | |
|
101 | 0 | if ( result.second != std::nullopt ) { |
102 | 0 | fuzzing::memory::memory_test_msan(result.second->GetPtr(), result.second->GetSize()); |
103 | 0 | } |
104 | 0 | } |
105 | | |
106 | 0 | template<> std::optional<component::MAC> ExecutorBase<component::MAC, operation::CMAC>::callModule(std::shared_ptr<Module> module, operation::CMAC& op) const { |
107 | 0 | RETURN_IF_DISABLED(options.ciphers, op.cipher.cipherType.Get()); |
108 | |
|
109 | 0 | return module->OpCMAC(op); |
110 | 0 | } |
111 | | |
112 | | /* Specialization for operation::SymmetricEncrypt */ |
113 | 2.42k | template<> void ExecutorBase<component::Ciphertext, operation::SymmetricEncrypt>::postprocess(std::shared_ptr<Module> module, operation::SymmetricEncrypt& op, const ExecutorBase<component::Ciphertext, operation::SymmetricEncrypt>::ResultPair& result) const { |
114 | 2.42k | if ( options.noDecrypt == true ) { |
115 | 0 | return; |
116 | 0 | } |
117 | | |
118 | 2.42k | if ( result.second != std::nullopt ) { |
119 | 389 | fuzzing::memory::memory_test_msan(result.second->ciphertext.GetPtr(), result.second->ciphertext.GetSize()); |
120 | 389 | if ( result.second->tag != std::nullopt ) { |
121 | 0 | fuzzing::memory::memory_test_msan(result.second->tag->GetPtr(), result.second->tag->GetSize()); |
122 | 0 | } |
123 | 389 | } |
124 | | |
125 | 2.42k | if ( op.cleartext.GetSize() > 0 && result.second != std::nullopt && result.second->ciphertext.GetSize() > 0 ) { |
126 | 376 | using fuzzing::datasource::ID; |
127 | | |
128 | 376 | bool tryDecrypt = true; |
129 | | |
130 | 376 | if ( module->ID == CF_MODULE("OpenSSL") ) { |
131 | 0 | switch ( op.cipher.cipherType.Get() ) { |
132 | 0 | case ID("Cryptofuzz/Cipher/AES_128_OCB"): |
133 | 0 | case ID("Cryptofuzz/Cipher/AES_256_OCB"): |
134 | 0 | tryDecrypt = false; |
135 | 0 | break; |
136 | 0 | case ID("Cryptofuzz/Cipher/AES_128_GCM"): |
137 | 0 | case ID("Cryptofuzz/Cipher/AES_192_GCM"): |
138 | 0 | case ID("Cryptofuzz/Cipher/AES_256_GCM"): |
139 | 0 | case ID("Cryptofuzz/Cipher/AES_128_CCM"): |
140 | 0 | case ID("Cryptofuzz/Cipher/AES_192_CCM"): |
141 | 0 | case ID("Cryptofuzz/Cipher/AES_256_CCM"): |
142 | 0 | case ID("Cryptofuzz/Cipher/ARIA_128_CCM"): |
143 | 0 | case ID("Cryptofuzz/Cipher/ARIA_192_CCM"): |
144 | 0 | case ID("Cryptofuzz/Cipher/ARIA_256_CCM"): |
145 | 0 | case ID("Cryptofuzz/Cipher/ARIA_128_GCM"): |
146 | 0 | case ID("Cryptofuzz/Cipher/ARIA_192_GCM"): |
147 | 0 | case ID("Cryptofuzz/Cipher/ARIA_256_GCM"): |
148 | 0 | if ( op.tagSize == std::nullopt ) { |
149 | | /* OpenSSL fails to decrypt its own CCM and GCM ciphertexts if |
150 | | * a tag is not included |
151 | | */ |
152 | 0 | tryDecrypt = false; |
153 | 0 | } |
154 | 0 | break; |
155 | 0 | } |
156 | 0 | } |
157 | | |
158 | 376 | if ( tryDecrypt == true ) { |
159 | | /* Try to decrypt the encrypted data */ |
160 | | |
161 | | /* Construct a SymmetricDecrypt instance with the SymmetricEncrypt instance */ |
162 | 376 | auto opDecrypt = operation::SymmetricDecrypt( |
163 | | /* The SymmetricEncrypt instance */ |
164 | 376 | op, |
165 | | |
166 | | /* The ciphertext generated by OpSymmetricEncrypt */ |
167 | 376 | *(result.second), |
168 | | |
169 | | /* The size of the output buffer that OpSymmetricDecrypt() must use. */ |
170 | 376 | op.cleartext.GetSize() + 32, |
171 | | |
172 | 376 | op.aad, |
173 | | |
174 | | /* Empty modifier */ |
175 | 376 | {}); |
176 | | |
177 | 376 | const auto cleartext = module->OpSymmetricDecrypt(opDecrypt); |
178 | | |
179 | 376 | if ( cleartext == std::nullopt ) { |
180 | | /* Decryption failed, OpSymmetricDecrypt() returned std::nullopt */ |
181 | 0 | printf("Cannot decrypt ciphertext\n\n"); |
182 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); |
183 | 0 | printf("Ciphertext: %s\n", util::HexDump(result.second->ciphertext.Get()).c_str()); |
184 | 0 | printf("Tag: %s\n", result.second->tag ? util::HexDump(result.second->tag->Get()).c_str() : "nullopt"); |
185 | 0 | abort( |
186 | 0 | {module->name}, |
187 | 0 | op.Name(), |
188 | 0 | op.GetAlgorithmString(), |
189 | 0 | "cannot decrypt ciphertext" |
190 | 0 | ); |
191 | 376 | } else if ( cleartext->Get() != op.cleartext.Get() ) { |
192 | | /* Decryption ostensibly succeeded, but the cleartext returned by OpSymmetricDecrypt() |
193 | | * does not match to original cleartext */ |
194 | |
|
195 | 0 | printf("Cannot decrypt ciphertext (but decryption ostensibly succeeded)\n\n"); |
196 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); |
197 | 0 | printf("Ciphertext: %s\n", util::HexDump(result.second->ciphertext.Get()).c_str()); |
198 | 0 | printf("Tag: %s\n", result.second->tag ? util::HexDump(result.second->tag->Get()).c_str() : "nullopt"); |
199 | 0 | printf("Purported cleartext: %s\n", util::HexDump(cleartext->Get()).c_str()); |
200 | 0 | abort( |
201 | 0 | {module->name}, |
202 | 0 | op.Name(), |
203 | 0 | op.GetAlgorithmString(), |
204 | 0 | "cannot decrypt ciphertext" |
205 | 0 | ); |
206 | 0 | } |
207 | 376 | } |
208 | 376 | } |
209 | 2.42k | } |
210 | | |
211 | 2.42k | template<> std::optional<component::Ciphertext> ExecutorBase<component::Ciphertext, operation::SymmetricEncrypt>::callModule(std::shared_ptr<Module> module, operation::SymmetricEncrypt& op) const { |
212 | 2.42k | RETURN_IF_DISABLED(options.ciphers , op.cipher.cipherType.Get()); |
213 | | |
214 | 1.86k | return module->OpSymmetricEncrypt(op); |
215 | 2.42k | } |
216 | | |
217 | | /* Specialization for operation::SymmetricDecrypt */ |
218 | 1.60k | template<> void ExecutorBase<component::MAC, operation::SymmetricDecrypt>::postprocess(std::shared_ptr<Module> module, operation::SymmetricDecrypt& op, const ExecutorBase<component::MAC, operation::SymmetricDecrypt>::ResultPair& result) const { |
219 | 1.60k | (void)module; |
220 | 1.60k | (void)op; |
221 | | |
222 | 1.60k | if ( result.second != std::nullopt ) { |
223 | 228 | fuzzing::memory::memory_test_msan(result.second->GetPtr(), result.second->GetSize()); |
224 | 228 | } |
225 | 1.60k | } |
226 | | |
227 | 1.60k | template<> std::optional<component::MAC> ExecutorBase<component::MAC, operation::SymmetricDecrypt>::callModule(std::shared_ptr<Module> module, operation::SymmetricDecrypt& op) const { |
228 | 1.60k | RETURN_IF_DISABLED(options.ciphers , op.cipher.cipherType.Get()); |
229 | | |
230 | 1.53k | return module->OpSymmetricDecrypt(op); |
231 | 1.60k | } |
232 | | |
233 | | /* Specialization for operation::KDF_SCRYPT */ |
234 | 0 | template<> void ExecutorBase<component::Key, operation::KDF_SCRYPT>::postprocess(std::shared_ptr<Module> module, operation::KDF_SCRYPT& op, const ExecutorBase<component::Key, operation::KDF_SCRYPT>::ResultPair& result) const { |
235 | 0 | (void)module; |
236 | 0 | (void)op; |
237 | |
|
238 | 0 | if ( result.second != std::nullopt ) { |
239 | 0 | fuzzing::memory::memory_test_msan(result.second->GetPtr(), result.second->GetSize()); |
240 | 0 | } |
241 | 0 | } |
242 | | |
243 | 0 | template<> std::optional<component::Key> ExecutorBase<component::Key, operation::KDF_SCRYPT>::callModule(std::shared_ptr<Module> module, operation::KDF_SCRYPT& op) const { |
244 | 0 | return module->OpKDF_SCRYPT(op); |
245 | 0 | } |
246 | | |
247 | | /* Specialization for operation::KDF_HKDF */ |
248 | 2.63k | template<> void ExecutorBase<component::Key, operation::KDF_HKDF>::postprocess(std::shared_ptr<Module> module, operation::KDF_HKDF& op, const ExecutorBase<component::Key, operation::KDF_HKDF>::ResultPair& result) const { |
249 | 2.63k | (void)module; |
250 | 2.63k | (void)op; |
251 | | |
252 | 2.63k | if ( result.second != std::nullopt ) { |
253 | 563 | fuzzing::memory::memory_test_msan(result.second->GetPtr(), result.second->GetSize()); |
254 | 563 | } |
255 | 2.63k | } |
256 | | |
257 | 2.63k | template<> std::optional<component::Key> ExecutorBase<component::Key, operation::KDF_HKDF>::callModule(std::shared_ptr<Module> module, operation::KDF_HKDF& op) const { |
258 | 2.63k | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
259 | | |
260 | 2.53k | return module->OpKDF_HKDF(op); |
261 | 2.63k | } |
262 | | |
263 | | /* Specialization for operation::KDF_PBKDF */ |
264 | 0 | template<> void ExecutorBase<component::Key, operation::KDF_PBKDF>::postprocess(std::shared_ptr<Module> module, operation::KDF_PBKDF& op, const ExecutorBase<component::Key, operation::KDF_PBKDF>::ResultPair& result) const { |
265 | 0 | (void)module; |
266 | 0 | (void)op; |
267 | |
|
268 | 0 | if ( result.second != std::nullopt ) { |
269 | 0 | fuzzing::memory::memory_test_msan(result.second->GetPtr(), result.second->GetSize()); |
270 | 0 | } |
271 | 0 | } |
272 | | |
273 | 0 | template<> std::optional<component::Key> ExecutorBase<component::Key, operation::KDF_PBKDF>::callModule(std::shared_ptr<Module> module, operation::KDF_PBKDF& op) const { |
274 | 0 | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
275 | |
|
276 | 0 | return module->OpKDF_PBKDF(op); |
277 | 0 | } |
278 | | |
279 | | /* Specialization for operation::KDF_PBKDF1 */ |
280 | 0 | template<> void ExecutorBase<component::Key, operation::KDF_PBKDF1>::postprocess(std::shared_ptr<Module> module, operation::KDF_PBKDF1& op, const ExecutorBase<component::Key, operation::KDF_PBKDF1>::ResultPair& result) const { |
281 | 0 | (void)module; |
282 | 0 | (void)op; |
283 | |
|
284 | 0 | if ( result.second != std::nullopt ) { |
285 | 0 | fuzzing::memory::memory_test_msan(result.second->GetPtr(), result.second->GetSize()); |
286 | 0 | } |
287 | 0 | } |
288 | | |
289 | 0 | template<> std::optional<component::Key> ExecutorBase<component::Key, operation::KDF_PBKDF1>::callModule(std::shared_ptr<Module> module, operation::KDF_PBKDF1& op) const { |
290 | 0 | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
291 | |
|
292 | 0 | return module->OpKDF_PBKDF1(op); |
293 | 0 | } |
294 | | |
295 | | /* Specialization for operation::KDF_PBKDF2 */ |
296 | 0 | template<> void ExecutorBase<component::Key, operation::KDF_PBKDF2>::postprocess(std::shared_ptr<Module> module, operation::KDF_PBKDF2& op, const ExecutorBase<component::Key, operation::KDF_PBKDF2>::ResultPair& result) const { |
297 | 0 | (void)module; |
298 | 0 | (void)op; |
299 | |
|
300 | 0 | if ( result.second != std::nullopt ) { |
301 | 0 | fuzzing::memory::memory_test_msan(result.second->GetPtr(), result.second->GetSize()); |
302 | 0 | } |
303 | 0 | } |
304 | | |
305 | 0 | template<> std::optional<component::Key> ExecutorBase<component::Key, operation::KDF_PBKDF2>::callModule(std::shared_ptr<Module> module, operation::KDF_PBKDF2& op) const { |
306 | 0 | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
307 | |
|
308 | 0 | return module->OpKDF_PBKDF2(op); |
309 | 0 | } |
310 | | |
311 | | /* Specialization for operation::KDF_ARGON2 */ |
312 | 0 | template<> void ExecutorBase<component::Key, operation::KDF_ARGON2>::postprocess(std::shared_ptr<Module> module, operation::KDF_ARGON2& op, const ExecutorBase<component::Key, operation::KDF_ARGON2>::ResultPair& result) const { |
313 | 0 | (void)module; |
314 | 0 | (void)op; |
315 | |
|
316 | 0 | if ( result.second != std::nullopt ) { |
317 | 0 | fuzzing::memory::memory_test_msan(result.second->GetPtr(), result.second->GetSize()); |
318 | 0 | } |
319 | 0 | } |
320 | | |
321 | 0 | template<> std::optional<component::Key> ExecutorBase<component::Key, operation::KDF_ARGON2>::callModule(std::shared_ptr<Module> module, operation::KDF_ARGON2& op) const { |
322 | 0 | return module->OpKDF_ARGON2(op); |
323 | 0 | } |
324 | | |
325 | | /* Specialization for operation::KDF_SSH */ |
326 | 0 | template<> void ExecutorBase<component::Key, operation::KDF_SSH>::postprocess(std::shared_ptr<Module> module, operation::KDF_SSH& op, const ExecutorBase<component::Key, operation::KDF_SSH>::ResultPair& result) const { |
327 | 0 | (void)module; |
328 | 0 | (void)op; |
329 | |
|
330 | 0 | if ( result.second != std::nullopt ) { |
331 | 0 | fuzzing::memory::memory_test_msan(result.second->GetPtr(), result.second->GetSize()); |
332 | 0 | } |
333 | 0 | } |
334 | | |
335 | 0 | template<> std::optional<component::Key> ExecutorBase<component::Key, operation::KDF_SSH>::callModule(std::shared_ptr<Module> module, operation::KDF_SSH& op) const { |
336 | 0 | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
337 | |
|
338 | 0 | return module->OpKDF_SSH(op); |
339 | 0 | } |
340 | | |
341 | | /* Specialization for operation::KDF_TLS1_PRF */ |
342 | 0 | template<> void ExecutorBase<component::Key, operation::KDF_TLS1_PRF>::postprocess(std::shared_ptr<Module> module, operation::KDF_TLS1_PRF& op, const ExecutorBase<component::Key, operation::KDF_TLS1_PRF>::ResultPair& result) const { |
343 | 0 | (void)module; |
344 | 0 | (void)op; |
345 | |
|
346 | 0 | if ( result.second != std::nullopt ) { |
347 | 0 | fuzzing::memory::memory_test_msan(result.second->GetPtr(), result.second->GetSize()); |
348 | 0 | } |
349 | 0 | } |
350 | | |
351 | 0 | template<> std::optional<component::Key> ExecutorBase<component::Key, operation::KDF_TLS1_PRF>::callModule(std::shared_ptr<Module> module, operation::KDF_TLS1_PRF& op) const { |
352 | 0 | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
353 | |
|
354 | 0 | return module->OpKDF_TLS1_PRF(op); |
355 | 0 | } |
356 | | |
357 | | /* Specialization for operation::KDF_X963 */ |
358 | 0 | template<> void ExecutorBase<component::Key, operation::KDF_X963>::postprocess(std::shared_ptr<Module> module, operation::KDF_X963& op, const ExecutorBase<component::Key, operation::KDF_X963>::ResultPair& result) const { |
359 | 0 | (void)module; |
360 | 0 | (void)op; |
361 | |
|
362 | 0 | if ( result.second != std::nullopt ) { |
363 | 0 | fuzzing::memory::memory_test_msan(result.second->GetPtr(), result.second->GetSize()); |
364 | 0 | } |
365 | 0 | } |
366 | | |
367 | 0 | template<> std::optional<component::Key> ExecutorBase<component::Key, operation::KDF_X963>::callModule(std::shared_ptr<Module> module, operation::KDF_X963& op) const { |
368 | 0 | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
369 | |
|
370 | 0 | return module->OpKDF_X963(op); |
371 | 0 | } |
372 | | |
373 | | /* Specialization for operation::KDF_BCRYPT */ |
374 | 0 | template<> void ExecutorBase<component::Key, operation::KDF_BCRYPT>::postprocess(std::shared_ptr<Module> module, operation::KDF_BCRYPT& op, const ExecutorBase<component::Key, operation::KDF_BCRYPT>::ResultPair& result) const { |
375 | 0 | (void)module; |
376 | 0 | (void)op; |
377 | |
|
378 | 0 | if ( result.second != std::nullopt ) { |
379 | 0 | fuzzing::memory::memory_test_msan(result.second->GetPtr(), result.second->GetSize()); |
380 | 0 | } |
381 | 0 | } |
382 | | |
383 | 0 | template<> std::optional<component::Key> ExecutorBase<component::Key, operation::KDF_BCRYPT>::callModule(std::shared_ptr<Module> module, operation::KDF_BCRYPT& op) const { |
384 | 0 | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
385 | |
|
386 | 0 | return module->OpKDF_BCRYPT(op); |
387 | 0 | } |
388 | | |
389 | | /* Specialization for operation::KDF_SP_800_108 */ |
390 | 0 | template<> void ExecutorBase<component::Key, operation::KDF_SP_800_108>::postprocess(std::shared_ptr<Module> module, operation::KDF_SP_800_108& op, const ExecutorBase<component::Key, operation::KDF_SP_800_108>::ResultPair& result) const { |
391 | 0 | (void)module; |
392 | 0 | (void)op; |
393 | |
|
394 | 0 | if ( result.second != std::nullopt ) { |
395 | 0 | fuzzing::memory::memory_test_msan(result.second->GetPtr(), result.second->GetSize()); |
396 | 0 | } |
397 | 0 | } |
398 | | |
399 | 0 | template<> std::optional<component::Key> ExecutorBase<component::Key, operation::KDF_SP_800_108>::callModule(std::shared_ptr<Module> module, operation::KDF_SP_800_108& op) const { |
400 | 0 | if ( op.mech.mode == true ) { |
401 | 0 | RETURN_IF_DISABLED(options.digests, op.mech.type.Get()); |
402 | 0 | } |
403 | | |
404 | 0 | return module->OpKDF_SP_800_108(op); |
405 | 0 | } |
406 | | |
407 | | /* Specialization for operation::KDF_SRTP */ |
408 | 0 | template<> void ExecutorBase<component::Key3, operation::KDF_SRTP>::postprocess(std::shared_ptr<Module> module, operation::KDF_SRTP& op, const ExecutorBase<component::Key3, operation::KDF_SRTP>::ResultPair& result) const { |
409 | 0 | (void)module; |
410 | 0 | (void)op; |
411 | 0 | (void)result; |
412 | 0 | } |
413 | | |
414 | 0 | template<> std::optional<component::Key3> ExecutorBase<component::Key3, operation::KDF_SRTP>::callModule(std::shared_ptr<Module> module, operation::KDF_SRTP& op) const { |
415 | 0 | return module->OpKDF_SRTP(op); |
416 | 0 | } |
417 | | |
418 | | /* Specialization for operation::KDF_SRTCP */ |
419 | 0 | template<> void ExecutorBase<component::Key3, operation::KDF_SRTCP>::postprocess(std::shared_ptr<Module> module, operation::KDF_SRTCP& op, const ExecutorBase<component::Key3, operation::KDF_SRTCP>::ResultPair& result) const { |
420 | 0 | (void)module; |
421 | 0 | (void)op; |
422 | 0 | (void)result; |
423 | 0 | } |
424 | | |
425 | 0 | template<> std::optional<component::Key3> ExecutorBase<component::Key3, operation::KDF_SRTCP>::callModule(std::shared_ptr<Module> module, operation::KDF_SRTCP& op) const { |
426 | 0 | return module->OpKDF_SRTCP(op); |
427 | 0 | } |
428 | | |
429 | | /* Specialization for operation::ECC_PrivateToPublic */ |
430 | 4.35k | template<> void ExecutorBase<component::ECC_PublicKey, operation::ECC_PrivateToPublic>::postprocess(std::shared_ptr<Module> module, operation::ECC_PrivateToPublic& op, const ExecutorBase<component::ECC_PublicKey, operation::ECC_PrivateToPublic>::ResultPair& result) const { |
431 | 4.35k | (void)module; |
432 | | |
433 | 4.35k | if ( result.second != std::nullopt ) { |
434 | 2.65k | const auto curveID = op.curveType.Get(); |
435 | 2.65k | const auto privkey = op.priv.ToTrimmedString(); |
436 | 2.65k | const auto pub_x = result.second->first.ToTrimmedString(); |
437 | 2.65k | const auto pub_y = result.second->second.ToTrimmedString(); |
438 | | |
439 | 2.65k | Pool_CurvePrivkey.Set({ curveID, privkey }); |
440 | 2.65k | Pool_CurveKeypair.Set({ curveID, privkey, pub_x, pub_y }); |
441 | 2.65k | Pool_CurveECC_Point.Set({ curveID, pub_x, pub_y }); |
442 | | |
443 | 2.65k | if ( pub_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(pub_x); } |
444 | 2.65k | if ( pub_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(pub_y); } |
445 | 2.65k | } |
446 | 4.35k | } |
447 | | |
448 | 4.35k | template<> std::optional<component::ECC_PublicKey> ExecutorBase<component::ECC_PublicKey, operation::ECC_PrivateToPublic>::callModule(std::shared_ptr<Module> module, operation::ECC_PrivateToPublic& op) const { |
449 | 4.35k | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
450 | | |
451 | 4.21k | const size_t size = op.priv.ToTrimmedString().size(); |
452 | | |
453 | 4.21k | if ( size == 0 || size > 4096 ) { |
454 | 0 | return std::nullopt; |
455 | 0 | } |
456 | | |
457 | 4.21k | return module->OpECC_PrivateToPublic(op); |
458 | 4.21k | } |
459 | | |
460 | | /* Specialization for operation::ECC_ValidatePubkey */ |
461 | 1.68k | template<> void ExecutorBase<bool, operation::ECC_ValidatePubkey>::postprocess(std::shared_ptr<Module> module, operation::ECC_ValidatePubkey& op, const ExecutorBase<bool, operation::ECC_ValidatePubkey>::ResultPair& result) const { |
462 | 1.68k | (void)module; |
463 | 1.68k | (void)op; |
464 | 1.68k | (void)result; |
465 | 1.68k | } |
466 | | |
467 | 1.68k | template<> std::optional<bool> ExecutorBase<bool, operation::ECC_ValidatePubkey>::callModule(std::shared_ptr<Module> module, operation::ECC_ValidatePubkey& op) const { |
468 | 1.68k | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
469 | | |
470 | 1.59k | return module->OpECC_ValidatePubkey(op); |
471 | 1.68k | } |
472 | | |
473 | | /* Specialization for operation::ECC_GenerateKeyPair */ |
474 | | |
475 | | /* Do not compare DH_GenerateKeyPair results, because the result can be produced indeterministically */ |
476 | | template <> |
477 | 0 | void ExecutorBase<component::DH_KeyPair, operation::DH_GenerateKeyPair>::compare(const std::vector< std::pair<std::shared_ptr<Module>, operation::DH_GenerateKeyPair> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { |
478 | 0 | (void)operations; |
479 | 0 | (void)results; |
480 | 0 | (void)data; |
481 | 0 | (void)size; |
482 | 0 | } |
483 | | |
484 | 0 | template<> void ExecutorBase<component::ECC_KeyPair, operation::ECC_GenerateKeyPair>::postprocess(std::shared_ptr<Module> module, operation::ECC_GenerateKeyPair& op, const ExecutorBase<component::ECC_KeyPair, operation::ECC_GenerateKeyPair>::ResultPair& result) const { |
485 | 0 | (void)module; |
486 | |
|
487 | 0 | if ( result.second != std::nullopt ) { |
488 | 0 | const auto curveID = op.curveType.Get(); |
489 | 0 | const auto privkey = result.second->priv.ToTrimmedString(); |
490 | 0 | const auto pub_x = result.second->pub.first.ToTrimmedString(); |
491 | 0 | const auto pub_y = result.second->pub.second.ToTrimmedString(); |
492 | |
|
493 | 0 | Pool_CurvePrivkey.Set({ curveID, privkey }); |
494 | 0 | Pool_CurveKeypair.Set({ curveID, privkey, pub_x, pub_y }); |
495 | 0 | Pool_CurveECC_Point.Set({ curveID, pub_x, pub_y }); |
496 | |
|
497 | 0 | { |
498 | 0 | auto opValidate = operation::ECC_ValidatePubkey( |
499 | 0 | op.curveType, |
500 | 0 | result.second->pub, |
501 | 0 | op.modifier); |
502 | |
|
503 | 0 | const auto validateResult = module->OpECC_ValidatePubkey(opValidate); |
504 | 0 | CF_ASSERT( |
505 | 0 | validateResult == std::nullopt || |
506 | 0 | *validateResult == true, |
507 | 0 | "Cannot validate generated public key"); |
508 | 0 | } |
509 | 0 | } |
510 | 0 | } |
511 | | |
512 | 0 | template<> std::optional<component::ECC_KeyPair> ExecutorBase<component::ECC_KeyPair, operation::ECC_GenerateKeyPair>::callModule(std::shared_ptr<Module> module, operation::ECC_GenerateKeyPair& op) const { |
513 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
514 | |
|
515 | 0 | return module->OpECC_GenerateKeyPair(op); |
516 | 0 | } |
517 | | |
518 | | /* Specialization for operation::ECCSI_Sign */ |
519 | 0 | template<> void ExecutorBase<component::ECCSI_Signature, operation::ECCSI_Sign>::postprocess(std::shared_ptr<Module> module, operation::ECCSI_Sign& op, const ExecutorBase<component::ECCSI_Signature, operation::ECCSI_Sign>::ResultPair& result) const { |
520 | 0 | (void)module; |
521 | |
|
522 | 0 | if ( result.second != std::nullopt ) { |
523 | 0 | const auto curveID = op.curveType.Get(); |
524 | 0 | const auto cleartext = op.cleartext.ToHex(); |
525 | 0 | const auto id = op.id.ToHex(); |
526 | 0 | const auto pub_x = result.second->pub.first.ToTrimmedString(); |
527 | 0 | const auto pub_y = result.second->pub.second.ToTrimmedString(); |
528 | 0 | const auto pvt_x = result.second->pvt.first.ToTrimmedString(); |
529 | 0 | const auto pvt_y = result.second->pvt.second.ToTrimmedString(); |
530 | 0 | const auto sig_r = result.second->signature.first.ToTrimmedString(); |
531 | 0 | const auto sig_s = result.second->signature.second.ToTrimmedString(); |
532 | |
|
533 | 0 | Pool_CurveECCSISignature.Set({ |
534 | 0 | curveID, |
535 | 0 | cleartext, |
536 | 0 | id, |
537 | 0 | pub_x, pub_y, |
538 | 0 | pvt_x, pvt_y, |
539 | 0 | sig_r, sig_s}); |
540 | 0 | Pool_CurveECC_Point.Set({ curveID, pub_x, pub_y }); |
541 | 0 | Pool_CurveECC_Point.Set({ curveID, pvt_x, pvt_y }); |
542 | 0 | Pool_CurveECC_Point.Set({ curveID, sig_r, sig_s }); |
543 | |
|
544 | 0 | if ( pub_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(pub_x); } |
545 | 0 | if ( pub_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(pub_y); } |
546 | 0 | if ( pvt_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(pvt_x); } |
547 | 0 | if ( pvt_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(pvt_y); } |
548 | 0 | if ( sig_r.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(sig_r); } |
549 | 0 | if ( sig_s.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(sig_s); } |
550 | |
|
551 | 0 | { |
552 | 0 | auto opVerify = operation::ECCSI_Verify( |
553 | 0 | op, |
554 | 0 | *(result.second), |
555 | 0 | op.modifier); |
556 | |
|
557 | 0 | const auto verifyResult = module->OpECCSI_Verify(opVerify); |
558 | 0 | CF_ASSERT( |
559 | 0 | verifyResult == std::nullopt || |
560 | 0 | *verifyResult == true, |
561 | 0 | "Cannot verify generated signature"); |
562 | 0 | } |
563 | 0 | } |
564 | 0 | } |
565 | | |
566 | 0 | template<> std::optional<component::ECCSI_Signature> ExecutorBase<component::ECCSI_Signature, operation::ECCSI_Sign>::callModule(std::shared_ptr<Module> module, operation::ECCSI_Sign& op) const { |
567 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
568 | 0 | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
569 | |
|
570 | 0 | const size_t size = op.priv.ToTrimmedString().size(); |
571 | |
|
572 | 0 | if ( size == 0 || size > 4096 ) { |
573 | 0 | return std::nullopt; |
574 | 0 | } |
575 | | |
576 | 0 | return module->OpECCSI_Sign(op); |
577 | 0 | } |
578 | | |
579 | | /* Specialization for operation::ECDSA_Sign */ |
580 | 11.3k | template<> void ExecutorBase<component::ECDSA_Signature, operation::ECDSA_Sign>::postprocess(std::shared_ptr<Module> module, operation::ECDSA_Sign& op, const ExecutorBase<component::ECDSA_Signature, operation::ECDSA_Sign>::ResultPair& result) const { |
581 | 11.3k | (void)module; |
582 | | |
583 | 11.3k | if ( result.second != std::nullopt ) { |
584 | 4.84k | const auto curveID = op.curveType.Get(); |
585 | 4.84k | const auto cleartext = op.cleartext.ToHex(); |
586 | 4.84k | const auto pub_x = result.second->pub.first.ToTrimmedString(); |
587 | 4.84k | const auto pub_y = result.second->pub.second.ToTrimmedString(); |
588 | 4.84k | const auto sig_r = result.second->signature.first.ToTrimmedString(); |
589 | 4.84k | const auto sig_s = result.second->signature.second.ToTrimmedString(); |
590 | | |
591 | 4.84k | Pool_CurveECDSASignature.Set({ curveID, cleartext, pub_x, pub_y, sig_r, sig_s}); |
592 | 4.84k | Pool_CurveECC_Point.Set({ curveID, pub_x, pub_y }); |
593 | 4.84k | Pool_CurveECC_Point.Set({ curveID, sig_r, sig_s }); |
594 | | |
595 | 4.84k | if ( pub_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(pub_x); } |
596 | 4.84k | if ( pub_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(pub_y); } |
597 | 4.84k | if ( sig_r.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(sig_r); } |
598 | 4.84k | if ( sig_s.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(sig_s); } |
599 | | |
600 | 4.84k | { |
601 | 4.84k | auto opVerify = operation::ECDSA_Verify( |
602 | 4.84k | op, |
603 | 4.84k | *(result.second), |
604 | 4.84k | op.modifier); |
605 | | |
606 | 4.84k | const auto verifyResult = module->OpECDSA_Verify(opVerify); |
607 | 4.84k | CF_ASSERT( |
608 | 4.84k | verifyResult == std::nullopt || |
609 | 4.84k | *verifyResult == true, |
610 | 4.84k | "Cannot verify generated signature"); |
611 | 4.84k | } |
612 | 4.84k | } |
613 | 11.3k | } |
614 | | |
615 | 11.3k | template<> std::optional<component::ECDSA_Signature> ExecutorBase<component::ECDSA_Signature, operation::ECDSA_Sign>::callModule(std::shared_ptr<Module> module, operation::ECDSA_Sign& op) const { |
616 | 11.3k | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
617 | 11.2k | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
618 | | |
619 | 11.1k | const size_t size = op.priv.ToTrimmedString().size(); |
620 | | |
621 | 11.1k | if ( size == 0 || size > 4096 ) { |
622 | 0 | return std::nullopt; |
623 | 0 | } |
624 | | |
625 | 11.1k | return module->OpECDSA_Sign(op); |
626 | 11.1k | } |
627 | | |
628 | | /* Specialization for operation::ECGDSA_Sign */ |
629 | 0 | template<> void ExecutorBase<component::ECGDSA_Signature, operation::ECGDSA_Sign>::postprocess(std::shared_ptr<Module> module, operation::ECGDSA_Sign& op, const ExecutorBase<component::ECGDSA_Signature, operation::ECGDSA_Sign>::ResultPair& result) const { |
630 | 0 | (void)module; |
631 | |
|
632 | 0 | if ( result.second != std::nullopt ) { |
633 | 0 | const auto curveID = op.curveType.Get(); |
634 | 0 | const auto cleartext = op.cleartext.ToHex(); |
635 | 0 | const auto pub_x = result.second->pub.first.ToTrimmedString(); |
636 | 0 | const auto pub_y = result.second->pub.second.ToTrimmedString(); |
637 | 0 | const auto sig_r = result.second->signature.first.ToTrimmedString(); |
638 | 0 | const auto sig_s = result.second->signature.second.ToTrimmedString(); |
639 | |
|
640 | 0 | Pool_CurveECDSASignature.Set({ curveID, cleartext, pub_x, pub_y, sig_r, sig_s}); |
641 | 0 | Pool_CurveECC_Point.Set({ curveID, pub_x, pub_y }); |
642 | 0 | Pool_CurveECC_Point.Set({ curveID, sig_r, sig_s }); |
643 | |
|
644 | 0 | if ( pub_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(pub_x); } |
645 | 0 | if ( pub_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(pub_y); } |
646 | 0 | if ( sig_r.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(sig_r); } |
647 | 0 | if ( sig_s.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(sig_s); } |
648 | 0 | } |
649 | 0 | } |
650 | | |
651 | 0 | template<> std::optional<component::ECGDSA_Signature> ExecutorBase<component::ECGDSA_Signature, operation::ECGDSA_Sign>::callModule(std::shared_ptr<Module> module, operation::ECGDSA_Sign& op) const { |
652 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
653 | 0 | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
654 | |
|
655 | 0 | const size_t size = op.priv.ToTrimmedString().size(); |
656 | |
|
657 | 0 | if ( size == 0 || size > 4096 ) { |
658 | 0 | return std::nullopt; |
659 | 0 | } |
660 | | |
661 | 0 | return module->OpECGDSA_Sign(op); |
662 | 0 | } |
663 | | |
664 | | /* Specialization for operation::ECRDSA_Sign */ |
665 | 0 | template<> void ExecutorBase<component::ECRDSA_Signature, operation::ECRDSA_Sign>::postprocess(std::shared_ptr<Module> module, operation::ECRDSA_Sign& op, const ExecutorBase<component::ECRDSA_Signature, operation::ECRDSA_Sign>::ResultPair& result) const { |
666 | 0 | (void)module; |
667 | |
|
668 | 0 | if ( result.second != std::nullopt ) { |
669 | 0 | const auto curveID = op.curveType.Get(); |
670 | 0 | const auto cleartext = op.cleartext.ToHex(); |
671 | 0 | const auto pub_x = result.second->pub.first.ToTrimmedString(); |
672 | 0 | const auto pub_y = result.second->pub.second.ToTrimmedString(); |
673 | 0 | const auto sig_r = result.second->signature.first.ToTrimmedString(); |
674 | 0 | const auto sig_s = result.second->signature.second.ToTrimmedString(); |
675 | |
|
676 | 0 | Pool_CurveECDSASignature.Set({ curveID, cleartext, pub_x, pub_y, sig_r, sig_s}); |
677 | 0 | Pool_CurveECC_Point.Set({ curveID, pub_x, pub_y }); |
678 | 0 | Pool_CurveECC_Point.Set({ curveID, sig_r, sig_s }); |
679 | |
|
680 | 0 | if ( pub_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(pub_x); } |
681 | 0 | if ( pub_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(pub_y); } |
682 | 0 | if ( sig_r.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(sig_r); } |
683 | 0 | if ( sig_s.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(sig_s); } |
684 | 0 | } |
685 | 0 | } |
686 | | |
687 | 0 | template<> std::optional<component::ECRDSA_Signature> ExecutorBase<component::ECRDSA_Signature, operation::ECRDSA_Sign>::callModule(std::shared_ptr<Module> module, operation::ECRDSA_Sign& op) const { |
688 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
689 | 0 | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
690 | |
|
691 | 0 | const size_t size = op.priv.ToTrimmedString().size(); |
692 | |
|
693 | 0 | if ( size == 0 || size > 4096 ) { |
694 | 0 | return std::nullopt; |
695 | 0 | } |
696 | | |
697 | 0 | return module->OpECRDSA_Sign(op); |
698 | 0 | } |
699 | | |
700 | | /* Specialization for operation::Schnorr_Sign */ |
701 | 4.91k | template<> void ExecutorBase<component::Schnorr_Signature, operation::Schnorr_Sign>::postprocess(std::shared_ptr<Module> module, operation::Schnorr_Sign& op, const ExecutorBase<component::Schnorr_Signature, operation::Schnorr_Sign>::ResultPair& result) const { |
702 | 4.91k | (void)module; |
703 | | |
704 | 4.91k | if ( result.second != std::nullopt ) { |
705 | 1.09k | const auto curveID = op.curveType.Get(); |
706 | 1.09k | const auto cleartext = op.cleartext.ToHex(); |
707 | 1.09k | const auto pub_x = result.second->pub.first.ToTrimmedString(); |
708 | 1.09k | const auto pub_y = result.second->pub.second.ToTrimmedString(); |
709 | 1.09k | const auto sig_r = result.second->signature.first.ToTrimmedString(); |
710 | 1.09k | const auto sig_s = result.second->signature.second.ToTrimmedString(); |
711 | | |
712 | 1.09k | Pool_CurveECDSASignature.Set({ curveID, cleartext, pub_x, pub_y, sig_r, sig_s}); |
713 | 1.09k | Pool_CurveECC_Point.Set({ curveID, pub_x, pub_y }); |
714 | 1.09k | Pool_CurveECC_Point.Set({ curveID, sig_r, sig_s }); |
715 | | |
716 | 1.09k | if ( pub_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(pub_x); } |
717 | 1.09k | if ( pub_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(pub_y); } |
718 | 1.09k | if ( sig_r.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(sig_r); } |
719 | 1.09k | if ( sig_s.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(sig_s); } |
720 | 1.09k | } |
721 | 4.91k | } |
722 | | |
723 | 4.91k | template<> std::optional<component::Schnorr_Signature> ExecutorBase<component::Schnorr_Signature, operation::Schnorr_Sign>::callModule(std::shared_ptr<Module> module, operation::Schnorr_Sign& op) const { |
724 | 4.91k | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
725 | 4.81k | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
726 | | |
727 | 4.74k | const size_t size = op.priv.ToTrimmedString().size(); |
728 | | |
729 | 4.74k | if ( size == 0 || size > 4096 ) { |
730 | 0 | return std::nullopt; |
731 | 0 | } |
732 | | |
733 | 4.74k | return module->OpSchnorr_Sign(op); |
734 | 4.74k | } |
735 | | |
736 | | /* Specialization for operation::ECCSI_Verify */ |
737 | 0 | template<> void ExecutorBase<bool, operation::ECCSI_Verify>::postprocess(std::shared_ptr<Module> module, operation::ECCSI_Verify& op, const ExecutorBase<bool, operation::ECCSI_Verify>::ResultPair& result) const { |
738 | 0 | (void)module; |
739 | 0 | (void)op; |
740 | 0 | (void)result; |
741 | 0 | } |
742 | | |
743 | 0 | template<> std::optional<bool> ExecutorBase<bool, operation::ECCSI_Verify>::callModule(std::shared_ptr<Module> module, operation::ECCSI_Verify& op) const { |
744 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
745 | 0 | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
746 | |
|
747 | 0 | return module->OpECCSI_Verify(op); |
748 | 0 | } |
749 | | |
750 | | /* Specialization for operation::ECDSA_Verify */ |
751 | 2.63k | template<> void ExecutorBase<bool, operation::ECDSA_Verify>::postprocess(std::shared_ptr<Module> module, operation::ECDSA_Verify& op, const ExecutorBase<bool, operation::ECDSA_Verify>::ResultPair& result) const { |
752 | 2.63k | (void)module; |
753 | 2.63k | (void)op; |
754 | 2.63k | (void)result; |
755 | 2.63k | } |
756 | | |
757 | 2.63k | template<> std::optional<bool> ExecutorBase<bool, operation::ECDSA_Verify>::callModule(std::shared_ptr<Module> module, operation::ECDSA_Verify& op) const { |
758 | 2.63k | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
759 | 2.50k | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
760 | | |
761 | | /* Intentionally do not constrain the size of the public key or |
762 | | * signature (like we do for BignumCalc). |
763 | | * |
764 | | * If any large public key or signature causes a time-out (or |
765 | | * worse), this is something that needs attention; |
766 | | * because verifiers sometimes process untrusted public keys, |
767 | | * signatures or both, they should be resistant to bugs |
768 | | * arising from large inputs. |
769 | | */ |
770 | | |
771 | 2.45k | return module->OpECDSA_Verify(op); |
772 | 2.50k | } |
773 | | |
774 | | /* Specialization for operation::ECGDSA_Verify */ |
775 | 0 | template<> void ExecutorBase<bool, operation::ECGDSA_Verify>::postprocess(std::shared_ptr<Module> module, operation::ECGDSA_Verify& op, const ExecutorBase<bool, operation::ECGDSA_Verify>::ResultPair& result) const { |
776 | 0 | (void)module; |
777 | 0 | (void)op; |
778 | 0 | (void)result; |
779 | 0 | } |
780 | | |
781 | 0 | template<> std::optional<bool> ExecutorBase<bool, operation::ECGDSA_Verify>::callModule(std::shared_ptr<Module> module, operation::ECGDSA_Verify& op) const { |
782 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
783 | 0 | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
784 | | |
785 | | /* Intentionally do not constrain the size of the public key or |
786 | | * signature (like we do for BignumCalc). |
787 | | * |
788 | | * If any large public key or signature causes a time-out (or |
789 | | * worse), this is something that needs attention; |
790 | | * because verifiers sometimes process untrusted public keys, |
791 | | * signatures or both, they should be resistant to bugs |
792 | | * arising from large inputs. |
793 | | */ |
794 | |
|
795 | 0 | return module->OpECGDSA_Verify(op); |
796 | 0 | } |
797 | | |
798 | | /* Specialization for operation::ECRDSA_Verify */ |
799 | 0 | template<> void ExecutorBase<bool, operation::ECRDSA_Verify>::postprocess(std::shared_ptr<Module> module, operation::ECRDSA_Verify& op, const ExecutorBase<bool, operation::ECRDSA_Verify>::ResultPair& result) const { |
800 | 0 | (void)module; |
801 | 0 | (void)op; |
802 | 0 | (void)result; |
803 | 0 | } |
804 | | |
805 | 0 | template<> std::optional<bool> ExecutorBase<bool, operation::ECRDSA_Verify>::callModule(std::shared_ptr<Module> module, operation::ECRDSA_Verify& op) const { |
806 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
807 | 0 | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
808 | | |
809 | | /* Intentionally do not constrain the size of the public key or |
810 | | * signature (like we do for BignumCalc). |
811 | | * |
812 | | * If any large public key or signature causes a time-out (or |
813 | | * worse), this is something that needs attention; |
814 | | * because verifiers sometimes process untrusted public keys, |
815 | | * signatures or both, they should be resistant to bugs |
816 | | * arising from large inputs. |
817 | | */ |
818 | |
|
819 | 0 | return module->OpECRDSA_Verify(op); |
820 | 0 | } |
821 | | |
822 | | /* Specialization for operation::Schnorr_Verify */ |
823 | 2.46k | template<> void ExecutorBase<bool, operation::Schnorr_Verify>::postprocess(std::shared_ptr<Module> module, operation::Schnorr_Verify& op, const ExecutorBase<bool, operation::Schnorr_Verify>::ResultPair& result) const { |
824 | 2.46k | (void)module; |
825 | 2.46k | (void)op; |
826 | 2.46k | (void)result; |
827 | 2.46k | } |
828 | | |
829 | 2.46k | template<> std::optional<bool> ExecutorBase<bool, operation::Schnorr_Verify>::callModule(std::shared_ptr<Module> module, operation::Schnorr_Verify& op) const { |
830 | 2.46k | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
831 | 2.27k | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
832 | | |
833 | | /* Intentionally do not constrain the size of the public key or |
834 | | * signature (like we do for BignumCalc). |
835 | | * |
836 | | * If any large public key or signature causes a time-out (or |
837 | | * worse), this is something that needs attention; |
838 | | * because verifiers sometimes process untrusted public keys, |
839 | | * signatures or both, they should be resistant to bugs |
840 | | * arising from large inputs. |
841 | | */ |
842 | | |
843 | 2.21k | return module->OpSchnorr_Verify(op); |
844 | 2.27k | } |
845 | | |
846 | 7.52k | template<> void ExecutorBase<component::ECC_PublicKey, operation::ECDSA_Recover>::postprocess(std::shared_ptr<Module> module, operation::ECDSA_Recover& op, const ExecutorBase<component::ECC_PublicKey, operation::ECDSA_Recover>::ResultPair& result) const { |
847 | 7.52k | (void)module; |
848 | 7.52k | (void)op; |
849 | 7.52k | (void)result; |
850 | 7.52k | } |
851 | | |
852 | 7.52k | template<> std::optional<component::ECC_PublicKey> ExecutorBase<component::ECC_PublicKey, operation::ECDSA_Recover>::callModule(std::shared_ptr<Module> module, operation::ECDSA_Recover& op) const { |
853 | 7.52k | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
854 | 7.41k | RETURN_IF_DISABLED(options.digests, op.digestType.Get()); |
855 | | |
856 | 7.35k | return module->OpECDSA_Recover(op); |
857 | 7.41k | } |
858 | | |
859 | | /* Specialization for operation::DSA_Verify */ |
860 | 0 | template<> void ExecutorBase<bool, operation::DSA_Verify>::updateExtraCounters(const uint64_t moduleID, operation::DSA_Verify& op) const { |
861 | 0 | (void)moduleID; |
862 | 0 | (void)op; |
863 | | |
864 | | /* TODO */ |
865 | 0 | } |
866 | | |
867 | 0 | template<> void ExecutorBase<bool, operation::DSA_Verify>::postprocess(std::shared_ptr<Module> module, operation::DSA_Verify& op, const ExecutorBase<bool, operation::DSA_Verify>::ResultPair& result) const { |
868 | 0 | (void)module; |
869 | 0 | (void)op; |
870 | 0 | (void)result; |
871 | 0 | } |
872 | | |
873 | 0 | template<> std::optional<bool> ExecutorBase<bool, operation::DSA_Verify>::callModule(std::shared_ptr<Module> module, operation::DSA_Verify& op) const { |
874 | 0 | const std::vector<size_t> sizes = { |
875 | 0 | op.parameters.p.ToTrimmedString().size(), |
876 | 0 | op.parameters.q.ToTrimmedString().size(), |
877 | 0 | op.parameters.g.ToTrimmedString().size(), |
878 | 0 | op.pub.ToTrimmedString().size(), |
879 | 0 | op.signature.first.ToTrimmedString().size(), |
880 | 0 | op.signature.second.ToTrimmedString().size(), |
881 | 0 | }; |
882 | |
|
883 | 0 | for (const auto& size : sizes) { |
884 | 0 | if ( size == 0 || size > 4096 ) { |
885 | 0 | return std::nullopt; |
886 | 0 | } |
887 | 0 | } |
888 | | |
889 | 0 | return module->OpDSA_Verify(op); |
890 | 0 | } |
891 | | |
892 | | /* Specialization for operation::DSA_Sign */ |
893 | | /* Do not compare DSA_Sign results, because the result can be produced indeterministically */ |
894 | | template <> |
895 | 0 | void ExecutorBase<component::DSA_Signature, operation::DSA_Sign>::compare(const std::vector< std::pair<std::shared_ptr<Module>, operation::DSA_Sign> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { |
896 | 0 | (void)operations; |
897 | 0 | (void)results; |
898 | 0 | (void)data; |
899 | 0 | (void)size; |
900 | 0 | } |
901 | 0 | template<> void ExecutorBase<component::DSA_Signature, operation::DSA_Sign>::updateExtraCounters(const uint64_t moduleID, operation::DSA_Sign& op) const { |
902 | 0 | (void)moduleID; |
903 | 0 | (void)op; |
904 | | |
905 | | /* TODO */ |
906 | 0 | } |
907 | | |
908 | 0 | template<> void ExecutorBase<component::DSA_Signature, operation::DSA_Sign>::postprocess(std::shared_ptr<Module> module, operation::DSA_Sign& op, const ExecutorBase<component::DSA_Signature, operation::DSA_Sign>::ResultPair& result) const { |
909 | 0 | (void)module; |
910 | 0 | (void)op; |
911 | 0 | if ( result.second != std::nullopt ) { |
912 | 0 | const auto cleartext = op.cleartext.ToHex(); |
913 | 0 | const auto p = op.parameters.p.ToTrimmedString(); |
914 | 0 | const auto q = op.parameters.q.ToTrimmedString(); |
915 | 0 | const auto g = op.parameters.g.ToTrimmedString(); |
916 | 0 | const auto r = result.second->signature.first.ToTrimmedString(); |
917 | 0 | const auto s = result.second->signature.second.ToTrimmedString(); |
918 | 0 | const auto pub = result.second->pub.ToTrimmedString(); |
919 | |
|
920 | 0 | Pool_DSASignature.Set({ |
921 | 0 | cleartext, |
922 | 0 | p, |
923 | 0 | q, |
924 | 0 | g, |
925 | 0 | pub, |
926 | 0 | r, |
927 | 0 | s |
928 | 0 | }); |
929 | |
|
930 | 0 | if ( r.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(r); } |
931 | 0 | if ( s.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(s); } |
932 | 0 | } |
933 | 0 | } |
934 | | |
935 | 0 | template<> std::optional<component::DSA_Signature> ExecutorBase<component::DSA_Signature, operation::DSA_Sign>::callModule(std::shared_ptr<Module> module, operation::DSA_Sign& op) const { |
936 | 0 | const std::vector<size_t> sizes = { |
937 | 0 | op.parameters.p.ToTrimmedString().size(), |
938 | 0 | op.parameters.q.ToTrimmedString().size(), |
939 | 0 | op.parameters.g.ToTrimmedString().size(), |
940 | 0 | op.priv.ToTrimmedString().size(), |
941 | 0 | }; |
942 | |
|
943 | 0 | for (const auto& size : sizes) { |
944 | 0 | if ( size == 0 || size > 4096 ) { |
945 | 0 | return std::nullopt; |
946 | 0 | } |
947 | 0 | } |
948 | | |
949 | 0 | return module->OpDSA_Sign(op); |
950 | 0 | } |
951 | | |
952 | | /* Specialization for operation::DSA_PrivateToPublic */ |
953 | | |
954 | 0 | template<> void ExecutorBase<component::Bignum, operation::DSA_PrivateToPublic>::updateExtraCounters(const uint64_t moduleID, operation::DSA_PrivateToPublic& op) const { |
955 | 0 | (void)moduleID; |
956 | 0 | (void)op; |
957 | | |
958 | | /* TODO */ |
959 | 0 | } |
960 | | |
961 | 0 | template<> void ExecutorBase<component::Bignum, operation::DSA_PrivateToPublic>::postprocess(std::shared_ptr<Module> module, operation::DSA_PrivateToPublic& op, const ExecutorBase<component::Bignum, operation::DSA_PrivateToPublic>::ResultPair& result) const { |
962 | 0 | (void)result; |
963 | 0 | (void)module; |
964 | 0 | (void)op; |
965 | 0 | if ( result.second != std::nullopt ) { |
966 | | //Pool_DSA_PubPriv.Set({pub, priv}); |
967 | 0 | } |
968 | 0 | } |
969 | | |
970 | 0 | template<> std::optional<component::Bignum> ExecutorBase<component::Bignum, operation::DSA_PrivateToPublic>::callModule(std::shared_ptr<Module> module, operation::DSA_PrivateToPublic& op) const { |
971 | 0 | return module->OpDSA_PrivateToPublic(op); |
972 | 0 | } |
973 | | |
974 | | /* Specialization for operation::DSA_GenerateKeyPair */ |
975 | | |
976 | | /* Do not compare DSA_GenerateKeyPair results, because the result can be produced indeterministically */ |
977 | | template <> |
978 | 0 | void ExecutorBase<component::DSA_KeyPair, operation::DSA_GenerateKeyPair>::compare(const std::vector< std::pair<std::shared_ptr<Module>, operation::DSA_GenerateKeyPair> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { |
979 | 0 | (void)operations; |
980 | 0 | (void)results; |
981 | 0 | (void)data; |
982 | 0 | (void)size; |
983 | 0 | } |
984 | | |
985 | 0 | template<> void ExecutorBase<component::DSA_KeyPair, operation::DSA_GenerateKeyPair>::updateExtraCounters(const uint64_t moduleID, operation::DSA_GenerateKeyPair& op) const { |
986 | 0 | (void)moduleID; |
987 | 0 | (void)op; |
988 | | |
989 | | /* TODO */ |
990 | 0 | } |
991 | | |
992 | 0 | template<> void ExecutorBase<component::DSA_KeyPair, operation::DSA_GenerateKeyPair>::postprocess(std::shared_ptr<Module> module, operation::DSA_GenerateKeyPair& op, const ExecutorBase<component::DSA_KeyPair, operation::DSA_GenerateKeyPair>::ResultPair& result) const { |
993 | 0 | (void)result; |
994 | 0 | (void)module; |
995 | 0 | (void)op; |
996 | 0 | if ( result.second != std::nullopt && (PRNG() % 4) == 0 ) { |
997 | 0 | const auto priv = result.second->first.ToTrimmedString(); |
998 | 0 | const auto pub = result.second->second.ToTrimmedString(); |
999 | |
|
1000 | 0 | Pool_DSA_PubPriv.Set({pub, priv}); |
1001 | 0 | } |
1002 | 0 | } |
1003 | | |
1004 | 0 | template<> std::optional<component::DSA_KeyPair> ExecutorBase<component::DSA_KeyPair, operation::DSA_GenerateKeyPair>::callModule(std::shared_ptr<Module> module, operation::DSA_GenerateKeyPair& op) const { |
1005 | 0 | const std::vector<size_t> sizes = { |
1006 | 0 | op.p.ToTrimmedString().size(), |
1007 | 0 | op.q.ToTrimmedString().size(), |
1008 | 0 | op.g.ToTrimmedString().size(), |
1009 | 0 | }; |
1010 | |
|
1011 | 0 | for (const auto& size : sizes) { |
1012 | 0 | if ( size == 0 || size > 4096 ) { |
1013 | 0 | return std::nullopt; |
1014 | 0 | } |
1015 | 0 | } |
1016 | | |
1017 | 0 | return module->OpDSA_GenerateKeyPair(op); |
1018 | 0 | } |
1019 | | |
1020 | | /* Specialization for operation::DSA_GenerateParameters */ |
1021 | | |
1022 | | /* Do not compare DSA_GenerateParameters results, because the result can be produced indeterministically */ |
1023 | | template <> |
1024 | 0 | void ExecutorBase<component::DSA_Parameters, operation::DSA_GenerateParameters>::compare(const std::vector< std::pair<std::shared_ptr<Module>, operation::DSA_GenerateParameters> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { |
1025 | 0 | (void)operations; |
1026 | 0 | (void)results; |
1027 | 0 | (void)data; |
1028 | 0 | (void)size; |
1029 | 0 | } |
1030 | | |
1031 | 0 | template<> void ExecutorBase<component::DSA_Parameters, operation::DSA_GenerateParameters>::updateExtraCounters(const uint64_t moduleID, operation::DSA_GenerateParameters& op) const { |
1032 | 0 | (void)moduleID; |
1033 | 0 | (void)op; |
1034 | | |
1035 | | /* TODO */ |
1036 | 0 | } |
1037 | | |
1038 | 0 | template<> void ExecutorBase<component::DSA_Parameters, operation::DSA_GenerateParameters>::postprocess(std::shared_ptr<Module> module, operation::DSA_GenerateParameters& op, const ExecutorBase<component::DSA_Parameters, operation::DSA_GenerateParameters>::ResultPair& result) const { |
1039 | 0 | (void)result; |
1040 | 0 | (void)module; |
1041 | 0 | (void)op; |
1042 | 0 | if ( result.second != std::nullopt && (PRNG() % 4) == 0 ) { |
1043 | 0 | const auto P = result.second->p.ToTrimmedString(); |
1044 | 0 | const auto Q = result.second->q.ToTrimmedString(); |
1045 | 0 | const auto G = result.second->g.ToTrimmedString(); |
1046 | |
|
1047 | 0 | Pool_DSA_PQG.Set({P, Q, G}); |
1048 | |
|
1049 | 0 | if ( P.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(P); } |
1050 | 0 | if ( Q.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(Q); } |
1051 | 0 | if ( G.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(G); } |
1052 | 0 | } |
1053 | 0 | } |
1054 | | |
1055 | 0 | template<> std::optional<component::DSA_Parameters> ExecutorBase<component::DSA_Parameters, operation::DSA_GenerateParameters>::callModule(std::shared_ptr<Module> module, operation::DSA_GenerateParameters& op) const { |
1056 | 0 | return module->OpDSA_GenerateParameters(op); |
1057 | 0 | } |
1058 | | |
1059 | | /* Specialization for operation::ECDH_Derive */ |
1060 | 2.77k | template<> void ExecutorBase<component::Secret, operation::ECDH_Derive>::postprocess(std::shared_ptr<Module> module, operation::ECDH_Derive& op, const ExecutorBase<component::Secret, operation::ECDH_Derive>::ResultPair& result) const { |
1061 | 2.77k | (void)module; |
1062 | 2.77k | (void)op; |
1063 | 2.77k | (void)result; |
1064 | 2.77k | } |
1065 | | |
1066 | 2.77k | template<> std::optional<component::Secret> ExecutorBase<component::Secret, operation::ECDH_Derive>::callModule(std::shared_ptr<Module> module, operation::ECDH_Derive& op) const { |
1067 | 2.77k | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
1068 | | |
1069 | 2.69k | return module->OpECDH_Derive(op); |
1070 | 2.77k | } |
1071 | | |
1072 | | /* Specialization for operation::ECIES_Encrypt */ |
1073 | | template <> |
1074 | 0 | void ExecutorBase<component::Ciphertext, operation::ECIES_Encrypt>::compare(const std::vector< std::pair<std::shared_ptr<Module>, operation::ECIES_Encrypt> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { |
1075 | 0 | (void)operations; |
1076 | 0 | (void)results; |
1077 | 0 | (void)data; |
1078 | 0 | (void)size; |
1079 | 0 | } |
1080 | 0 | template<> void ExecutorBase<component::Ciphertext, operation::ECIES_Encrypt>::postprocess(std::shared_ptr<Module> module, operation::ECIES_Encrypt& op, const ExecutorBase<component::Ciphertext, operation::ECIES_Encrypt>::ResultPair& result) const { |
1081 | 0 | (void)module; |
1082 | 0 | (void)op; |
1083 | 0 | (void)result; |
1084 | 0 | } |
1085 | | |
1086 | 0 | template<> std::optional<component::Ciphertext> ExecutorBase<component::Ciphertext, operation::ECIES_Encrypt>::callModule(std::shared_ptr<Module> module, operation::ECIES_Encrypt& op) const { |
1087 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
1088 | |
|
1089 | 0 | return module->OpECIES_Encrypt(op); |
1090 | 0 | } |
1091 | | |
1092 | | /* Specialization for operation::ECIES_Decrypt */ |
1093 | 0 | template<> void ExecutorBase<component::Cleartext, operation::ECIES_Decrypt>::postprocess(std::shared_ptr<Module> module, operation::ECIES_Decrypt& op, const ExecutorBase<component::Cleartext, operation::ECIES_Decrypt>::ResultPair& result) const { |
1094 | 0 | (void)module; |
1095 | 0 | (void)op; |
1096 | 0 | (void)result; |
1097 | 0 | } |
1098 | | |
1099 | 0 | template<> std::optional<component::Cleartext> ExecutorBase<component::Cleartext, operation::ECIES_Decrypt>::callModule(std::shared_ptr<Module> module, operation::ECIES_Decrypt& op) const { |
1100 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
1101 | |
|
1102 | 0 | return module->OpECIES_Decrypt(op); |
1103 | 0 | } |
1104 | | |
1105 | | /* Specialization for operation::ECC_Point_Add */ |
1106 | 1.62k | template<> void ExecutorBase<component::ECC_Point, operation::ECC_Point_Add>::postprocess(std::shared_ptr<Module> module, operation::ECC_Point_Add& op, const ExecutorBase<component::ECC_Point, operation::ECC_Point_Add>::ResultPair& result) const { |
1107 | 1.62k | (void)module; |
1108 | | |
1109 | 1.62k | if ( result.second != std::nullopt ) { |
1110 | 450 | const auto curveID = op.curveType.Get(); |
1111 | 450 | const auto x = result.second->first.ToTrimmedString(); |
1112 | 450 | const auto y = result.second->second.ToTrimmedString(); |
1113 | | |
1114 | 450 | Pool_CurveECC_Point.Set({ curveID, x, y }); |
1115 | | |
1116 | 450 | if ( x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(x); } |
1117 | 450 | if ( y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(y); } |
1118 | 450 | } |
1119 | 1.62k | } |
1120 | | |
1121 | 1.62k | template<> std::optional<component::ECC_Point> ExecutorBase<component::ECC_Point, operation::ECC_Point_Add>::callModule(std::shared_ptr<Module> module, operation::ECC_Point_Add& op) const { |
1122 | 1.62k | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
1123 | | |
1124 | 1.55k | return module->OpECC_Point_Add(op); |
1125 | 1.62k | } |
1126 | | |
1127 | | /* Specialization for operation::ECC_Point_Sub */ |
1128 | 0 | template<> void ExecutorBase<component::ECC_Point, operation::ECC_Point_Sub>::postprocess(std::shared_ptr<Module> module, operation::ECC_Point_Sub& op, const ExecutorBase<component::ECC_Point, operation::ECC_Point_Sub>::ResultPair& result) const { |
1129 | 0 | (void)module; |
1130 | |
|
1131 | 0 | if ( result.second != std::nullopt ) { |
1132 | 0 | const auto curveID = op.curveType.Get(); |
1133 | 0 | const auto x = result.second->first.ToTrimmedString(); |
1134 | 0 | const auto y = result.second->second.ToTrimmedString(); |
1135 | |
|
1136 | 0 | Pool_CurveECC_Point.Set({ curveID, x, y }); |
1137 | |
|
1138 | 0 | if ( x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(x); } |
1139 | 0 | if ( y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(y); } |
1140 | 0 | } |
1141 | 0 | } |
1142 | | |
1143 | 0 | template<> std::optional<component::ECC_Point> ExecutorBase<component::ECC_Point, operation::ECC_Point_Sub>::callModule(std::shared_ptr<Module> module, operation::ECC_Point_Sub& op) const { |
1144 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
1145 | |
|
1146 | 0 | return module->OpECC_Point_Sub(op); |
1147 | 0 | } |
1148 | | |
1149 | | /* Specialization for operation::ECC_Point_Mul */ |
1150 | 8.09k | template<> void ExecutorBase<component::ECC_Point, operation::ECC_Point_Mul>::postprocess(std::shared_ptr<Module> module, operation::ECC_Point_Mul& op, const ExecutorBase<component::ECC_Point, operation::ECC_Point_Mul>::ResultPair& result) const { |
1151 | 8.09k | (void)module; |
1152 | | |
1153 | 8.09k | if ( result.second != std::nullopt ) { |
1154 | 5.22k | const auto curveID = op.curveType.Get(); |
1155 | 5.22k | const auto x = result.second->first.ToTrimmedString(); |
1156 | 5.22k | const auto y = result.second->second.ToTrimmedString(); |
1157 | | |
1158 | 5.22k | Pool_CurveECC_Point.Set({ curveID, x, y }); |
1159 | | |
1160 | 5.22k | if ( x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(x); } |
1161 | 5.22k | if ( y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(y); } |
1162 | 5.22k | } |
1163 | 8.09k | } |
1164 | | |
1165 | 8.09k | template<> std::optional<component::ECC_Point> ExecutorBase<component::ECC_Point, operation::ECC_Point_Mul>::callModule(std::shared_ptr<Module> module, operation::ECC_Point_Mul& op) const { |
1166 | 8.09k | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
1167 | | |
1168 | 8.01k | return module->OpECC_Point_Mul(op); |
1169 | 8.09k | } |
1170 | | |
1171 | | /* Specialization for operation::ECC_Point_Neg */ |
1172 | 1.22k | template<> void ExecutorBase<component::ECC_Point, operation::ECC_Point_Neg>::postprocess(std::shared_ptr<Module> module, operation::ECC_Point_Neg& op, const ExecutorBase<component::ECC_Point, operation::ECC_Point_Neg>::ResultPair& result) const { |
1173 | 1.22k | (void)module; |
1174 | | |
1175 | 1.22k | if ( result.second != std::nullopt ) { |
1176 | 141 | const auto curveID = op.curveType.Get(); |
1177 | 141 | const auto x = result.second->first.ToTrimmedString(); |
1178 | 141 | const auto y = result.second->second.ToTrimmedString(); |
1179 | | |
1180 | 141 | Pool_CurveECC_Point.Set({ curveID, x, y }); |
1181 | | |
1182 | 141 | if ( x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(x); } |
1183 | 141 | if ( y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(y); } |
1184 | 141 | } |
1185 | 1.22k | } |
1186 | | |
1187 | 1.22k | template<> std::optional<component::ECC_Point> ExecutorBase<component::ECC_Point, operation::ECC_Point_Neg>::callModule(std::shared_ptr<Module> module, operation::ECC_Point_Neg& op) const { |
1188 | 1.22k | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
1189 | | |
1190 | 1.14k | return module->OpECC_Point_Neg(op); |
1191 | 1.22k | } |
1192 | | |
1193 | | /* Specialization for operation::ECC_Point_Dbl */ |
1194 | 1.77k | template<> void ExecutorBase<component::ECC_Point, operation::ECC_Point_Dbl>::postprocess(std::shared_ptr<Module> module, operation::ECC_Point_Dbl& op, const ExecutorBase<component::ECC_Point, operation::ECC_Point_Dbl>::ResultPair& result) const { |
1195 | 1.77k | (void)module; |
1196 | | |
1197 | 1.77k | if ( result.second != std::nullopt ) { |
1198 | 563 | const auto curveID = op.curveType.Get(); |
1199 | 563 | const auto x = result.second->first.ToTrimmedString(); |
1200 | 563 | const auto y = result.second->second.ToTrimmedString(); |
1201 | | |
1202 | 563 | Pool_CurveECC_Point.Set({ curveID, x, y }); |
1203 | | |
1204 | 563 | if ( x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(x); } |
1205 | 563 | if ( y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(y); } |
1206 | 563 | } |
1207 | 1.77k | } |
1208 | | |
1209 | 1.77k | template<> std::optional<component::ECC_Point> ExecutorBase<component::ECC_Point, operation::ECC_Point_Dbl>::callModule(std::shared_ptr<Module> module, operation::ECC_Point_Dbl& op) const { |
1210 | 1.77k | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
1211 | | |
1212 | 1.65k | return module->OpECC_Point_Dbl(op); |
1213 | 1.77k | } |
1214 | | |
1215 | | /* Specialization for operation::ECC_Point_Cmp */ |
1216 | 0 | template<> void ExecutorBase<bool, operation::ECC_Point_Cmp>::postprocess(std::shared_ptr<Module> module, operation::ECC_Point_Cmp& op, const ExecutorBase<bool, operation::ECC_Point_Cmp>::ResultPair& result) const { |
1217 | 0 | (void)module; |
1218 | 0 | (void)result; |
1219 | 0 | (void)op; |
1220 | 0 | } |
1221 | | |
1222 | 0 | template<> std::optional<bool> ExecutorBase<bool, operation::ECC_Point_Cmp>::callModule(std::shared_ptr<Module> module, operation::ECC_Point_Cmp& op) const { |
1223 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
1224 | |
|
1225 | 0 | return module->OpECC_Point_Cmp(op); |
1226 | 0 | } |
1227 | | |
1228 | | /* Specialization for operation::DH_Derive */ |
1229 | 0 | template<> void ExecutorBase<component::Bignum, operation::DH_Derive>::postprocess(std::shared_ptr<Module> module, operation::DH_Derive& op, const ExecutorBase<component::Bignum, operation::DH_Derive>::ResultPair& result) const { |
1230 | 0 | (void)module; |
1231 | 0 | (void)op; |
1232 | 0 | (void)result; |
1233 | 0 | } |
1234 | | |
1235 | 0 | template<> std::optional<component::Bignum> ExecutorBase<component::Bignum, operation::DH_Derive>::callModule(std::shared_ptr<Module> module, operation::DH_Derive& op) const { |
1236 | 0 | if ( op.prime.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1237 | 0 | if ( op.base.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1238 | 0 | if ( op.pub.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1239 | 0 | if ( op.priv.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1240 | | |
1241 | 0 | return module->OpDH_Derive(op); |
1242 | 0 | } |
1243 | | |
1244 | | /* Specialization for operation::DH_GenerateKeyPair */ |
1245 | 0 | template<> void ExecutorBase<component::DH_KeyPair, operation::DH_GenerateKeyPair>::postprocess(std::shared_ptr<Module> module, operation::DH_GenerateKeyPair& op, const ExecutorBase<component::DH_KeyPair, operation::DH_GenerateKeyPair>::ResultPair& result) const { |
1246 | 0 | (void)result; |
1247 | 0 | (void)op; |
1248 | 0 | (void)module; |
1249 | |
|
1250 | 0 | if ( result.second != std::nullopt && (PRNG() % 4) == 0 ) { |
1251 | 0 | const auto priv = result.second->first.ToTrimmedString(); |
1252 | 0 | const auto pub = result.second->second.ToTrimmedString(); |
1253 | |
|
1254 | 0 | Pool_DH_PrivateKey.Set(priv); |
1255 | 0 | Pool_DH_PublicKey.Set(pub); |
1256 | 0 | } |
1257 | 0 | } |
1258 | | |
1259 | 0 | template<> std::optional<component::DH_KeyPair> ExecutorBase<component::DH_KeyPair, operation::DH_GenerateKeyPair>::callModule(std::shared_ptr<Module> module, operation::DH_GenerateKeyPair& op) const { |
1260 | 0 | if ( op.prime.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1261 | 0 | if ( op.base.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1262 | | |
1263 | 0 | return module->OpDH_GenerateKeyPair(op); |
1264 | 0 | } |
1265 | | |
1266 | | /* Specialization for operation::BignumCalc */ |
1267 | 11.8k | template<> void ExecutorBase<component::Bignum, operation::BignumCalc>::postprocess(std::shared_ptr<Module> module, operation::BignumCalc& op, const ExecutorBase<component::Bignum, operation::BignumCalc>::ResultPair& result) const { |
1268 | 11.8k | (void)module; |
1269 | 11.8k | (void)op; |
1270 | | |
1271 | 11.8k | if ( result.second != std::nullopt ) { |
1272 | 4.38k | const auto bignum = result.second->ToTrimmedString(); |
1273 | | |
1274 | 4.38k | if ( bignum.size() <= config::kMaxBignumSize ) { |
1275 | 4.38k | Pool_Bignum.Set(bignum); |
1276 | 4.38k | if ( op.calcOp.Is(CF_CALCOP("Prime()")) ) { |
1277 | 0 | Pool_Bignum_Primes.Set(bignum); |
1278 | 0 | } |
1279 | 4.38k | } |
1280 | 4.38k | if ( op.calcOp.Is(CF_CALCOP("IsPrime(A)")) ) { |
1281 | 0 | if ( bignum == "1" ) { |
1282 | 0 | Pool_Bignum_Primes.Set(op.bn0.ToTrimmedString()); |
1283 | 0 | } |
1284 | 0 | } |
1285 | 4.38k | } |
1286 | 11.8k | } |
1287 | | |
1288 | 11.8k | std::optional<component::Bignum> ExecutorBignumCalc::callModule(std::shared_ptr<Module> module, operation::BignumCalc& op) const { |
1289 | 11.8k | RETURN_IF_DISABLED(options.calcOps, op.calcOp.Get()); |
1290 | | |
1291 | | /* Prevent timeouts */ |
1292 | 11.7k | if ( op.bn0.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1293 | 11.7k | if ( op.bn1.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1294 | 11.7k | if ( op.bn2.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1295 | 11.7k | if ( op.bn3.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1296 | | |
1297 | 11.7k | if ( op.modulo != std::nullopt && !module->SupportsModularBignumCalc() ) { |
1298 | 2.80k | return std::nullopt; |
1299 | 2.80k | } |
1300 | | |
1301 | 8.93k | switch ( op.calcOp.Get() ) { |
1302 | 0 | case CF_CALCOP("SetBit(A,B)"): |
1303 | | /* Don't allow setting very high bit positions (risk of memory exhaustion) */ |
1304 | 0 | if ( op.bn1.GetSize() > 4 ) { |
1305 | 0 | return std::nullopt; |
1306 | 0 | } |
1307 | 0 | break; |
1308 | 0 | case CF_CALCOP("Exp(A,B)"): |
1309 | 0 | if ( op.bn0.GetSize() > 5 || op.bn1.GetSize() > 2 ) { |
1310 | 0 | return std::nullopt; |
1311 | 0 | } |
1312 | 0 | break; |
1313 | 0 | case CF_CALCOP("ModLShift(A,B,C)"): |
1314 | 0 | if ( op.bn1.GetSize() > 4 ) { |
1315 | 0 | return std::nullopt; |
1316 | 0 | } |
1317 | 0 | break; |
1318 | 0 | case CF_CALCOP("Exp2(A)"): |
1319 | 0 | if ( op.bn0.GetSize() > 4 ) { |
1320 | 0 | return std::nullopt; |
1321 | 0 | } |
1322 | 0 | break; |
1323 | 8.93k | } |
1324 | | |
1325 | 8.93k | return module->OpBignumCalc(op); |
1326 | 8.93k | } |
1327 | | |
1328 | | /* Specialization for operation::BignumCalc_Fp2 */ |
1329 | 0 | template<> void ExecutorBase<component::Fp2, operation::BignumCalc_Fp2>::postprocess(std::shared_ptr<Module> module, operation::BignumCalc_Fp2& op, const ExecutorBase<component::Fp2, operation::BignumCalc_Fp2>::ResultPair& result) const { |
1330 | 0 | (void)module; |
1331 | 0 | (void)op; |
1332 | |
|
1333 | 0 | if ( result.second != std::nullopt ) { |
1334 | 0 | const auto bignum_first = result.second->first.ToTrimmedString(); |
1335 | 0 | const auto bignum_second = result.second->second.ToTrimmedString(); |
1336 | |
|
1337 | 0 | if ( bignum_first.size() <= config::kMaxBignumSize ) { |
1338 | 0 | Pool_Bignum.Set(bignum_first); |
1339 | 0 | } |
1340 | 0 | if ( bignum_second.size() <= config::kMaxBignumSize ) { |
1341 | 0 | Pool_Bignum.Set(bignum_second); |
1342 | 0 | } |
1343 | 0 | } |
1344 | 0 | } |
1345 | | |
1346 | 0 | std::optional<component::Fp2> ExecutorBignumCalc_Fp2::callModule(std::shared_ptr<Module> module, operation::BignumCalc_Fp2& op) const { |
1347 | 0 | RETURN_IF_DISABLED(options.calcOps, op.calcOp.Get()); |
1348 | | |
1349 | | /* Prevent timeouts */ |
1350 | 0 | if ( op.bn0.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1351 | 0 | if ( op.bn0.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1352 | 0 | if ( op.bn1.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1353 | 0 | if ( op.bn1.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1354 | 0 | if ( op.bn2.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1355 | 0 | if ( op.bn2.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1356 | 0 | if ( op.bn3.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1357 | 0 | if ( op.bn3.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1358 | | |
1359 | 0 | if ( op.modulo != std::nullopt && !module->SupportsModularBignumCalc() ) { |
1360 | 0 | return std::nullopt; |
1361 | 0 | } |
1362 | | |
1363 | 0 | return module->OpBignumCalc_Fp2(op); |
1364 | 0 | } |
1365 | | |
1366 | | /* Specialization for operation::BignumCalc_Fp12 */ |
1367 | 0 | template<> void ExecutorBase<component::Fp12, operation::BignumCalc_Fp12>::postprocess(std::shared_ptr<Module> module, operation::BignumCalc_Fp12& op, const ExecutorBase<component::Fp12, operation::BignumCalc_Fp12>::ResultPair& result) const { |
1368 | 0 | (void)module; |
1369 | 0 | (void)op; |
1370 | |
|
1371 | 0 | if ( result.second != std::nullopt ) { |
1372 | 0 | Pool_Fp12.Set({ |
1373 | 0 | result.second->bn1.ToTrimmedString(), |
1374 | 0 | result.second->bn2.ToTrimmedString(), |
1375 | 0 | result.second->bn3.ToTrimmedString(), |
1376 | 0 | result.second->bn4.ToTrimmedString(), |
1377 | 0 | result.second->bn5.ToTrimmedString(), |
1378 | 0 | result.second->bn6.ToTrimmedString(), |
1379 | 0 | result.second->bn7.ToTrimmedString(), |
1380 | 0 | result.second->bn8.ToTrimmedString(), |
1381 | 0 | result.second->bn9.ToTrimmedString(), |
1382 | 0 | result.second->bn10.ToTrimmedString(), |
1383 | 0 | result.second->bn11.ToTrimmedString(), |
1384 | 0 | result.second->bn12.ToTrimmedString() |
1385 | 0 | }); |
1386 | | /* TODO */ |
1387 | | #if 0 |
1388 | | const auto bignum_first = result.second->first.ToTrimmedString(); |
1389 | | const auto bignum_second = result.second->second.ToTrimmedString(); |
1390 | | |
1391 | | if ( bignum_first.size() <= config::kMaxBignumSize ) { |
1392 | | Pool_Bignum.Set(bignum_first); |
1393 | | } |
1394 | | if ( bignum_second.size() <= config::kMaxBignumSize ) { |
1395 | | Pool_Bignum.Set(bignum_second); |
1396 | | } |
1397 | | #endif |
1398 | 0 | } |
1399 | 0 | } |
1400 | | |
1401 | 0 | std::optional<component::Fp12> ExecutorBignumCalc_Fp12::callModule(std::shared_ptr<Module> module, operation::BignumCalc_Fp12& op) const { |
1402 | 0 | RETURN_IF_DISABLED(options.calcOps, op.calcOp.Get()); |
1403 | | |
1404 | | /* Prevent timeouts */ |
1405 | 0 | if ( op.bn0.bn1.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1406 | 0 | if ( op.bn0.bn2.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1407 | 0 | if ( op.bn0.bn3.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1408 | 0 | if ( op.bn0.bn4.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1409 | 0 | if ( op.bn0.bn5.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1410 | 0 | if ( op.bn0.bn6.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1411 | 0 | if ( op.bn0.bn7.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1412 | 0 | if ( op.bn0.bn8.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1413 | 0 | if ( op.bn0.bn9.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1414 | 0 | if ( op.bn0.bn10.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1415 | 0 | if ( op.bn0.bn11.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1416 | 0 | if ( op.bn0.bn12.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1417 | | |
1418 | 0 | if ( op.bn1.bn1.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1419 | 0 | if ( op.bn1.bn2.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1420 | 0 | if ( op.bn1.bn3.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1421 | 0 | if ( op.bn1.bn4.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1422 | 0 | if ( op.bn1.bn5.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1423 | 0 | if ( op.bn1.bn6.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1424 | 0 | if ( op.bn1.bn7.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1425 | 0 | if ( op.bn1.bn8.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1426 | 0 | if ( op.bn1.bn9.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1427 | 0 | if ( op.bn1.bn10.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1428 | 0 | if ( op.bn1.bn11.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1429 | 0 | if ( op.bn1.bn12.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1430 | | |
1431 | 0 | if ( op.bn2.bn1.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1432 | 0 | if ( op.bn2.bn2.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1433 | 0 | if ( op.bn2.bn3.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1434 | 0 | if ( op.bn2.bn4.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1435 | 0 | if ( op.bn2.bn5.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1436 | 0 | if ( op.bn2.bn6.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1437 | 0 | if ( op.bn2.bn7.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1438 | 0 | if ( op.bn2.bn8.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1439 | 0 | if ( op.bn2.bn9.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1440 | 0 | if ( op.bn2.bn10.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1441 | 0 | if ( op.bn2.bn11.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1442 | 0 | if ( op.bn2.bn12.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1443 | | |
1444 | 0 | if ( op.bn3.bn1.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1445 | 0 | if ( op.bn3.bn2.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1446 | 0 | if ( op.bn3.bn3.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1447 | 0 | if ( op.bn3.bn4.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1448 | 0 | if ( op.bn3.bn5.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1449 | 0 | if ( op.bn3.bn6.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1450 | 0 | if ( op.bn3.bn7.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1451 | 0 | if ( op.bn3.bn8.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1452 | 0 | if ( op.bn3.bn9.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1453 | 0 | if ( op.bn3.bn10.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1454 | 0 | if ( op.bn3.bn11.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1455 | 0 | if ( op.bn3.bn12.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1456 | | |
1457 | 0 | if ( op.modulo != std::nullopt && !module->SupportsModularBignumCalc() ) { |
1458 | 0 | return std::nullopt; |
1459 | 0 | } |
1460 | | |
1461 | 0 | return module->OpBignumCalc_Fp12(op); |
1462 | 0 | } |
1463 | | |
1464 | | /* Specialization for operation::BLS_PrivateToPublic */ |
1465 | 0 | template<> void ExecutorBase<component::BLS_PublicKey, operation::BLS_PrivateToPublic>::postprocess(std::shared_ptr<Module> module, operation::BLS_PrivateToPublic& op, const ExecutorBase<component::BLS_PublicKey, operation::BLS_PrivateToPublic>::ResultPair& result) const { |
1466 | 0 | (void)module; |
1467 | |
|
1468 | 0 | if ( result.second != std::nullopt ) { |
1469 | 0 | const auto curveID = op.curveType.Get(); |
1470 | 0 | const auto g1_x = result.second->first.ToTrimmedString(); |
1471 | 0 | const auto g1_y = result.second->second.ToTrimmedString(); |
1472 | |
|
1473 | 0 | G1AddToPool(curveID, g1_x, g1_y); |
1474 | |
|
1475 | 0 | if ( g1_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_x); } |
1476 | 0 | if ( g1_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_y); } |
1477 | 0 | } |
1478 | 0 | } |
1479 | | |
1480 | 0 | template<> std::optional<component::BLS_PublicKey> ExecutorBase<component::BLS_PublicKey, operation::BLS_PrivateToPublic>::callModule(std::shared_ptr<Module> module, operation::BLS_PrivateToPublic& op) const { |
1481 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
1482 | |
|
1483 | 0 | const size_t size = op.priv.ToTrimmedString().size(); |
1484 | |
|
1485 | 0 | if ( size == 0 || size > 4096 ) { |
1486 | 0 | return std::nullopt; |
1487 | 0 | } |
1488 | | |
1489 | 0 | return module->OpBLS_PrivateToPublic(op); |
1490 | 0 | } |
1491 | | |
1492 | | /* Specialization for operation::BLS_PrivateToPublic_G2 */ |
1493 | 0 | template<> void ExecutorBase<component::G2, operation::BLS_PrivateToPublic_G2>::postprocess(std::shared_ptr<Module> module, operation::BLS_PrivateToPublic_G2& op, const ExecutorBase<component::G2, operation::BLS_PrivateToPublic_G2>::ResultPair& result) const { |
1494 | 0 | (void)module; |
1495 | 0 | if ( result.second != std::nullopt ) { |
1496 | 0 | const auto curveID = op.curveType.Get(); |
1497 | 0 | const auto g2_v = result.second->first.first.ToTrimmedString(); |
1498 | 0 | const auto g2_w = result.second->first.second.ToTrimmedString(); |
1499 | 0 | const auto g2_x = result.second->second.first.ToTrimmedString(); |
1500 | 0 | const auto g2_y = result.second->second.second.ToTrimmedString(); |
1501 | |
|
1502 | 0 | G2AddToPool(curveID, g2_v, g2_w, g2_x, g2_y); |
1503 | |
|
1504 | 0 | if ( g2_v.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_v); } |
1505 | 0 | if ( g2_w.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_w); } |
1506 | 0 | if ( g2_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_x); } |
1507 | 0 | if ( g2_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_y); } |
1508 | 0 | } |
1509 | 0 | } |
1510 | | |
1511 | 0 | template<> std::optional<component::G2> ExecutorBase<component::G2, operation::BLS_PrivateToPublic_G2>::callModule(std::shared_ptr<Module> module, operation::BLS_PrivateToPublic_G2& op) const { |
1512 | 0 | const size_t size = op.priv.ToTrimmedString().size(); |
1513 | |
|
1514 | 0 | if ( size == 0 || size > 4096 ) { |
1515 | 0 | return std::nullopt; |
1516 | 0 | } |
1517 | | |
1518 | 0 | return module->OpBLS_PrivateToPublic_G2(op); |
1519 | 0 | } |
1520 | | |
1521 | | /* Specialization for operation::BLS_Sign */ |
1522 | 0 | template<> void ExecutorBase<component::BLS_Signature, operation::BLS_Sign>::postprocess(std::shared_ptr<Module> module, operation::BLS_Sign& op, const ExecutorBase<component::BLS_Signature, operation::BLS_Sign>::ResultPair& result) const { |
1523 | 0 | (void)module; |
1524 | |
|
1525 | 0 | if ( result.second != std::nullopt ) { |
1526 | 0 | const auto curveID = op.curveType.Get(); |
1527 | 0 | const auto point_v = op.hashOrPoint ? op.point.first.first.ToTrimmedString() : ""; |
1528 | 0 | const auto point_w = op.hashOrPoint ? op.point.first.second.ToTrimmedString() : ""; |
1529 | 0 | const auto point_x = op.hashOrPoint ? op.point.second.first.ToTrimmedString() : ""; |
1530 | 0 | const auto point_y = op.hashOrPoint ? op.point.second.second.ToTrimmedString() : ""; |
1531 | 0 | const auto cleartext = op.hashOrPoint ? op.cleartext.ToHex() : ""; |
1532 | 0 | const auto dest = op.dest.ToHex(); |
1533 | 0 | const auto aug = op.aug.ToHex(); |
1534 | 0 | const auto pub_x = result.second->pub.first.ToTrimmedString(); |
1535 | 0 | const auto pub_y = result.second->pub.second.ToTrimmedString(); |
1536 | 0 | const auto sig_v = result.second->signature.first.first.ToTrimmedString(); |
1537 | 0 | const auto sig_w = result.second->signature.first.second.ToTrimmedString(); |
1538 | 0 | const auto sig_x = result.second->signature.second.first.ToTrimmedString(); |
1539 | 0 | const auto sig_y = result.second->signature.second.second.ToTrimmedString(); |
1540 | |
|
1541 | 0 | G1AddToPool(curveID, pub_x, pub_y); |
1542 | 0 | G2AddToPool(curveID, sig_v, sig_w, sig_x, sig_y); |
1543 | 0 | Pool_CurveBLSSignature.Set({ curveID, op.hashOrPoint, point_v, point_w, point_x, point_y, cleartext, dest, aug, pub_x, pub_y, sig_v, sig_w, sig_x, sig_y}); |
1544 | |
|
1545 | 0 | if ( pub_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(pub_x); } |
1546 | 0 | if ( pub_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(pub_y); } |
1547 | 0 | if ( sig_v.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(sig_v); } |
1548 | 0 | if ( sig_w.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(sig_w); } |
1549 | 0 | if ( sig_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(sig_x); } |
1550 | 0 | if ( sig_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(sig_y); } |
1551 | 0 | } |
1552 | 0 | } |
1553 | | |
1554 | 0 | template<> std::optional<component::BLS_Signature> ExecutorBase<component::BLS_Signature, operation::BLS_Sign>::callModule(std::shared_ptr<Module> module, operation::BLS_Sign& op) const { |
1555 | 0 | const size_t size = op.priv.ToTrimmedString().size(); |
1556 | |
|
1557 | 0 | if ( size == 0 || size > 4096 ) { |
1558 | 0 | return std::nullopt; |
1559 | 0 | } |
1560 | | |
1561 | 0 | return module->OpBLS_Sign(op); |
1562 | 0 | } |
1563 | | |
1564 | | /* Specialization for operation::BLS_Verify */ |
1565 | 0 | template<> void ExecutorBase<bool, operation::BLS_Verify>::postprocess(std::shared_ptr<Module> module, operation::BLS_Verify& op, const ExecutorBase<bool, operation::BLS_Verify>::ResultPair& result) const { |
1566 | 0 | (void)module; |
1567 | 0 | (void)op; |
1568 | 0 | (void)result; |
1569 | 0 | } |
1570 | | |
1571 | 0 | template<> std::optional<bool> ExecutorBase<bool, operation::BLS_Verify>::callModule(std::shared_ptr<Module> module, operation::BLS_Verify& op) const { |
1572 | | #if 0 |
1573 | | const std::vector<size_t> sizes = { |
1574 | | op.pub.first.ToTrimmedString().size(), |
1575 | | op.pub.second.ToTrimmedString().size(), |
1576 | | op.signature.first.ToTrimmedString().size(), |
1577 | | op.signature.second.ToTrimmedString().size(), |
1578 | | }; |
1579 | | |
1580 | | for (const auto& size : sizes) { |
1581 | | if ( size == 0 || size > 4096 ) { |
1582 | | return std::nullopt; |
1583 | | } |
1584 | | } |
1585 | | #endif |
1586 | |
|
1587 | 0 | return module->OpBLS_Verify(op); |
1588 | 0 | } |
1589 | | |
1590 | | /* Specialization for operation::BLS_BatchSign */ |
1591 | 0 | template<> void ExecutorBase<component::BLS_BatchSignature, operation::BLS_BatchSign>::postprocess(std::shared_ptr<Module> module, operation::BLS_BatchSign& op, const ExecutorBase<component::BLS_BatchSignature, operation::BLS_BatchSign>::ResultPair& result) const { |
1592 | 0 | (void)module; |
1593 | 0 | (void)op; |
1594 | |
|
1595 | 0 | if ( result.second != std::nullopt ) { |
1596 | 0 | std::vector< std::pair<BLS_BatchSignature_::G1, BLS_BatchSignature_::G2> > msgpub; |
1597 | 0 | for (const auto& mp : result.second->msgpub) { |
1598 | 0 | msgpub.push_back( |
1599 | 0 | std::pair<BLS_BatchSignature_::G1, BLS_BatchSignature_::G2>{ |
1600 | 0 | { |
1601 | 0 | mp.first.first.ToTrimmedString(), |
1602 | 0 | mp.first.second.ToTrimmedString() |
1603 | 0 | }, |
1604 | 0 | { |
1605 | 0 | mp.second.first.first.ToTrimmedString(), |
1606 | 0 | mp.second.first.second.ToTrimmedString(), |
1607 | 0 | mp.second.second.first.ToTrimmedString(), |
1608 | 0 | mp.second.second.second.ToTrimmedString() |
1609 | 0 | } |
1610 | 0 | } |
1611 | 0 | ); |
1612 | 0 | G1AddToPool(CF_ECC_CURVE("BLS12_381"), mp.first.first.ToTrimmedString(), mp.first.second.ToTrimmedString()); |
1613 | 0 | Pool_CurveBLSG2.Set({ |
1614 | 0 | CF_ECC_CURVE("BLS12_381"), |
1615 | 0 | mp.second.first.first.ToTrimmedString(), |
1616 | 0 | mp.second.first.second.ToTrimmedString(), |
1617 | 0 | mp.second.second.first.ToTrimmedString(), |
1618 | 0 | mp.second.second.second.ToTrimmedString() |
1619 | 0 | }); |
1620 | 0 | } |
1621 | 0 | Pool_BLS_BatchSignature.Set({msgpub}); |
1622 | 0 | } |
1623 | 0 | } |
1624 | | |
1625 | 0 | template<> std::optional<component::BLS_BatchSignature> ExecutorBase<component::BLS_BatchSignature, operation::BLS_BatchSign>::callModule(std::shared_ptr<Module> module, operation::BLS_BatchSign& op) const { |
1626 | 0 | return module->OpBLS_BatchSign(op); |
1627 | 0 | } |
1628 | | |
1629 | | /* Specialization for operation::BLS_BatchVerify */ |
1630 | 0 | template<> void ExecutorBase<bool, operation::BLS_BatchVerify>::postprocess(std::shared_ptr<Module> module, operation::BLS_BatchVerify& op, const ExecutorBase<bool, operation::BLS_BatchVerify>::ResultPair& result) const { |
1631 | 0 | (void)module; |
1632 | 0 | (void)op; |
1633 | 0 | (void)result; |
1634 | 0 | } |
1635 | | |
1636 | 0 | template<> std::optional<bool> ExecutorBase<bool, operation::BLS_BatchVerify>::callModule(std::shared_ptr<Module> module, operation::BLS_BatchVerify& op) const { |
1637 | 0 | return module->OpBLS_BatchVerify(op); |
1638 | 0 | } |
1639 | | |
1640 | | /* Specialization for operation::BLS_Aggregate_G1 */ |
1641 | 0 | template<> void ExecutorBase<component::G1, operation::BLS_Aggregate_G1>::postprocess(std::shared_ptr<Module> module, operation::BLS_Aggregate_G1& op, const ExecutorBase<component::G1, operation::BLS_Aggregate_G1>::ResultPair& result) const { |
1642 | 0 | (void)module; |
1643 | 0 | (void)op; |
1644 | 0 | (void)result; |
1645 | 0 | } |
1646 | | |
1647 | 0 | template<> std::optional<component::G1> ExecutorBase<component::G1, operation::BLS_Aggregate_G1>::callModule(std::shared_ptr<Module> module, operation::BLS_Aggregate_G1& op) const { |
1648 | 0 | return module->OpBLS_Aggregate_G1(op); |
1649 | 0 | } |
1650 | | |
1651 | | /* Specialization for operation::BLS_Aggregate_G2 */ |
1652 | 0 | template<> void ExecutorBase<component::G2, operation::BLS_Aggregate_G2>::postprocess(std::shared_ptr<Module> module, operation::BLS_Aggregate_G2& op, const ExecutorBase<component::G2, operation::BLS_Aggregate_G2>::ResultPair& result) const { |
1653 | 0 | (void)module; |
1654 | 0 | (void)op; |
1655 | 0 | (void)result; |
1656 | 0 | } |
1657 | | |
1658 | 0 | template<> std::optional<component::G2> ExecutorBase<component::G2, operation::BLS_Aggregate_G2>::callModule(std::shared_ptr<Module> module, operation::BLS_Aggregate_G2& op) const { |
1659 | 0 | return module->OpBLS_Aggregate_G2(op); |
1660 | 0 | } |
1661 | | |
1662 | | /* Specialization for operation::BLS_Pairing */ |
1663 | 0 | template<> void ExecutorBase<component::Fp12, operation::BLS_Pairing>::postprocess(std::shared_ptr<Module> module, operation::BLS_Pairing& op, const ExecutorBase<component::Fp12, operation::BLS_Pairing>::ResultPair& result) const { |
1664 | 0 | (void)module; |
1665 | 0 | (void)op; |
1666 | |
|
1667 | 0 | if ( result.second != std::nullopt ) { |
1668 | 0 | Pool_Fp12.Set({ |
1669 | 0 | result.second->bn1.ToTrimmedString(), |
1670 | 0 | result.second->bn2.ToTrimmedString(), |
1671 | 0 | result.second->bn3.ToTrimmedString(), |
1672 | 0 | result.second->bn4.ToTrimmedString(), |
1673 | 0 | result.second->bn5.ToTrimmedString(), |
1674 | 0 | result.second->bn6.ToTrimmedString(), |
1675 | 0 | result.second->bn7.ToTrimmedString(), |
1676 | 0 | result.second->bn8.ToTrimmedString(), |
1677 | 0 | result.second->bn9.ToTrimmedString(), |
1678 | 0 | result.second->bn10.ToTrimmedString(), |
1679 | 0 | result.second->bn11.ToTrimmedString(), |
1680 | 0 | result.second->bn12.ToTrimmedString() |
1681 | 0 | }); |
1682 | 0 | } |
1683 | 0 | } |
1684 | | |
1685 | 0 | template<> std::optional<component::Fp12> ExecutorBase<component::Fp12, operation::BLS_Pairing>::callModule(std::shared_ptr<Module> module, operation::BLS_Pairing& op) const { |
1686 | 0 | return module->OpBLS_Pairing(op); |
1687 | 0 | } |
1688 | | |
1689 | | /* Specialization for operation::BLS_MillerLoop */ |
1690 | 0 | template<> void ExecutorBase<component::Fp12, operation::BLS_MillerLoop>::postprocess(std::shared_ptr<Module> module, operation::BLS_MillerLoop& op, const ExecutorBase<component::Fp12, operation::BLS_MillerLoop>::ResultPair& result) const { |
1691 | 0 | (void)module; |
1692 | 0 | (void)op; |
1693 | |
|
1694 | 0 | if ( result.second != std::nullopt ) { |
1695 | 0 | Pool_Fp12.Set({ |
1696 | 0 | result.second->bn1.ToTrimmedString(), |
1697 | 0 | result.second->bn2.ToTrimmedString(), |
1698 | 0 | result.second->bn3.ToTrimmedString(), |
1699 | 0 | result.second->bn4.ToTrimmedString(), |
1700 | 0 | result.second->bn5.ToTrimmedString(), |
1701 | 0 | result.second->bn6.ToTrimmedString(), |
1702 | 0 | result.second->bn7.ToTrimmedString(), |
1703 | 0 | result.second->bn8.ToTrimmedString(), |
1704 | 0 | result.second->bn9.ToTrimmedString(), |
1705 | 0 | result.second->bn10.ToTrimmedString(), |
1706 | 0 | result.second->bn11.ToTrimmedString(), |
1707 | 0 | result.second->bn12.ToTrimmedString() |
1708 | 0 | }); |
1709 | 0 | } |
1710 | 0 | } |
1711 | | |
1712 | 0 | template<> std::optional<component::Fp12> ExecutorBase<component::Fp12, operation::BLS_MillerLoop>::callModule(std::shared_ptr<Module> module, operation::BLS_MillerLoop& op) const { |
1713 | 0 | return module->OpBLS_MillerLoop(op); |
1714 | 0 | } |
1715 | | |
1716 | | /* Specialization for operation::BLS_FinalExp */ |
1717 | 0 | template<> void ExecutorBase<component::Fp12, operation::BLS_FinalExp>::postprocess(std::shared_ptr<Module> module, operation::BLS_FinalExp& op, const ExecutorBase<component::Fp12, operation::BLS_FinalExp>::ResultPair& result) const { |
1718 | 0 | (void)module; |
1719 | 0 | (void)op; |
1720 | |
|
1721 | 0 | if ( result.second != std::nullopt ) { |
1722 | 0 | Pool_Fp12.Set({ |
1723 | 0 | result.second->bn1.ToTrimmedString(), |
1724 | 0 | result.second->bn2.ToTrimmedString(), |
1725 | 0 | result.second->bn3.ToTrimmedString(), |
1726 | 0 | result.second->bn4.ToTrimmedString(), |
1727 | 0 | result.second->bn5.ToTrimmedString(), |
1728 | 0 | result.second->bn6.ToTrimmedString(), |
1729 | 0 | result.second->bn7.ToTrimmedString(), |
1730 | 0 | result.second->bn8.ToTrimmedString(), |
1731 | 0 | result.second->bn9.ToTrimmedString(), |
1732 | 0 | result.second->bn10.ToTrimmedString(), |
1733 | 0 | result.second->bn11.ToTrimmedString(), |
1734 | 0 | result.second->bn12.ToTrimmedString() |
1735 | 0 | }); |
1736 | 0 | } |
1737 | 0 | } |
1738 | | |
1739 | 0 | template<> std::optional<component::Fp12> ExecutorBase<component::Fp12, operation::BLS_FinalExp>::callModule(std::shared_ptr<Module> module, operation::BLS_FinalExp& op) const { |
1740 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
1741 | 0 | return module->OpBLS_FinalExp(op); |
1742 | 0 | } |
1743 | | |
1744 | | /* Specialization for operation::BLS_HashToG1 */ |
1745 | 0 | template<> void ExecutorBase<component::G1, operation::BLS_HashToG1>::postprocess(std::shared_ptr<Module> module, operation::BLS_HashToG1& op, const ExecutorBase<component::G1, operation::BLS_HashToG1>::ResultPair& result) const { |
1746 | 0 | (void)module; |
1747 | |
|
1748 | 0 | if ( result.second != std::nullopt ) { |
1749 | 0 | const auto curveID = op.curveType.Get(); |
1750 | 0 | const auto g1_x = result.second->first.ToTrimmedString(); |
1751 | 0 | const auto g1_y = result.second->second.ToTrimmedString(); |
1752 | |
|
1753 | 0 | G1AddToPool(curveID, g1_x, g1_y); |
1754 | |
|
1755 | 0 | if ( g1_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_x); } |
1756 | 0 | if ( g1_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_y); } |
1757 | 0 | } |
1758 | 0 | } |
1759 | | |
1760 | 0 | template<> std::optional<component::G1> ExecutorBase<component::G1, operation::BLS_HashToG1>::callModule(std::shared_ptr<Module> module, operation::BLS_HashToG1& op) const { |
1761 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
1762 | 0 | return module->OpBLS_HashToG1(op); |
1763 | 0 | } |
1764 | | |
1765 | | /* Specialization for operation::BLS_MapToG1 */ |
1766 | 0 | template<> void ExecutorBase<component::G1, operation::BLS_MapToG1>::postprocess(std::shared_ptr<Module> module, operation::BLS_MapToG1& op, const ExecutorBase<component::G1, operation::BLS_MapToG1>::ResultPair& result) const { |
1767 | 0 | (void)module; |
1768 | |
|
1769 | 0 | if ( result.second != std::nullopt ) { |
1770 | 0 | const auto curveID = op.curveType.Get(); |
1771 | 0 | const auto g1_x = result.second->first.ToTrimmedString(); |
1772 | 0 | const auto g1_y = result.second->second.ToTrimmedString(); |
1773 | |
|
1774 | 0 | G1AddToPool(curveID, g1_x, g1_y); |
1775 | |
|
1776 | 0 | if ( g1_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_x); } |
1777 | 0 | if ( g1_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_y); } |
1778 | 0 | } |
1779 | 0 | } |
1780 | | |
1781 | 0 | template<> std::optional<component::G1> ExecutorBase<component::G1, operation::BLS_MapToG1>::callModule(std::shared_ptr<Module> module, operation::BLS_MapToG1& op) const { |
1782 | 0 | return module->OpBLS_MapToG1(op); |
1783 | 0 | } |
1784 | | |
1785 | | /* Specialization for operation::BLS_MapToG2 */ |
1786 | 0 | template<> void ExecutorBase<component::G2, operation::BLS_MapToG2>::postprocess(std::shared_ptr<Module> module, operation::BLS_MapToG2& op, const ExecutorBase<component::G2, operation::BLS_MapToG2>::ResultPair& result) const { |
1787 | 0 | (void)module; |
1788 | |
|
1789 | 0 | if ( result.second != std::nullopt ) { |
1790 | 0 | const auto curveID = op.curveType.Get(); |
1791 | 0 | const auto g2_v = result.second->first.first.ToTrimmedString(); |
1792 | 0 | const auto g2_w = result.second->first.second.ToTrimmedString(); |
1793 | 0 | const auto g2_x = result.second->second.first.ToTrimmedString(); |
1794 | 0 | const auto g2_y = result.second->second.second.ToTrimmedString(); |
1795 | |
|
1796 | 0 | G2AddToPool(curveID, g2_v, g2_w, g2_x, g2_y); |
1797 | |
|
1798 | 0 | if ( g2_v.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_v); } |
1799 | 0 | if ( g2_w.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_w); } |
1800 | 0 | if ( g2_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_x); } |
1801 | 0 | if ( g2_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_y); } |
1802 | 0 | } |
1803 | 0 | } |
1804 | | |
1805 | 0 | template<> std::optional<component::G2> ExecutorBase<component::G2, operation::BLS_MapToG2>::callModule(std::shared_ptr<Module> module, operation::BLS_MapToG2& op) const { |
1806 | 0 | return module->OpBLS_MapToG2(op); |
1807 | 0 | } |
1808 | | |
1809 | | /* Specialization for operation::BLS_IsG1OnCurve */ |
1810 | 0 | template<> void ExecutorBase<bool, operation::BLS_IsG1OnCurve>::postprocess(std::shared_ptr<Module> module, operation::BLS_IsG1OnCurve& op, const ExecutorBase<bool, operation::BLS_IsG1OnCurve>::ResultPair& result) const { |
1811 | 0 | (void)module; |
1812 | 0 | (void)op; |
1813 | 0 | (void)result; |
1814 | 0 | } |
1815 | | |
1816 | 0 | template<> std::optional<bool> ExecutorBase<bool, operation::BLS_IsG1OnCurve>::callModule(std::shared_ptr<Module> module, operation::BLS_IsG1OnCurve& op) const { |
1817 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
1818 | 0 | if ( op.g1.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1819 | 0 | if ( op.g1.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1820 | | |
1821 | 0 | return module->OpBLS_IsG1OnCurve(op); |
1822 | 0 | } |
1823 | | |
1824 | | /* Specialization for operation::BLS_IsG2OnCurve */ |
1825 | 0 | template<> void ExecutorBase<bool, operation::BLS_IsG2OnCurve>::postprocess(std::shared_ptr<Module> module, operation::BLS_IsG2OnCurve& op, const ExecutorBase<bool, operation::BLS_IsG2OnCurve>::ResultPair& result) const { |
1826 | 0 | (void)module; |
1827 | 0 | (void)op; |
1828 | 0 | (void)result; |
1829 | 0 | } |
1830 | | |
1831 | 0 | template<> std::optional<bool> ExecutorBase<bool, operation::BLS_IsG2OnCurve>::callModule(std::shared_ptr<Module> module, operation::BLS_IsG2OnCurve& op) const { |
1832 | 0 | if ( op.g2.first.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1833 | 0 | if ( op.g2.first.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1834 | 0 | if ( op.g2.second.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1835 | 0 | if ( op.g2.second.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1836 | | |
1837 | 0 | return module->OpBLS_IsG2OnCurve(op); |
1838 | 0 | } |
1839 | | |
1840 | | /* Specialization for operation::BLS_GenerateKeyPair */ |
1841 | 0 | template<> void ExecutorBase<component::BLS_KeyPair, operation::BLS_GenerateKeyPair>::postprocess(std::shared_ptr<Module> module, operation::BLS_GenerateKeyPair& op, const ExecutorBase<component::BLS_KeyPair, operation::BLS_GenerateKeyPair>::ResultPair& result) const { |
1842 | 0 | (void)module; |
1843 | |
|
1844 | 0 | if ( result.second != std::nullopt ) { |
1845 | 0 | const auto curveID = op.curveType.Get(); |
1846 | 0 | const auto priv = result.second->priv.ToTrimmedString(); |
1847 | 0 | const auto g1_x = result.second->pub.first.ToTrimmedString(); |
1848 | 0 | const auto g1_y = result.second->pub.second.ToTrimmedString(); |
1849 | |
|
1850 | 0 | G1AddToPool(curveID, g1_x, g1_y); |
1851 | |
|
1852 | 0 | if ( priv.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(priv); } |
1853 | 0 | if ( g1_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_x); } |
1854 | 0 | if ( g1_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_y); } |
1855 | 0 | } |
1856 | 0 | } |
1857 | | |
1858 | 0 | template<> std::optional<component::BLS_KeyPair> ExecutorBase<component::BLS_KeyPair, operation::BLS_GenerateKeyPair>::callModule(std::shared_ptr<Module> module, operation::BLS_GenerateKeyPair& op) const { |
1859 | 0 | return module->OpBLS_GenerateKeyPair(op); |
1860 | 0 | } |
1861 | | |
1862 | | /* Specialization for operation::BLS_Decompress_G1 */ |
1863 | 0 | template<> void ExecutorBase<component::G1, operation::BLS_Decompress_G1>::postprocess(std::shared_ptr<Module> module, operation::BLS_Decompress_G1& op, const ExecutorBase<component::G1, operation::BLS_Decompress_G1>::ResultPair& result) const { |
1864 | 0 | (void)module; |
1865 | |
|
1866 | 0 | if ( result.second != std::nullopt ) { |
1867 | 0 | const auto curveID = op.curveType.Get(); |
1868 | 0 | const auto g1_x = result.second->first.ToTrimmedString(); |
1869 | 0 | const auto g1_y = result.second->second.ToTrimmedString(); |
1870 | |
|
1871 | 0 | G1AddToPool(curveID, g1_x, g1_y); |
1872 | |
|
1873 | 0 | if ( g1_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_x); } |
1874 | 0 | if ( g1_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_y); } |
1875 | 0 | } |
1876 | 0 | } |
1877 | | |
1878 | 0 | template<> std::optional<component::G1> ExecutorBase<component::G1, operation::BLS_Decompress_G1>::callModule(std::shared_ptr<Module> module, operation::BLS_Decompress_G1& op) const { |
1879 | 0 | return module->OpBLS_Decompress_G1(op); |
1880 | 0 | } |
1881 | | |
1882 | | /* Specialization for operation::BLS_Compress_G1 */ |
1883 | 0 | template<> void ExecutorBase<component::Bignum, operation::BLS_Compress_G1>::postprocess(std::shared_ptr<Module> module, operation::BLS_Compress_G1& op, const ExecutorBase<component::Bignum, operation::BLS_Compress_G1>::ResultPair& result) const { |
1884 | 0 | (void)module; |
1885 | 0 | (void)op; |
1886 | |
|
1887 | 0 | if ( result.second != std::nullopt ) { |
1888 | 0 | const auto compressed = result.second->ToTrimmedString(); |
1889 | |
|
1890 | 0 | if ( compressed.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(compressed); } |
1891 | 0 | } |
1892 | 0 | } |
1893 | | |
1894 | 0 | template<> std::optional<component::Bignum> ExecutorBase<component::Bignum, operation::BLS_Compress_G1>::callModule(std::shared_ptr<Module> module, operation::BLS_Compress_G1& op) const { |
1895 | 0 | return module->OpBLS_Compress_G1(op); |
1896 | 0 | } |
1897 | | |
1898 | | /* Specialization for operation::BLS_Decompress_G2 */ |
1899 | 0 | template<> void ExecutorBase<component::G2, operation::BLS_Decompress_G2>::postprocess(std::shared_ptr<Module> module, operation::BLS_Decompress_G2& op, const ExecutorBase<component::G2, operation::BLS_Decompress_G2>::ResultPair& result) const { |
1900 | 0 | (void)module; |
1901 | |
|
1902 | 0 | if ( result.second != std::nullopt ) { |
1903 | 0 | const auto curveID = op.curveType.Get(); |
1904 | 0 | const auto g2_v = result.second->first.first.ToTrimmedString(); |
1905 | 0 | const auto g2_w = result.second->first.second.ToTrimmedString(); |
1906 | 0 | const auto g2_x = result.second->second.first.ToTrimmedString(); |
1907 | 0 | const auto g2_y = result.second->second.second.ToTrimmedString(); |
1908 | |
|
1909 | 0 | G2AddToPool(curveID, g2_v, g2_w, g2_x, g2_y); |
1910 | |
|
1911 | 0 | if ( g2_v.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_v); } |
1912 | 0 | if ( g2_w.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_w); } |
1913 | 0 | if ( g2_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_x); } |
1914 | 0 | if ( g2_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_y); } |
1915 | 0 | } |
1916 | 0 | } |
1917 | | |
1918 | 0 | template<> std::optional<component::G2> ExecutorBase<component::G2, operation::BLS_Decompress_G2>::callModule(std::shared_ptr<Module> module, operation::BLS_Decompress_G2& op) const { |
1919 | 0 | return module->OpBLS_Decompress_G2(op); |
1920 | 0 | } |
1921 | | |
1922 | | /* Specialization for operation::BLS_Compress_G2 */ |
1923 | 0 | template<> void ExecutorBase<component::G1, operation::BLS_Compress_G2>::postprocess(std::shared_ptr<Module> module, operation::BLS_Compress_G2& op, const ExecutorBase<component::G1, operation::BLS_Compress_G2>::ResultPair& result) const { |
1924 | 0 | (void)module; |
1925 | |
|
1926 | 0 | if ( result.second != std::nullopt ) { |
1927 | 0 | const auto curveID = op.curveType.Get(); |
1928 | 0 | const auto g1_x = result.second->first.ToTrimmedString(); |
1929 | 0 | const auto g1_y = result.second->second.ToTrimmedString(); |
1930 | |
|
1931 | 0 | G1AddToPool(curveID, g1_x, g1_y); |
1932 | |
|
1933 | 0 | if ( g1_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_x); } |
1934 | 0 | if ( g1_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_y); } |
1935 | 0 | } |
1936 | 0 | } |
1937 | | |
1938 | 0 | template<> std::optional<component::G1> ExecutorBase<component::G1, operation::BLS_Compress_G2>::callModule(std::shared_ptr<Module> module, operation::BLS_Compress_G2& op) const { |
1939 | 0 | return module->OpBLS_Compress_G2(op); |
1940 | 0 | } |
1941 | | |
1942 | | /* Specialization for operation::BLS_G1_Add */ |
1943 | 0 | template<> void ExecutorBase<component::G1, operation::BLS_G1_Add>::postprocess(std::shared_ptr<Module> module, operation::BLS_G1_Add& op, const ExecutorBase<component::G1, operation::BLS_G1_Add>::ResultPair& result) const { |
1944 | 0 | (void)module; |
1945 | |
|
1946 | 0 | if ( result.second != std::nullopt ) { |
1947 | 0 | const auto curveID = op.curveType.Get(); |
1948 | 0 | const auto g1_x = result.second->first.ToTrimmedString(); |
1949 | 0 | const auto g1_y = result.second->second.ToTrimmedString(); |
1950 | |
|
1951 | 0 | G1AddToPool(curveID, g1_x, g1_y); |
1952 | |
|
1953 | 0 | if ( g1_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_x); } |
1954 | 0 | if ( g1_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_y); } |
1955 | 0 | } |
1956 | 0 | } |
1957 | | |
1958 | 0 | template<> std::optional<component::G1> ExecutorBase<component::G1, operation::BLS_G1_Add>::callModule(std::shared_ptr<Module> module, operation::BLS_G1_Add& op) const { |
1959 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
1960 | 0 | if ( op.a.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1961 | 0 | if ( op.a.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1962 | 0 | if ( op.b.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1963 | 0 | if ( op.b.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1964 | | |
1965 | 0 | return module->OpBLS_G1_Add(op); |
1966 | 0 | } |
1967 | | |
1968 | | /* Specialization for operation::BLS_G1_Mul */ |
1969 | 0 | template<> void ExecutorBase<component::G1, operation::BLS_G1_Mul>::postprocess(std::shared_ptr<Module> module, operation::BLS_G1_Mul& op, const ExecutorBase<component::G1, operation::BLS_G1_Mul>::ResultPair& result) const { |
1970 | 0 | (void)module; |
1971 | |
|
1972 | 0 | if ( result.second != std::nullopt ) { |
1973 | 0 | const auto curveID = op.curveType.Get(); |
1974 | 0 | const auto g1_x = result.second->first.ToTrimmedString(); |
1975 | 0 | const auto g1_y = result.second->second.ToTrimmedString(); |
1976 | |
|
1977 | 0 | G1AddToPool(curveID, g1_x, g1_y); |
1978 | |
|
1979 | 0 | if ( g1_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_x); } |
1980 | 0 | if ( g1_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_y); } |
1981 | 0 | } |
1982 | 0 | } |
1983 | | |
1984 | 0 | template<> std::optional<component::G1> ExecutorBase<component::G1, operation::BLS_G1_Mul>::callModule(std::shared_ptr<Module> module, operation::BLS_G1_Mul& op) const { |
1985 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
1986 | 0 | if ( op.a.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1987 | 0 | if ( op.a.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1988 | 0 | if ( op.b.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
1989 | | |
1990 | 0 | return module->OpBLS_G1_Mul(op); |
1991 | 0 | } |
1992 | | |
1993 | | /* Specialization for operation::BLS_G1_IsEq */ |
1994 | 0 | template<> void ExecutorBase<bool, operation::BLS_G1_IsEq>::postprocess(std::shared_ptr<Module> module, operation::BLS_G1_IsEq& op, const ExecutorBase<bool, operation::BLS_G1_IsEq>::ResultPair& result) const { |
1995 | 0 | (void)module; |
1996 | 0 | (void)op; |
1997 | 0 | (void)result; |
1998 | 0 | } |
1999 | | |
2000 | 0 | template<> std::optional<bool> ExecutorBase<bool, operation::BLS_G1_IsEq>::callModule(std::shared_ptr<Module> module, operation::BLS_G1_IsEq& op) const { |
2001 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
2002 | 0 | if ( op.a.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2003 | 0 | if ( op.a.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2004 | 0 | if ( op.b.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2005 | 0 | if ( op.b.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2006 | | |
2007 | 0 | return module->OpBLS_G1_IsEq(op); |
2008 | 0 | } |
2009 | | |
2010 | | /* Specialization for operation::BLS_G1_Neg */ |
2011 | 0 | template<> void ExecutorBase<component::G1, operation::BLS_G1_Neg>::postprocess(std::shared_ptr<Module> module, operation::BLS_G1_Neg& op, const ExecutorBase<component::G1, operation::BLS_G1_Neg>::ResultPair& result) const { |
2012 | 0 | (void)module; |
2013 | |
|
2014 | 0 | if ( result.second != std::nullopt ) { |
2015 | 0 | const auto curveID = op.curveType.Get(); |
2016 | 0 | const auto g1_x = result.second->first.ToTrimmedString(); |
2017 | 0 | const auto g1_y = result.second->second.ToTrimmedString(); |
2018 | |
|
2019 | 0 | G1AddToPool(curveID, g1_x, g1_y); |
2020 | |
|
2021 | 0 | if ( g1_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_x); } |
2022 | 0 | if ( g1_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_y); } |
2023 | 0 | } |
2024 | 0 | } |
2025 | | |
2026 | 0 | template<> std::optional<component::G1> ExecutorBase<component::G1, operation::BLS_G1_Neg>::callModule(std::shared_ptr<Module> module, operation::BLS_G1_Neg& op) const { |
2027 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
2028 | 0 | if ( op.a.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2029 | 0 | if ( op.a.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2030 | | |
2031 | 0 | return module->OpBLS_G1_Neg(op); |
2032 | 0 | } |
2033 | | |
2034 | | /* Specialization for operation::BLS_G2_Add */ |
2035 | 0 | template<> void ExecutorBase<component::G2, operation::BLS_G2_Add>::postprocess(std::shared_ptr<Module> module, operation::BLS_G2_Add& op, const ExecutorBase<component::G2, operation::BLS_G2_Add>::ResultPair& result) const { |
2036 | 0 | (void)module; |
2037 | |
|
2038 | 0 | if ( result.second != std::nullopt ) { |
2039 | 0 | const auto curveID = op.curveType.Get(); |
2040 | 0 | const auto g2_v = result.second->first.first.ToTrimmedString(); |
2041 | 0 | const auto g2_w = result.second->first.second.ToTrimmedString(); |
2042 | 0 | const auto g2_x = result.second->second.first.ToTrimmedString(); |
2043 | 0 | const auto g2_y = result.second->second.second.ToTrimmedString(); |
2044 | |
|
2045 | 0 | G2AddToPool(curveID, g2_v, g2_w, g2_x, g2_y); |
2046 | |
|
2047 | 0 | if ( g2_v.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_v); } |
2048 | 0 | if ( g2_w.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_w); } |
2049 | 0 | if ( g2_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_x); } |
2050 | 0 | if ( g2_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_y); } |
2051 | 0 | } |
2052 | 0 | } |
2053 | | |
2054 | 0 | template<> std::optional<component::G2> ExecutorBase<component::G2, operation::BLS_G2_Add>::callModule(std::shared_ptr<Module> module, operation::BLS_G2_Add& op) const { |
2055 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
2056 | 0 | if ( op.a.first.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2057 | 0 | if ( op.a.first.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2058 | 0 | if ( op.a.second.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2059 | 0 | if ( op.a.second.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2060 | 0 | if ( op.b.first.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2061 | 0 | if ( op.b.first.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2062 | 0 | if ( op.b.second.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2063 | 0 | if ( op.b.second.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2064 | | |
2065 | 0 | return module->OpBLS_G2_Add(op); |
2066 | 0 | } |
2067 | | |
2068 | | /* Specialization for operation::BLS_G2_Mul */ |
2069 | 0 | template<> void ExecutorBase<component::G2, operation::BLS_G2_Mul>::postprocess(std::shared_ptr<Module> module, operation::BLS_G2_Mul& op, const ExecutorBase<component::G2, operation::BLS_G2_Mul>::ResultPair& result) const { |
2070 | 0 | (void)module; |
2071 | |
|
2072 | 0 | if ( result.second != std::nullopt ) { |
2073 | 0 | const auto curveID = op.curveType.Get(); |
2074 | 0 | const auto g2_v = result.second->first.first.ToTrimmedString(); |
2075 | 0 | const auto g2_w = result.second->first.second.ToTrimmedString(); |
2076 | 0 | const auto g2_x = result.second->second.first.ToTrimmedString(); |
2077 | 0 | const auto g2_y = result.second->second.second.ToTrimmedString(); |
2078 | |
|
2079 | 0 | G2AddToPool(curveID, g2_v, g2_w, g2_x, g2_y); |
2080 | |
|
2081 | 0 | if ( g2_v.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_v); } |
2082 | 0 | if ( g2_w.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_w); } |
2083 | 0 | if ( g2_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_x); } |
2084 | 0 | if ( g2_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_y); } |
2085 | 0 | } |
2086 | 0 | } |
2087 | | |
2088 | 0 | template<> std::optional<component::G2> ExecutorBase<component::G2, operation::BLS_G2_Mul>::callModule(std::shared_ptr<Module> module, operation::BLS_G2_Mul& op) const { |
2089 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
2090 | 0 | if ( op.a.first.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2091 | 0 | if ( op.a.first.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2092 | 0 | if ( op.a.second.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2093 | 0 | if ( op.a.second.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2094 | 0 | if ( op.b.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2095 | | |
2096 | 0 | return module->OpBLS_G2_Mul(op); |
2097 | 0 | } |
2098 | | |
2099 | | /* Specialization for operation::BLS_G2_IsEq */ |
2100 | 0 | template<> void ExecutorBase<bool, operation::BLS_G2_IsEq>::postprocess(std::shared_ptr<Module> module, operation::BLS_G2_IsEq& op, const ExecutorBase<bool, operation::BLS_G2_IsEq>::ResultPair& result) const { |
2101 | 0 | (void)module; |
2102 | 0 | (void)op; |
2103 | 0 | (void)result; |
2104 | 0 | } |
2105 | | |
2106 | 0 | template<> std::optional<bool> ExecutorBase<bool, operation::BLS_G2_IsEq>::callModule(std::shared_ptr<Module> module, operation::BLS_G2_IsEq& op) const { |
2107 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
2108 | 0 | if ( op.a.first.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2109 | 0 | if ( op.a.first.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2110 | 0 | if ( op.a.second.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2111 | 0 | if ( op.a.second.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2112 | 0 | if ( op.b.first.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2113 | 0 | if ( op.b.first.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2114 | 0 | if ( op.b.second.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2115 | 0 | if ( op.b.second.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2116 | | |
2117 | 0 | return module->OpBLS_G2_IsEq(op); |
2118 | 0 | } |
2119 | | |
2120 | | /* Specialization for operation::BLS_G2_Neg */ |
2121 | 0 | template<> void ExecutorBase<component::G2, operation::BLS_G2_Neg>::postprocess(std::shared_ptr<Module> module, operation::BLS_G2_Neg& op, const ExecutorBase<component::G2, operation::BLS_G2_Neg>::ResultPair& result) const { |
2122 | 0 | (void)module; |
2123 | |
|
2124 | 0 | if ( result.second != std::nullopt ) { |
2125 | 0 | const auto curveID = op.curveType.Get(); |
2126 | 0 | const auto g2_v = result.second->first.first.ToTrimmedString(); |
2127 | 0 | const auto g2_w = result.second->first.second.ToTrimmedString(); |
2128 | 0 | const auto g2_x = result.second->second.first.ToTrimmedString(); |
2129 | 0 | const auto g2_y = result.second->second.second.ToTrimmedString(); |
2130 | |
|
2131 | 0 | G2AddToPool(curveID, g2_v, g2_w, g2_x, g2_y); |
2132 | |
|
2133 | 0 | if ( g2_v.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_v); } |
2134 | 0 | if ( g2_w.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_w); } |
2135 | 0 | if ( g2_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_x); } |
2136 | 0 | if ( g2_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_y); } |
2137 | 0 | } |
2138 | 0 | } |
2139 | | |
2140 | 0 | template<> std::optional<component::G2> ExecutorBase<component::G2, operation::BLS_G2_Neg>::callModule(std::shared_ptr<Module> module, operation::BLS_G2_Neg& op) const { |
2141 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
2142 | 0 | if ( op.a.first.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2143 | 0 | if ( op.a.first.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2144 | 0 | if ( op.a.second.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2145 | 0 | if ( op.a.second.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2146 | | |
2147 | 0 | return module->OpBLS_G2_Neg(op); |
2148 | 0 | } |
2149 | | |
2150 | | /* Specialization for operation::BLS_G1_MultiExp */ |
2151 | 0 | template<> void ExecutorBase<component::G1, operation::BLS_G1_MultiExp>::postprocess(std::shared_ptr<Module> module, operation::BLS_G1_MultiExp& op, const ExecutorBase<component::G1, operation::BLS_G1_MultiExp>::ResultPair& result) const { |
2152 | 0 | (void)module; |
2153 | |
|
2154 | 0 | if ( result.second != std::nullopt ) { |
2155 | 0 | const auto curveID = op.curveType.Get(); |
2156 | 0 | const auto g1_x = result.second->first.ToTrimmedString(); |
2157 | 0 | const auto g1_y = result.second->second.ToTrimmedString(); |
2158 | |
|
2159 | 0 | G1AddToPool(curveID, g1_x, g1_y); |
2160 | |
|
2161 | 0 | if ( g1_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_x); } |
2162 | 0 | if ( g1_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g1_y); } |
2163 | 0 | } |
2164 | 0 | } |
2165 | | |
2166 | 0 | template<> std::optional<component::G1> ExecutorBase<component::G1, operation::BLS_G1_MultiExp>::callModule(std::shared_ptr<Module> module, operation::BLS_G1_MultiExp& op) const { |
2167 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
2168 | |
|
2169 | 0 | for (const auto& point_scalar : op.points_scalars.points_scalars) { |
2170 | 0 | if ( point_scalar.first.first.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2171 | 0 | if ( point_scalar.first.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2172 | 0 | if ( point_scalar.second.GetSize() > config::kMaxBignumSize ) return std::nullopt; |
2173 | 0 | } |
2174 | | |
2175 | 0 | return module->OpBLS_G1_MultiExp(op); |
2176 | 0 | } |
2177 | | |
2178 | | /* Specialization for operation::Misc */ |
2179 | 0 | template<> void ExecutorBase<Buffer, operation::Misc>::postprocess(std::shared_ptr<Module> module, operation::Misc& op, const ExecutorBase<Buffer, operation::Misc>::ResultPair& result) const { |
2180 | 0 | (void)module; |
2181 | 0 | (void)op; |
2182 | 0 | (void)result; |
2183 | 0 | } |
2184 | | |
2185 | 0 | template<> std::optional<Buffer> ExecutorBase<Buffer, operation::Misc>::callModule(std::shared_ptr<Module> module, operation::Misc& op) const { |
2186 | 0 | return module->OpMisc(op); |
2187 | 0 | } |
2188 | | |
2189 | | /* Specialization for operation::BLS_HashToG2 */ |
2190 | 0 | template<> void ExecutorBase<component::G2, operation::BLS_HashToG2>::postprocess(std::shared_ptr<Module> module, operation::BLS_HashToG2& op, const ExecutorBase<component::G2, operation::BLS_HashToG2>::ResultPair& result) const { |
2191 | 0 | (void)module; |
2192 | |
|
2193 | 0 | if ( result.second != std::nullopt ) { |
2194 | 0 | const auto curveID = op.curveType.Get(); |
2195 | 0 | const auto g2_v = result.second->first.first.ToTrimmedString(); |
2196 | 0 | const auto g2_w = result.second->first.second.ToTrimmedString(); |
2197 | 0 | const auto g2_x = result.second->second.first.ToTrimmedString(); |
2198 | 0 | const auto g2_y = result.second->second.second.ToTrimmedString(); |
2199 | |
|
2200 | 0 | G2AddToPool(curveID, g2_v, g2_w, g2_x, g2_y); |
2201 | |
|
2202 | 0 | if ( g2_v.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_v); } |
2203 | 0 | if ( g2_w.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_w); } |
2204 | 0 | if ( g2_x.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_x); } |
2205 | 0 | if ( g2_y.size() <= config::kMaxBignumSize ) { Pool_Bignum.Set(g2_y); } |
2206 | 0 | } |
2207 | 0 | } |
2208 | | |
2209 | 0 | template<> std::optional<component::G2> ExecutorBase<component::G2, operation::BLS_HashToG2>::callModule(std::shared_ptr<Module> module, operation::BLS_HashToG2& op) const { |
2210 | 0 | RETURN_IF_DISABLED(options.curves, op.curveType.Get()); |
2211 | 0 | return module->OpBLS_HashToG2(op); |
2212 | 0 | } |
2213 | | |
2214 | | ExecutorBignumCalc::ExecutorBignumCalc(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2215 | | ExecutorBase<component::Bignum, operation::BignumCalc>::ExecutorBase(operationID, modules, options) |
2216 | 69 | { } |
2217 | 66 | void ExecutorBignumCalc::SetModulo(const std::string& modulo) { |
2218 | 66 | this->modulo = component::Bignum(modulo); |
2219 | 66 | } |
2220 | | |
2221 | | ExecutorBignumCalc_Mod_BLS12_381_R::ExecutorBignumCalc_Mod_BLS12_381_R(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2222 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2223 | 3 | CF_NORET(SetModulo("52435875175126190479447740508185965837690552500527637822603658699938581184513")); |
2224 | 3 | } |
2225 | | |
2226 | | ExecutorBignumCalc_Mod_BLS12_381_P::ExecutorBignumCalc_Mod_BLS12_381_P(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2227 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2228 | 3 | CF_NORET(SetModulo("4002409555221667393417789825735904156556882819939007885332058136124031650490837864442687629129015664037894272559787")); |
2229 | 3 | } |
2230 | | |
2231 | | ExecutorBignumCalc_Mod_BLS12_377_R::ExecutorBignumCalc_Mod_BLS12_377_R(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2232 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2233 | 3 | CF_NORET(SetModulo("8444461749428370424248824938781546531375899335154063827935233455917409239041")); |
2234 | 3 | } |
2235 | | |
2236 | | ExecutorBignumCalc_Mod_BLS12_377_P::ExecutorBignumCalc_Mod_BLS12_377_P(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2237 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2238 | 3 | CF_NORET(SetModulo("258664426012969094010652733694893533536393512754914660539884262666720468348340822774968888139573360124440321458177")); |
2239 | 3 | } |
2240 | | |
2241 | | ExecutorBignumCalc_Mod_BN128_R::ExecutorBignumCalc_Mod_BN128_R(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2242 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2243 | 3 | CF_NORET(SetModulo("21888242871839275222246405745257275088548364400416034343698204186575808495617")); |
2244 | 3 | } |
2245 | | |
2246 | | ExecutorBignumCalc_Mod_BN128_P::ExecutorBignumCalc_Mod_BN128_P(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2247 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2248 | 3 | CF_NORET(SetModulo("21888242871839275222246405745257275088696311157297823662689037894645226208583")); |
2249 | 3 | } |
2250 | | |
2251 | | ExecutorBignumCalc_Mod_Vesta_R::ExecutorBignumCalc_Mod_Vesta_R(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2252 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2253 | 3 | CF_NORET(SetModulo("28948022309329048855892746252171976963363056481941560715954676764349967630337")); |
2254 | 3 | } |
2255 | | |
2256 | | ExecutorBignumCalc_Mod_Vesta_P::ExecutorBignumCalc_Mod_Vesta_P(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2257 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2258 | 3 | CF_NORET(SetModulo("28948022309329048855892746252171976963363056481941647379679742748393362948097")); |
2259 | 3 | } |
2260 | | |
2261 | | ExecutorBignumCalc_Mod_ED25519::ExecutorBignumCalc_Mod_ED25519(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2262 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2263 | 3 | CF_NORET(SetModulo("57896044618658097711785492504343953926634992332820282019728792003956564819949")); |
2264 | 3 | } |
2265 | | |
2266 | | ExecutorBignumCalc_Mod_Edwards_R::ExecutorBignumCalc_Mod_Edwards_R(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2267 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2268 | 3 | CF_NORET(SetModulo("1552511030102430251236801561344621993261920897571225601")); |
2269 | 3 | } |
2270 | | |
2271 | | ExecutorBignumCalc_Mod_Edwards_P::ExecutorBignumCalc_Mod_Edwards_P(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2272 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2273 | 3 | CF_NORET(SetModulo("6210044120409721004947206240885978274523751269793792001")); |
2274 | 3 | } |
2275 | | |
2276 | | ExecutorBignumCalc_Mod_Goldilocks::ExecutorBignumCalc_Mod_Goldilocks(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2277 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2278 | 3 | CF_NORET(SetModulo("18446744069414584321")); |
2279 | 3 | } |
2280 | | |
2281 | | ExecutorBignumCalc_Mod_MNT4_R::ExecutorBignumCalc_Mod_MNT4_R(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2282 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2283 | 3 | CF_NORET(SetModulo("475922286169261325753349249653048451545124878552823515553267735739164647307408490559963137")); |
2284 | 3 | } |
2285 | | |
2286 | | ExecutorBignumCalc_Mod_MNT4_P::ExecutorBignumCalc_Mod_MNT4_P(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2287 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2288 | 3 | CF_NORET(SetModulo("475922286169261325753349249653048451545124879242694725395555128576210262817955800483758081")); |
2289 | 3 | } |
2290 | | |
2291 | | ExecutorBignumCalc_Mod_MNT6_R::ExecutorBignumCalc_Mod_MNT6_R(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2292 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2293 | 3 | CF_NORET(SetModulo("475922286169261325753349249653048451545124879242694725395555128576210262817955800483758081")); |
2294 | 3 | } |
2295 | | |
2296 | | ExecutorBignumCalc_Mod_MNT6_P::ExecutorBignumCalc_Mod_MNT6_P(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2297 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2298 | 3 | CF_NORET(SetModulo("237961143084630662876674624826524225772562439621347362697777564288105131408977900241879040")); |
2299 | 3 | } |
2300 | | |
2301 | | ExecutorBignumCalc_Mod_2Exp64::ExecutorBignumCalc_Mod_2Exp64(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2302 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2303 | 3 | CF_NORET(SetModulo("18446744073709551616")); |
2304 | 3 | } |
2305 | | |
2306 | | ExecutorBignumCalc_Mod_2Exp128::ExecutorBignumCalc_Mod_2Exp128(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2307 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2308 | 3 | CF_NORET(SetModulo("340282366920938463463374607431768211456")); |
2309 | 3 | } |
2310 | | |
2311 | | ExecutorBignumCalc_Mod_2Exp256::ExecutorBignumCalc_Mod_2Exp256(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2312 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2313 | 3 | CF_NORET(SetModulo("115792089237316195423570985008687907853269984665640564039457584007913129639936")); |
2314 | 3 | } |
2315 | | |
2316 | | ExecutorBignumCalc_Mod_2Exp512::ExecutorBignumCalc_Mod_2Exp512(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2317 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2318 | 3 | CF_NORET(SetModulo("13407807929942597099574024998205846127479365820592393377723561443721764030073546976801874298166903427690031858186486050853753882811946569946433649006084096")); |
2319 | 3 | } |
2320 | | |
2321 | | ExecutorBignumCalc_Mod_SECP256K1::ExecutorBignumCalc_Mod_SECP256K1(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2322 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2323 | 3 | CF_NORET(SetModulo("115792089237316195423570985008687907852837564279074904382605163141518161494337")); |
2324 | 3 | } |
2325 | | |
2326 | | ExecutorBignumCalc_Mod_SECP256K1_P::ExecutorBignumCalc_Mod_SECP256K1_P(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2327 | 3 | ExecutorBignumCalc::ExecutorBignumCalc(operationID, modules, options) { |
2328 | 3 | CF_NORET(SetModulo("115792089237316195423570985008687907853269984665640564039457584007908834671663")); |
2329 | 3 | } |
2330 | | |
2331 | | ExecutorBignumCalc_Fp2::ExecutorBignumCalc_Fp2(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2332 | | ExecutorBase<component::Fp2, operation::BignumCalc_Fp2>::ExecutorBase(operationID, modules, options) |
2333 | 3 | { } |
2334 | 0 | void ExecutorBignumCalc_Fp2::SetModulo(const std::string& modulo) { |
2335 | 0 | this->modulo = component::Bignum(modulo); |
2336 | 0 | } |
2337 | | |
2338 | | ExecutorBignumCalc_Fp12::ExecutorBignumCalc_Fp12(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2339 | | ExecutorBase<component::Fp12, operation::BignumCalc_Fp12>::ExecutorBase(operationID, modules, options) |
2340 | 3 | { } |
2341 | 0 | void ExecutorBignumCalc_Fp12::SetModulo(const std::string& modulo) { |
2342 | 0 | this->modulo = component::Bignum(modulo); |
2343 | 0 | } |
2344 | | |
2345 | | template <class ResultType, class OperationType> |
2346 | | ExecutorBase<ResultType, OperationType>::ExecutorBase(const uint64_t operationID, const std::map<uint64_t, std::shared_ptr<Module> >& modules, const Options& options) : |
2347 | | operationID(operationID), |
2348 | | modules(modules), |
2349 | | options(options) |
2350 | 321 | { |
2351 | 321 | } cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Digest>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::HMAC>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::UMAC>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::CMAC>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::Ciphertext, cryptofuzz::operation::SymmetricEncrypt>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::SymmetricDecrypt>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SCRYPT>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_HKDF>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_TLS1_PRF>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF1>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF2>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_ARGON2>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SSH>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_X963>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_BCRYPT>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SP_800_108>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTP>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTCP>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_PrivateToPublic>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_ValidatePubkey>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::ECC_KeyPair, cryptofuzz::operation::ECC_GenerateKeyPair>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::ECCSI_Signature, cryptofuzz::operation::ECCSI_Sign>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECDSA_Sign>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECGDSA_Sign>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECRDSA_Sign>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::Schnorr_Sign>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECCSI_Verify>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECDSA_Verify>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECGDSA_Verify>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECRDSA_Verify>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::Schnorr_Verify>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECDSA_Recover>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::DSA_Verify>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::DSA_Signature, cryptofuzz::operation::DSA_Sign>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::DSA_Parameters, cryptofuzz::operation::DSA_GenerateParameters>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DSA_PrivateToPublic>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::DSA_GenerateKeyPair>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECDH_Derive>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::Ciphertext, cryptofuzz::operation::ECIES_Encrypt>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECIES_Decrypt>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Add>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Sub>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Mul>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Neg>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Dbl>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_Point_Cmp>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::DH_GenerateKeyPair>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DH_Derive>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BignumCalc>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 69 | { | 2351 | 69 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BignumCalc_Fp2>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BignumCalc_Fp12>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_PrivateToPublic>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_PrivateToPublic_G2>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_Signature, cryptofuzz::operation::BLS_Sign>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_Verify>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_BatchSignature, cryptofuzz::operation::BLS_BatchSign>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_BatchVerify>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Aggregate_G1>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Aggregate_G2>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_Pairing>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_MillerLoop>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_FinalExp>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_HashToG1>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_HashToG2>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_MapToG1>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_MapToG2>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG1OnCurve>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG2OnCurve>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_KeyPair, cryptofuzz::operation::BLS_GenerateKeyPair>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Decompress_G1>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BLS_Compress_G1>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Decompress_G2>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Compress_G2>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Add>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Mul>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G1_IsEq>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Neg>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Add>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Mul>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G2_IsEq>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Neg>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_MultiExp>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Misc>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::SR25519_Verify>::ExecutorBase(unsigned long, std::__1::map<unsigned long, std::__1::shared_ptr<cryptofuzz::Module>, std::__1::less<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, std::__1::shared_ptr<cryptofuzz::Module> > > > const&, cryptofuzz::Options const&) Line | Count | Source | 2350 | 3 | { | 2351 | 3 | } |
|
2352 | | |
2353 | | /* Specialization for operation::SR25519_Verify */ |
2354 | 0 | template<> void ExecutorBase<bool, operation::SR25519_Verify>::postprocess(std::shared_ptr<Module> module, operation::SR25519_Verify& op, const ExecutorBase<bool, operation::SR25519_Verify>::ResultPair& result) const { |
2355 | 0 | (void)module; |
2356 | 0 | (void)op; |
2357 | 0 | (void)result; |
2358 | 0 | } |
2359 | | |
2360 | 0 | template<> std::optional<bool> ExecutorBase<bool, operation::SR25519_Verify>::callModule(std::shared_ptr<Module> module, operation::SR25519_Verify& op) const { |
2361 | 0 | return module->OpSR25519_Verify(op); |
2362 | 0 | } |
2363 | | |
2364 | | template <class ResultType, class OperationType> |
2365 | 321 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { |
2366 | 321 | } cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Digest>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::HMAC>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::UMAC>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::CMAC>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::Ciphertext, cryptofuzz::operation::SymmetricEncrypt>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::SymmetricDecrypt>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SCRYPT>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_HKDF>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_TLS1_PRF>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF1>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF2>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_ARGON2>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SSH>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_X963>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_BCRYPT>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SP_800_108>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTP>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTCP>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_PrivateToPublic>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_ValidatePubkey>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::ECC_KeyPair, cryptofuzz::operation::ECC_GenerateKeyPair>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::ECCSI_Signature, cryptofuzz::operation::ECCSI_Sign>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECDSA_Sign>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECGDSA_Sign>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECRDSA_Sign>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::Schnorr_Sign>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECCSI_Verify>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECDSA_Verify>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECGDSA_Verify>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECRDSA_Verify>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::Schnorr_Verify>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECDSA_Recover>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::DSA_Verify>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::DSA_Signature, cryptofuzz::operation::DSA_Sign>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::DSA_Parameters, cryptofuzz::operation::DSA_GenerateParameters>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DSA_PrivateToPublic>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::DSA_GenerateKeyPair>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECDH_Derive>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::Ciphertext, cryptofuzz::operation::ECIES_Encrypt>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECIES_Decrypt>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Add>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Sub>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Mul>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Neg>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Dbl>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_Point_Cmp>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::DH_GenerateKeyPair>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DH_Derive>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BignumCalc>::~ExecutorBase() Line | Count | Source | 2365 | 69 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 69 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BignumCalc_Fp2>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BignumCalc_Fp12>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_PrivateToPublic>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_PrivateToPublic_G2>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_Signature, cryptofuzz::operation::BLS_Sign>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_Verify>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_BatchSignature, cryptofuzz::operation::BLS_BatchSign>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_BatchVerify>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Aggregate_G1>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Aggregate_G2>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_Pairing>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_MillerLoop>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_FinalExp>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_HashToG1>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_HashToG2>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_MapToG1>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_MapToG2>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG1OnCurve>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG2OnCurve>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_KeyPair, cryptofuzz::operation::BLS_GenerateKeyPair>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Decompress_G1>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BLS_Compress_G1>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Decompress_G2>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Compress_G2>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Add>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Mul>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G1_IsEq>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Neg>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Add>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Mul>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G2_IsEq>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Neg>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_MultiExp>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Misc>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::SR25519_Verify>::~ExecutorBase() Line | Count | Source | 2365 | 3 | ExecutorBase<ResultType, OperationType>::~ExecutorBase() { | 2366 | 3 | } |
|
2367 | | |
2368 | | /* Filter away the values in the set that are std::nullopt */ |
2369 | | template <class ResultType, class OperationType> |
2370 | 18.3k | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { |
2371 | 18.3k | ResultSet ret; |
2372 | | |
2373 | 78.4k | for (const auto& result : results) { |
2374 | 78.4k | if ( result.second == std::nullopt ) { |
2375 | 45.4k | continue; |
2376 | 45.4k | } |
2377 | | |
2378 | 32.9k | ret.push_back(result); |
2379 | 32.9k | } |
2380 | | |
2381 | 18.3k | return ret; |
2382 | 18.3k | } cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Digest>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const Line | Count | Source | 2370 | 1.44k | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { | 2371 | 1.44k | ResultSet ret; | 2372 | | | 2373 | 6.03k | for (const auto& result : results) { | 2374 | 6.03k | if ( result.second == std::nullopt ) { | 2375 | 1.89k | continue; | 2376 | 1.89k | } | 2377 | | | 2378 | 4.13k | ret.push_back(result); | 2379 | 4.13k | } | 2380 | | | 2381 | 1.44k | return ret; | 2382 | 1.44k | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::HMAC>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const Line | Count | Source | 2370 | 803 | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { | 2371 | 803 | ResultSet ret; | 2372 | | | 2373 | 3.44k | for (const auto& result : results) { | 2374 | 3.44k | if ( result.second == std::nullopt ) { | 2375 | 1.48k | continue; | 2376 | 1.48k | } | 2377 | | | 2378 | 1.95k | ret.push_back(result); | 2379 | 1.95k | } | 2380 | | | 2381 | 803 | return ret; | 2382 | 803 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::UMAC>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::CMAC>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const cryptofuzz::ExecutorBase<cryptofuzz::component::Ciphertext, cryptofuzz::operation::SymmetricEncrypt>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Ciphertext> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Ciphertext> > > > const&) const Line | Count | Source | 2370 | 552 | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { | 2371 | 552 | ResultSet ret; | 2372 | | | 2373 | 2.42k | for (const auto& result : results) { | 2374 | 2.42k | if ( result.second == std::nullopt ) { | 2375 | 2.03k | continue; | 2376 | 2.03k | } | 2377 | | | 2378 | 389 | ret.push_back(result); | 2379 | 389 | } | 2380 | | | 2381 | 552 | return ret; | 2382 | 552 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::SymmetricDecrypt>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const Line | Count | Source | 2370 | 372 | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { | 2371 | 372 | ResultSet ret; | 2372 | | | 2373 | 1.60k | for (const auto& result : results) { | 2374 | 1.60k | if ( result.second == std::nullopt ) { | 2375 | 1.37k | continue; | 2376 | 1.37k | } | 2377 | | | 2378 | 228 | ret.push_back(result); | 2379 | 228 | } | 2380 | | | 2381 | 372 | return ret; | 2382 | 372 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SCRYPT>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_HKDF>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const Line | Count | Source | 2370 | 621 | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { | 2371 | 621 | ResultSet ret; | 2372 | | | 2373 | 2.63k | for (const auto& result : results) { | 2374 | 2.63k | if ( result.second == std::nullopt ) { | 2375 | 2.07k | continue; | 2376 | 2.07k | } | 2377 | | | 2378 | 563 | ret.push_back(result); | 2379 | 563 | } | 2380 | | | 2381 | 621 | return ret; | 2382 | 621 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_TLS1_PRF>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF1>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF2>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_ARGON2>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SSH>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_X963>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_BCRYPT>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SP_800_108>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTP>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<std::__1::array<cryptofuzz::Buffer, 3ul> > >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<std::__1::array<cryptofuzz::Buffer, 3ul> > > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTCP>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<std::__1::array<cryptofuzz::Buffer, 3ul> > >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<std::__1::array<cryptofuzz::Buffer, 3ul> > > > > const&) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_PrivateToPublic>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const Line | Count | Source | 2370 | 1.02k | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { | 2371 | 1.02k | ResultSet ret; | 2372 | | | 2373 | 4.35k | for (const auto& result : results) { | 2374 | 4.35k | if ( result.second == std::nullopt ) { | 2375 | 1.70k | continue; | 2376 | 1.70k | } | 2377 | | | 2378 | 2.65k | ret.push_back(result); | 2379 | 2.65k | } | 2380 | | | 2381 | 1.02k | return ret; | 2382 | 1.02k | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_ValidatePubkey>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&) const Line | Count | Source | 2370 | 370 | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { | 2371 | 370 | ResultSet ret; | 2372 | | | 2373 | 1.68k | for (const auto& result : results) { | 2374 | 1.68k | if ( result.second == std::nullopt ) { | 2375 | 958 | continue; | 2376 | 958 | } | 2377 | | | 2378 | 727 | ret.push_back(result); | 2379 | 727 | } | 2380 | | | 2381 | 370 | return ret; | 2382 | 370 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECC_KeyPair, cryptofuzz::operation::ECC_GenerateKeyPair>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECC_KeyPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECC_KeyPair> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECCSI_Signature, cryptofuzz::operation::ECCSI_Sign>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECCSI_Signature> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECCSI_Signature> > > > const&) const cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECDSA_Sign>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECDSA_Signature> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECDSA_Signature> > > > const&) const Line | Count | Source | 2370 | 2.66k | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { | 2371 | 2.66k | ResultSet ret; | 2372 | | | 2373 | 11.3k | for (const auto& result : results) { | 2374 | 11.3k | if ( result.second == std::nullopt ) { | 2375 | 6.51k | continue; | 2376 | 6.51k | } | 2377 | | | 2378 | 4.84k | ret.push_back(result); | 2379 | 4.84k | } | 2380 | | | 2381 | 2.66k | return ret; | 2382 | 2.66k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECGDSA_Sign>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECDSA_Signature> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECDSA_Signature> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECRDSA_Sign>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECDSA_Signature> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECDSA_Signature> > > > const&) const cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::Schnorr_Sign>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECDSA_Signature> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECDSA_Signature> > > > const&) const Line | Count | Source | 2370 | 1.17k | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { | 2371 | 1.17k | ResultSet ret; | 2372 | | | 2373 | 4.91k | for (const auto& result : results) { | 2374 | 4.91k | if ( result.second == std::nullopt ) { | 2375 | 3.82k | continue; | 2376 | 3.82k | } | 2377 | | | 2378 | 1.09k | ret.push_back(result); | 2379 | 1.09k | } | 2380 | | | 2381 | 1.17k | return ret; | 2382 | 1.17k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECCSI_Verify>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&) const cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECDSA_Verify>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&) const Line | Count | Source | 2370 | 603 | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { | 2371 | 603 | ResultSet ret; | 2372 | | | 2373 | 2.63k | for (const auto& result : results) { | 2374 | 2.63k | if ( result.second == std::nullopt ) { | 2375 | 1.11k | continue; | 2376 | 1.11k | } | 2377 | | | 2378 | 1.52k | ret.push_back(result); | 2379 | 1.52k | } | 2380 | | | 2381 | 603 | return ret; | 2382 | 603 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECGDSA_Verify>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECRDSA_Verify>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&) const cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::Schnorr_Verify>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&) const Line | Count | Source | 2370 | 584 | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { | 2371 | 584 | ResultSet ret; | 2372 | | | 2373 | 2.46k | for (const auto& result : results) { | 2374 | 2.46k | if ( result.second == std::nullopt ) { | 2375 | 1.92k | continue; | 2376 | 1.92k | } | 2377 | | | 2378 | 544 | ret.push_back(result); | 2379 | 544 | } | 2380 | | | 2381 | 584 | return ret; | 2382 | 584 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECDSA_Recover>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const Line | Count | Source | 2370 | 1.77k | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { | 2371 | 1.77k | ResultSet ret; | 2372 | | | 2373 | 7.52k | for (const auto& result : results) { | 2374 | 7.52k | if ( result.second == std::nullopt ) { | 2375 | 4.90k | continue; | 2376 | 4.90k | } | 2377 | | | 2378 | 2.62k | ret.push_back(result); | 2379 | 2.62k | } | 2380 | | | 2381 | 1.77k | return ret; | 2382 | 1.77k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::DSA_Verify>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::DSA_Signature, cryptofuzz::operation::DSA_Sign>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::DSA_Signature> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::DSA_Signature> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::DSA_Parameters, cryptofuzz::operation::DSA_GenerateParameters>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::DSA_Parameters> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::DSA_Parameters> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DSA_PrivateToPublic>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Bignum> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Bignum> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::DSA_GenerateKeyPair>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECDH_Derive>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const Line | Count | Source | 2370 | 650 | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { | 2371 | 650 | ResultSet ret; | 2372 | | | 2373 | 2.77k | for (const auto& result : results) { | 2374 | 2.77k | if ( result.second == std::nullopt ) { | 2375 | 1.82k | continue; | 2376 | 1.82k | } | 2377 | | | 2378 | 943 | ret.push_back(result); | 2379 | 943 | } | 2380 | | | 2381 | 650 | return ret; | 2382 | 650 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Ciphertext, cryptofuzz::operation::ECIES_Encrypt>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Ciphertext> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Ciphertext> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECIES_Decrypt>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Add>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const Line | Count | Source | 2370 | 354 | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { | 2371 | 354 | ResultSet ret; | 2372 | | | 2373 | 1.62k | for (const auto& result : results) { | 2374 | 1.62k | if ( result.second == std::nullopt ) { | 2375 | 1.17k | continue; | 2376 | 1.17k | } | 2377 | | | 2378 | 450 | ret.push_back(result); | 2379 | 450 | } | 2380 | | | 2381 | 354 | return ret; | 2382 | 354 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Sub>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Mul>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const Line | Count | Source | 2370 | 1.93k | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { | 2371 | 1.93k | ResultSet ret; | 2372 | | | 2373 | 8.09k | for (const auto& result : results) { | 2374 | 8.09k | if ( result.second == std::nullopt ) { | 2375 | 2.87k | continue; | 2376 | 2.87k | } | 2377 | | | 2378 | 5.22k | ret.push_back(result); | 2379 | 5.22k | } | 2380 | | | 2381 | 1.93k | return ret; | 2382 | 1.93k | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Neg>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const Line | Count | Source | 2370 | 261 | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { | 2371 | 261 | ResultSet ret; | 2372 | | | 2373 | 1.22k | for (const auto& result : results) { | 2374 | 1.22k | if ( result.second == std::nullopt ) { | 2375 | 1.08k | continue; | 2376 | 1.08k | } | 2377 | | | 2378 | 141 | ret.push_back(result); | 2379 | 141 | } | 2380 | | | 2381 | 261 | return ret; | 2382 | 261 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Dbl>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const Line | Count | Source | 2370 | 396 | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { | 2371 | 396 | ResultSet ret; | 2372 | | | 2373 | 1.77k | for (const auto& result : results) { | 2374 | 1.77k | if ( result.second == std::nullopt ) { | 2375 | 1.21k | continue; | 2376 | 1.21k | } | 2377 | | | 2378 | 563 | ret.push_back(result); | 2379 | 563 | } | 2380 | | | 2381 | 396 | return ret; | 2382 | 396 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_Point_Cmp>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::DH_GenerateKeyPair>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DH_Derive>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Bignum> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Bignum> > > > const&) const cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BignumCalc>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Bignum> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Bignum> > > > const&) const Line | Count | Source | 2370 | 2.79k | typename ExecutorBase<ResultType, OperationType>::ResultSet ExecutorBase<ResultType, OperationType>::filter(const ResultSet& results) const { | 2371 | 2.79k | ResultSet ret; | 2372 | | | 2373 | 11.8k | for (const auto& result : results) { | 2374 | 11.8k | if ( result.second == std::nullopt ) { | 2375 | 7.45k | continue; | 2376 | 7.45k | } | 2377 | | | 2378 | 4.38k | ret.push_back(result); | 2379 | 4.38k | } | 2380 | | | 2381 | 2.79k | return ret; | 2382 | 2.79k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BignumCalc_Fp2>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BignumCalc_Fp12>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Fp12> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Fp12> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_PrivateToPublic>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_PrivateToPublic_G2>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_Signature, cryptofuzz::operation::BLS_Sign>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BLS_Signature> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BLS_Signature> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_Verify>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_BatchSignature, cryptofuzz::operation::BLS_BatchSign>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BLS_BatchSignature> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BLS_BatchSignature> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_BatchVerify>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Aggregate_G1>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Aggregate_G2>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_Pairing>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Fp12> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Fp12> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_MillerLoop>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Fp12> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Fp12> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_FinalExp>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Fp12> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Fp12> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_HashToG1>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_HashToG2>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_MapToG1>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_MapToG2>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG1OnCurve>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG2OnCurve>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_KeyPair, cryptofuzz::operation::BLS_GenerateKeyPair>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BLS_KeyPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BLS_KeyPair> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Decompress_G1>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BLS_Compress_G1>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Bignum> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Bignum> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Decompress_G2>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Compress_G2>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Add>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Mul>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G1_IsEq>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Neg>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Add>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Mul>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G2_IsEq>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Neg>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_MultiExp>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Misc>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::SR25519_Verify>::filter(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&) const |
2383 | | |
2384 | | /* Do not compare ECC_GenerateKeyPair results, because the result can be produced indeterministically */ |
2385 | | template <> |
2386 | 0 | void ExecutorBase<component::ECC_KeyPair, operation::ECC_GenerateKeyPair>::compare(const std::vector< std::pair<std::shared_ptr<Module>, operation::ECC_GenerateKeyPair> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { |
2387 | 0 | (void)operations; |
2388 | 0 | (void)results; |
2389 | 0 | (void)data; |
2390 | 0 | (void)size; |
2391 | 0 | } |
2392 | | |
2393 | | template <class ResultType, class OperationType> |
2394 | 6.64k | bool ExecutorBase<ResultType, OperationType>::dontCompare(const OperationType& operation) const { |
2395 | 6.64k | (void)operation; |
2396 | | |
2397 | 6.64k | return false; |
2398 | 6.64k | } cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Digest>::dontCompare(cryptofuzz::operation::Digest const&) const Line | Count | Source | 2394 | 1.39k | bool ExecutorBase<ResultType, OperationType>::dontCompare(const OperationType& operation) const { | 2395 | 1.39k | (void)operation; | 2396 | | | 2397 | 1.39k | return false; | 2398 | 1.39k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::UMAC>::dontCompare(cryptofuzz::operation::UMAC const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SCRYPT>::dontCompare(cryptofuzz::operation::KDF_SCRYPT const&) const cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_HKDF>::dontCompare(cryptofuzz::operation::KDF_HKDF const&) const Line | Count | Source | 2394 | 26 | bool ExecutorBase<ResultType, OperationType>::dontCompare(const OperationType& operation) const { | 2395 | 26 | (void)operation; | 2396 | | | 2397 | 26 | return false; | 2398 | 26 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_TLS1_PRF>::dontCompare(cryptofuzz::operation::KDF_TLS1_PRF const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF>::dontCompare(cryptofuzz::operation::KDF_PBKDF const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF1>::dontCompare(cryptofuzz::operation::KDF_PBKDF1 const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF2>::dontCompare(cryptofuzz::operation::KDF_PBKDF2 const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_ARGON2>::dontCompare(cryptofuzz::operation::KDF_ARGON2 const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SSH>::dontCompare(cryptofuzz::operation::KDF_SSH const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_X963>::dontCompare(cryptofuzz::operation::KDF_X963 const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_BCRYPT>::dontCompare(cryptofuzz::operation::KDF_BCRYPT const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SP_800_108>::dontCompare(cryptofuzz::operation::KDF_SP_800_108 const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTP>::dontCompare(cryptofuzz::operation::KDF_SRTP const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTCP>::dontCompare(cryptofuzz::operation::KDF_SRTCP const&) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_PrivateToPublic>::dontCompare(cryptofuzz::operation::ECC_PrivateToPublic const&) const Line | Count | Source | 2394 | 840 | bool ExecutorBase<ResultType, OperationType>::dontCompare(const OperationType& operation) const { | 2395 | 840 | (void)operation; | 2396 | | | 2397 | 840 | return false; | 2398 | 840 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_ValidatePubkey>::dontCompare(cryptofuzz::operation::ECC_ValidatePubkey const&) const Line | Count | Source | 2394 | 304 | bool ExecutorBase<ResultType, OperationType>::dontCompare(const OperationType& operation) const { | 2395 | 304 | (void)operation; | 2396 | | | 2397 | 304 | return false; | 2398 | 304 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECC_KeyPair, cryptofuzz::operation::ECC_GenerateKeyPair>::dontCompare(cryptofuzz::operation::ECC_GenerateKeyPair const&) const cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::Schnorr_Sign>::dontCompare(cryptofuzz::operation::Schnorr_Sign const&) const Line | Count | Source | 2394 | 44 | bool ExecutorBase<ResultType, OperationType>::dontCompare(const OperationType& operation) const { | 2395 | 44 | (void)operation; | 2396 | | | 2397 | 44 | return false; | 2398 | 44 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECCSI_Verify>::dontCompare(cryptofuzz::operation::ECCSI_Verify const&) const cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECDSA_Verify>::dontCompare(cryptofuzz::operation::ECDSA_Verify const&) const Line | Count | Source | 2394 | 491 | bool ExecutorBase<ResultType, OperationType>::dontCompare(const OperationType& operation) const { | 2395 | 491 | (void)operation; | 2396 | | | 2397 | 491 | return false; | 2398 | 491 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECGDSA_Verify>::dontCompare(cryptofuzz::operation::ECGDSA_Verify const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECRDSA_Verify>::dontCompare(cryptofuzz::operation::ECRDSA_Verify const&) const cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::Schnorr_Verify>::dontCompare(cryptofuzz::operation::Schnorr_Verify const&) const Line | Count | Source | 2394 | 36 | bool ExecutorBase<ResultType, OperationType>::dontCompare(const OperationType& operation) const { | 2395 | 36 | (void)operation; | 2396 | | | 2397 | 36 | return false; | 2398 | 36 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECDSA_Recover>::dontCompare(cryptofuzz::operation::ECDSA_Recover const&) const Line | Count | Source | 2394 | 1.13k | bool ExecutorBase<ResultType, OperationType>::dontCompare(const OperationType& operation) const { | 2395 | 1.13k | (void)operation; | 2396 | | | 2397 | 1.13k | return false; | 2398 | 1.13k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::DSA_Verify>::dontCompare(cryptofuzz::operation::DSA_Verify const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::DSA_Signature, cryptofuzz::operation::DSA_Sign>::dontCompare(cryptofuzz::operation::DSA_Sign const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::DSA_Parameters, cryptofuzz::operation::DSA_GenerateParameters>::dontCompare(cryptofuzz::operation::DSA_GenerateParameters const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DSA_PrivateToPublic>::dontCompare(cryptofuzz::operation::DSA_PrivateToPublic const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::DSA_GenerateKeyPair>::dontCompare(cryptofuzz::operation::DSA_GenerateKeyPair const&) const cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECDH_Derive>::dontCompare(cryptofuzz::operation::ECDH_Derive const&) const Line | Count | Source | 2394 | 458 | bool ExecutorBase<ResultType, OperationType>::dontCompare(const OperationType& operation) const { | 2395 | 458 | (void)operation; | 2396 | | | 2397 | 458 | return false; | 2398 | 458 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Ciphertext, cryptofuzz::operation::ECIES_Encrypt>::dontCompare(cryptofuzz::operation::ECIES_Encrypt const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECIES_Decrypt>::dontCompare(cryptofuzz::operation::ECIES_Decrypt const&) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Add>::dontCompare(cryptofuzz::operation::ECC_Point_Add const&) const Line | Count | Source | 2394 | 97 | bool ExecutorBase<ResultType, OperationType>::dontCompare(const OperationType& operation) const { | 2395 | 97 | (void)operation; | 2396 | | | 2397 | 97 | return false; | 2398 | 97 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Sub>::dontCompare(cryptofuzz::operation::ECC_Point_Sub const&) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Mul>::dontCompare(cryptofuzz::operation::ECC_Point_Mul const&) const Line | Count | Source | 2394 | 1.64k | bool ExecutorBase<ResultType, OperationType>::dontCompare(const OperationType& operation) const { | 2395 | 1.64k | (void)operation; | 2396 | | | 2397 | 1.64k | return false; | 2398 | 1.64k | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Neg>::dontCompare(cryptofuzz::operation::ECC_Point_Neg const&) const Line | Count | Source | 2394 | 62 | bool ExecutorBase<ResultType, OperationType>::dontCompare(const OperationType& operation) const { | 2395 | 62 | (void)operation; | 2396 | | | 2397 | 62 | return false; | 2398 | 62 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Dbl>::dontCompare(cryptofuzz::operation::ECC_Point_Dbl const&) const Line | Count | Source | 2394 | 109 | bool ExecutorBase<ResultType, OperationType>::dontCompare(const OperationType& operation) const { | 2395 | 109 | (void)operation; | 2396 | | | 2397 | 109 | return false; | 2398 | 109 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_Point_Cmp>::dontCompare(cryptofuzz::operation::ECC_Point_Cmp const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::DH_GenerateKeyPair>::dontCompare(cryptofuzz::operation::DH_GenerateKeyPair const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DH_Derive>::dontCompare(cryptofuzz::operation::DH_Derive const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BignumCalc_Fp2>::dontCompare(cryptofuzz::operation::BignumCalc_Fp2 const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BignumCalc_Fp12>::dontCompare(cryptofuzz::operation::BignumCalc_Fp12 const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_PrivateToPublic>::dontCompare(cryptofuzz::operation::BLS_PrivateToPublic const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_PrivateToPublic_G2>::dontCompare(cryptofuzz::operation::BLS_PrivateToPublic_G2 const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_Signature, cryptofuzz::operation::BLS_Sign>::dontCompare(cryptofuzz::operation::BLS_Sign const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_Verify>::dontCompare(cryptofuzz::operation::BLS_Verify const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_BatchSignature, cryptofuzz::operation::BLS_BatchSign>::dontCompare(cryptofuzz::operation::BLS_BatchSign const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_BatchVerify>::dontCompare(cryptofuzz::operation::BLS_BatchVerify const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Aggregate_G1>::dontCompare(cryptofuzz::operation::BLS_Aggregate_G1 const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Aggregate_G2>::dontCompare(cryptofuzz::operation::BLS_Aggregate_G2 const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_Pairing>::dontCompare(cryptofuzz::operation::BLS_Pairing const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_MillerLoop>::dontCompare(cryptofuzz::operation::BLS_MillerLoop const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_FinalExp>::dontCompare(cryptofuzz::operation::BLS_FinalExp const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_HashToG1>::dontCompare(cryptofuzz::operation::BLS_HashToG1 const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_HashToG2>::dontCompare(cryptofuzz::operation::BLS_HashToG2 const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_MapToG1>::dontCompare(cryptofuzz::operation::BLS_MapToG1 const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_MapToG2>::dontCompare(cryptofuzz::operation::BLS_MapToG2 const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG1OnCurve>::dontCompare(cryptofuzz::operation::BLS_IsG1OnCurve const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG2OnCurve>::dontCompare(cryptofuzz::operation::BLS_IsG2OnCurve const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_KeyPair, cryptofuzz::operation::BLS_GenerateKeyPair>::dontCompare(cryptofuzz::operation::BLS_GenerateKeyPair const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Decompress_G1>::dontCompare(cryptofuzz::operation::BLS_Decompress_G1 const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BLS_Compress_G1>::dontCompare(cryptofuzz::operation::BLS_Compress_G1 const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Decompress_G2>::dontCompare(cryptofuzz::operation::BLS_Decompress_G2 const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Compress_G2>::dontCompare(cryptofuzz::operation::BLS_Compress_G2 const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Add>::dontCompare(cryptofuzz::operation::BLS_G1_Add const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Mul>::dontCompare(cryptofuzz::operation::BLS_G1_Mul const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G1_IsEq>::dontCompare(cryptofuzz::operation::BLS_G1_IsEq const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Neg>::dontCompare(cryptofuzz::operation::BLS_G1_Neg const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Add>::dontCompare(cryptofuzz::operation::BLS_G2_Add const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Mul>::dontCompare(cryptofuzz::operation::BLS_G2_Mul const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G2_IsEq>::dontCompare(cryptofuzz::operation::BLS_G2_IsEq const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Neg>::dontCompare(cryptofuzz::operation::BLS_G2_Neg const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_MultiExp>::dontCompare(cryptofuzz::operation::BLS_G1_MultiExp const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Misc>::dontCompare(cryptofuzz::operation::Misc const&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::SR25519_Verify>::dontCompare(cryptofuzz::operation::SR25519_Verify const&) const |
2399 | | |
2400 | | template <> |
2401 | 1.29k | bool ExecutorBase<component::Bignum, operation::BignumCalc>::dontCompare(const operation::BignumCalc& operation) const { |
2402 | 1.29k | if ( operation.calcOp.Get() == CF_CALCOP("Rand()") ) { return true; } |
2403 | 1.29k | if ( operation.calcOp.Get() == CF_CALCOP("RandMod(A)") ) { return true; } |
2404 | 1.29k | if ( operation.calcOp.Get() == CF_CALCOP("Prime()") ) { return true; } |
2405 | 1.29k | if ( operation.calcOp.Get() == CF_CALCOP("RandRange(A,B)") ) { return true; } |
2406 | | |
2407 | 1.29k | return false; |
2408 | 1.29k | } |
2409 | | |
2410 | | template <> |
2411 | 0 | bool ExecutorBase<component::ECCSI_Signature, operation::ECCSI_Sign>::dontCompare(const operation::ECCSI_Sign& operation) const { |
2412 | 0 | (void)operation; |
2413 | 0 | return true; |
2414 | 0 | } |
2415 | | |
2416 | | template <> |
2417 | 1.18k | bool ExecutorBase<component::ECDSA_Signature, operation::ECDSA_Sign>::dontCompare(const operation::ECDSA_Sign& operation) const { |
2418 | 1.18k | if ( |
2419 | 1.18k | operation.curveType.Get() != CF_ECC_CURVE("ed25519") && |
2420 | 1.18k | operation.curveType.Get() != CF_ECC_CURVE("ed448") ) { |
2421 | 1.18k | if ( operation.UseRandomNonce() ) { |
2422 | | /* Don't compare ECDSA signatures comptued from a randomly generated nonce */ |
2423 | 0 | return true; |
2424 | 0 | } |
2425 | 1.18k | } |
2426 | | |
2427 | 1.18k | return false; |
2428 | 1.18k | } |
2429 | | |
2430 | | template <> |
2431 | 0 | bool ExecutorBase<component::ECGDSA_Signature, operation::ECGDSA_Sign>::dontCompare(const operation::ECGDSA_Sign& operation) const { |
2432 | 0 | if ( |
2433 | 0 | operation.curveType.Get() != CF_ECC_CURVE("ed25519") && |
2434 | 0 | operation.curveType.Get() != CF_ECC_CURVE("ed448") ) { |
2435 | 0 | if ( operation.UseRandomNonce() ) { |
2436 | | /* Don't compare ECGDSA signatures comptued from a randomly generated nonce */ |
2437 | 0 | return true; |
2438 | 0 | } |
2439 | 0 | } |
2440 | | |
2441 | 0 | return false; |
2442 | 0 | } |
2443 | | |
2444 | | template <> |
2445 | 0 | bool ExecutorBase<component::ECRDSA_Signature, operation::ECRDSA_Sign>::dontCompare(const operation::ECRDSA_Sign& operation) const { |
2446 | 0 | if ( |
2447 | 0 | operation.curveType.Get() != CF_ECC_CURVE("ed25519") && |
2448 | 0 | operation.curveType.Get() != CF_ECC_CURVE("ed448") ) { |
2449 | 0 | if ( operation.UseRandomNonce() ) { |
2450 | | /* Don't compare ECRDSA signatures comptued from a randomly generated nonce */ |
2451 | 0 | return true; |
2452 | 0 | } |
2453 | 0 | } |
2454 | | |
2455 | 0 | return false; |
2456 | 0 | } |
2457 | | |
2458 | | /* OpenSSL DES_EDE3_WRAP randomizes the IV, result is different each time */ |
2459 | | template <> |
2460 | 86 | bool ExecutorBase<component::Ciphertext, operation::SymmetricEncrypt>::dontCompare(const operation::SymmetricEncrypt& operation) const { |
2461 | 86 | if ( operation.cipher.cipherType.Get() == CF_CIPHER("DES_EDE3_WRAP") ) { return true; } |
2462 | | |
2463 | 86 | return false; |
2464 | 86 | } |
2465 | | |
2466 | | template <> |
2467 | 66 | bool ExecutorBase<component::Cleartext, operation::SymmetricDecrypt>::dontCompare(const operation::SymmetricDecrypt& operation) const { |
2468 | 66 | if ( operation.cipher.cipherType.Get() == CF_CIPHER("DES_EDE3_WRAP") ) return true; |
2469 | | |
2470 | 66 | return false; |
2471 | 66 | } |
2472 | | |
2473 | | template <> |
2474 | 0 | bool ExecutorBase<component::MAC, operation::CMAC>::dontCompare(const operation::CMAC& operation) const { |
2475 | 0 | if ( operation.cipher.cipherType.Get() == CF_CIPHER("DES_EDE3_WRAP") ) return true; |
2476 | | |
2477 | 0 | return false; |
2478 | 0 | } |
2479 | | |
2480 | | template <> |
2481 | 671 | bool ExecutorBase<component::MAC, operation::HMAC>::dontCompare(const operation::HMAC& operation) const { |
2482 | 671 | if ( operation.cipher.cipherType.Get() == CF_CIPHER("DES_EDE3_WRAP") ) return true; |
2483 | | |
2484 | 669 | return false; |
2485 | 671 | } |
2486 | | |
2487 | | template <class ResultType, class OperationType> |
2488 | 18.3k | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { |
2489 | 18.3k | if ( results.size() < 2 ) { |
2490 | | /* Nothing to compare. Don't even bother filtering. */ |
2491 | 0 | return; |
2492 | 0 | } |
2493 | | |
2494 | 18.3k | const auto filtered = filter(results); |
2495 | | |
2496 | 18.3k | if ( filtered.size() < 2 ) { |
2497 | | /* Nothing to compare */ |
2498 | 8.43k | return; |
2499 | 8.43k | } |
2500 | | |
2501 | 9.94k | if ( dontCompare(operations[0].second) == true ) { |
2502 | 2 | return; |
2503 | 2 | } |
2504 | | |
2505 | 27.2k | for (size_t i = 1; i < filtered.size(); i++) { |
2506 | 17.3k | const std::optional<ResultType>& prev = filtered[i-1].second; |
2507 | 17.3k | const std::optional<ResultType>& cur = filtered[i].second; |
2508 | | |
2509 | 17.3k | const bool equal = *prev == *cur; |
2510 | | |
2511 | 17.3k | if ( !equal ) { |
2512 | | /* Reconstruct operation */ |
2513 | 0 | const auto op = getOp(nullptr, data, size); |
2514 | |
|
2515 | 0 | printf("Difference detected\n\n"); |
2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); |
2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); |
2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); |
2519 | |
|
2520 | 0 | abort( |
2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, |
2522 | 0 | op.Name(), |
2523 | 0 | op.GetAlgorithmString(), |
2524 | 0 | "difference" |
2525 | 0 | ); |
2526 | 0 | } |
2527 | 17.3k | } |
2528 | 9.94k | } cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Digest>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::Digest>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::Digest> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const Line | Count | Source | 2488 | 1.44k | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { | 2489 | 1.44k | if ( results.size() < 2 ) { | 2490 | | /* Nothing to compare. Don't even bother filtering. */ | 2491 | 0 | return; | 2492 | 0 | } | 2493 | | | 2494 | 1.44k | const auto filtered = filter(results); | 2495 | | | 2496 | 1.44k | if ( filtered.size() < 2 ) { | 2497 | | /* Nothing to compare */ | 2498 | 49 | return; | 2499 | 49 | } | 2500 | | | 2501 | 1.39k | if ( dontCompare(operations[0].second) == true ) { | 2502 | 0 | return; | 2503 | 0 | } | 2504 | | | 2505 | 4.13k | for (size_t i = 1; i < filtered.size(); i++) { | 2506 | 2.74k | const std::optional<ResultType>& prev = filtered[i-1].second; | 2507 | 2.74k | const std::optional<ResultType>& cur = filtered[i].second; | 2508 | | | 2509 | 2.74k | const bool equal = *prev == *cur; | 2510 | | | 2511 | 2.74k | if ( !equal ) { | 2512 | | /* Reconstruct operation */ | 2513 | 0 | const auto op = getOp(nullptr, data, size); | 2514 | |
| 2515 | 0 | printf("Difference detected\n\n"); | 2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); | 2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); | 2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); | 2519 | |
| 2520 | 0 | abort( | 2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, | 2522 | 0 | op.Name(), | 2523 | 0 | op.GetAlgorithmString(), | 2524 | 0 | "difference" | 2525 | 0 | ); | 2526 | 0 | } | 2527 | 2.74k | } | 2528 | 1.39k | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::HMAC>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::HMAC>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::HMAC> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const Line | Count | Source | 2488 | 803 | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { | 2489 | 803 | if ( results.size() < 2 ) { | 2490 | | /* Nothing to compare. Don't even bother filtering. */ | 2491 | 0 | return; | 2492 | 0 | } | 2493 | | | 2494 | 803 | const auto filtered = filter(results); | 2495 | | | 2496 | 803 | if ( filtered.size() < 2 ) { | 2497 | | /* Nothing to compare */ | 2498 | 132 | return; | 2499 | 132 | } | 2500 | | | 2501 | 671 | if ( dontCompare(operations[0].second) == true ) { | 2502 | 2 | return; | 2503 | 2 | } | 2504 | | | 2505 | 1.88k | for (size_t i = 1; i < filtered.size(); i++) { | 2506 | 1.21k | const std::optional<ResultType>& prev = filtered[i-1].second; | 2507 | 1.21k | const std::optional<ResultType>& cur = filtered[i].second; | 2508 | | | 2509 | 1.21k | const bool equal = *prev == *cur; | 2510 | | | 2511 | 1.21k | if ( !equal ) { | 2512 | | /* Reconstruct operation */ | 2513 | 0 | const auto op = getOp(nullptr, data, size); | 2514 | |
| 2515 | 0 | printf("Difference detected\n\n"); | 2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); | 2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); | 2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); | 2519 | |
| 2520 | 0 | abort( | 2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, | 2522 | 0 | op.Name(), | 2523 | 0 | op.GetAlgorithmString(), | 2524 | 0 | "difference" | 2525 | 0 | ); | 2526 | 0 | } | 2527 | 1.21k | } | 2528 | 669 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::UMAC>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::UMAC>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::UMAC> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::CMAC>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::CMAC>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::CMAC> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::component::Ciphertext, cryptofuzz::operation::SymmetricEncrypt>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::SymmetricEncrypt>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::SymmetricEncrypt> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Ciphertext> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Ciphertext> > > > const&, unsigned char const*, unsigned long) const Line | Count | Source | 2488 | 552 | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { | 2489 | 552 | if ( results.size() < 2 ) { | 2490 | | /* Nothing to compare. Don't even bother filtering. */ | 2491 | 0 | return; | 2492 | 0 | } | 2493 | | | 2494 | 552 | const auto filtered = filter(results); | 2495 | | | 2496 | 552 | if ( filtered.size() < 2 ) { | 2497 | | /* Nothing to compare */ | 2498 | 466 | return; | 2499 | 466 | } | 2500 | | | 2501 | 86 | if ( dontCompare(operations[0].second) == true ) { | 2502 | 0 | return; | 2503 | 0 | } | 2504 | | | 2505 | 176 | for (size_t i = 1; i < filtered.size(); i++) { | 2506 | 90 | const std::optional<ResultType>& prev = filtered[i-1].second; | 2507 | 90 | const std::optional<ResultType>& cur = filtered[i].second; | 2508 | | | 2509 | 90 | const bool equal = *prev == *cur; | 2510 | | | 2511 | 90 | if ( !equal ) { | 2512 | | /* Reconstruct operation */ | 2513 | 0 | const auto op = getOp(nullptr, data, size); | 2514 | |
| 2515 | 0 | printf("Difference detected\n\n"); | 2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); | 2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); | 2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); | 2519 | |
| 2520 | 0 | abort( | 2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, | 2522 | 0 | op.Name(), | 2523 | 0 | op.GetAlgorithmString(), | 2524 | 0 | "difference" | 2525 | 0 | ); | 2526 | 0 | } | 2527 | 90 | } | 2528 | 86 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::SymmetricDecrypt>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::SymmetricDecrypt>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::SymmetricDecrypt> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const Line | Count | Source | 2488 | 372 | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { | 2489 | 372 | if ( results.size() < 2 ) { | 2490 | | /* Nothing to compare. Don't even bother filtering. */ | 2491 | 0 | return; | 2492 | 0 | } | 2493 | | | 2494 | 372 | const auto filtered = filter(results); | 2495 | | | 2496 | 372 | if ( filtered.size() < 2 ) { | 2497 | | /* Nothing to compare */ | 2498 | 306 | return; | 2499 | 306 | } | 2500 | | | 2501 | 66 | if ( dontCompare(operations[0].second) == true ) { | 2502 | 0 | return; | 2503 | 0 | } | 2504 | | | 2505 | 133 | for (size_t i = 1; i < filtered.size(); i++) { | 2506 | 67 | const std::optional<ResultType>& prev = filtered[i-1].second; | 2507 | 67 | const std::optional<ResultType>& cur = filtered[i].second; | 2508 | | | 2509 | 67 | const bool equal = *prev == *cur; | 2510 | | | 2511 | 67 | if ( !equal ) { | 2512 | | /* Reconstruct operation */ | 2513 | 0 | const auto op = getOp(nullptr, data, size); | 2514 | |
| 2515 | 0 | printf("Difference detected\n\n"); | 2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); | 2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); | 2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); | 2519 | |
| 2520 | 0 | abort( | 2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, | 2522 | 0 | op.Name(), | 2523 | 0 | op.GetAlgorithmString(), | 2524 | 0 | "difference" | 2525 | 0 | ); | 2526 | 0 | } | 2527 | 67 | } | 2528 | 66 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SCRYPT>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_SCRYPT>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_SCRYPT> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_HKDF>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_HKDF>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_HKDF> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const Line | Count | Source | 2488 | 621 | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { | 2489 | 621 | if ( results.size() < 2 ) { | 2490 | | /* Nothing to compare. Don't even bother filtering. */ | 2491 | 0 | return; | 2492 | 0 | } | 2493 | | | 2494 | 621 | const auto filtered = filter(results); | 2495 | | | 2496 | 621 | if ( filtered.size() < 2 ) { | 2497 | | /* Nothing to compare */ | 2498 | 595 | return; | 2499 | 595 | } | 2500 | | | 2501 | 26 | if ( dontCompare(operations[0].second) == true ) { | 2502 | 0 | return; | 2503 | 0 | } | 2504 | | | 2505 | 67 | for (size_t i = 1; i < filtered.size(); i++) { | 2506 | 41 | const std::optional<ResultType>& prev = filtered[i-1].second; | 2507 | 41 | const std::optional<ResultType>& cur = filtered[i].second; | 2508 | | | 2509 | 41 | const bool equal = *prev == *cur; | 2510 | | | 2511 | 41 | if ( !equal ) { | 2512 | | /* Reconstruct operation */ | 2513 | 0 | const auto op = getOp(nullptr, data, size); | 2514 | |
| 2515 | 0 | printf("Difference detected\n\n"); | 2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); | 2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); | 2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); | 2519 | |
| 2520 | 0 | abort( | 2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, | 2522 | 0 | op.Name(), | 2523 | 0 | op.GetAlgorithmString(), | 2524 | 0 | "difference" | 2525 | 0 | ); | 2526 | 0 | } | 2527 | 41 | } | 2528 | 26 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_TLS1_PRF>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_TLS1_PRF>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_TLS1_PRF> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_PBKDF>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_PBKDF> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF1>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_PBKDF1>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_PBKDF1> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF2>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_PBKDF2>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_PBKDF2> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_ARGON2>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_ARGON2>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_ARGON2> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SSH>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_SSH>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_SSH> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_X963>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_X963>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_X963> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_BCRYPT>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_BCRYPT>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_BCRYPT> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SP_800_108>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_SP_800_108>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_SP_800_108> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTP>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_SRTP>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_SRTP> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<std::__1::array<cryptofuzz::Buffer, 3ul> > >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<std::__1::array<cryptofuzz::Buffer, 3ul> > > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTCP>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_SRTCP>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::KDF_SRTCP> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<std::__1::array<cryptofuzz::Buffer, 3ul> > >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<std::__1::array<cryptofuzz::Buffer, 3ul> > > > > const&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_PrivateToPublic>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECC_PrivateToPublic>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECC_PrivateToPublic> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&, unsigned char const*, unsigned long) const Line | Count | Source | 2488 | 1.02k | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { | 2489 | 1.02k | if ( results.size() < 2 ) { | 2490 | | /* Nothing to compare. Don't even bother filtering. */ | 2491 | 0 | return; | 2492 | 0 | } | 2493 | | | 2494 | 1.02k | const auto filtered = filter(results); | 2495 | | | 2496 | 1.02k | if ( filtered.size() < 2 ) { | 2497 | | /* Nothing to compare */ | 2498 | 184 | return; | 2499 | 184 | } | 2500 | | | 2501 | 840 | if ( dontCompare(operations[0].second) == true ) { | 2502 | 0 | return; | 2503 | 0 | } | 2504 | | | 2505 | 2.65k | for (size_t i = 1; i < filtered.size(); i++) { | 2506 | 1.81k | const std::optional<ResultType>& prev = filtered[i-1].second; | 2507 | 1.81k | const std::optional<ResultType>& cur = filtered[i].second; | 2508 | | | 2509 | 1.81k | const bool equal = *prev == *cur; | 2510 | | | 2511 | 1.81k | if ( !equal ) { | 2512 | | /* Reconstruct operation */ | 2513 | 0 | const auto op = getOp(nullptr, data, size); | 2514 | |
| 2515 | 0 | printf("Difference detected\n\n"); | 2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); | 2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); | 2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); | 2519 | |
| 2520 | 0 | abort( | 2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, | 2522 | 0 | op.Name(), | 2523 | 0 | op.GetAlgorithmString(), | 2524 | 0 | "difference" | 2525 | 0 | ); | 2526 | 0 | } | 2527 | 1.81k | } | 2528 | 840 | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_ValidatePubkey>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECC_ValidatePubkey>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECC_ValidatePubkey> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&, unsigned char const*, unsigned long) const Line | Count | Source | 2488 | 370 | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { | 2489 | 370 | if ( results.size() < 2 ) { | 2490 | | /* Nothing to compare. Don't even bother filtering. */ | 2491 | 0 | return; | 2492 | 0 | } | 2493 | | | 2494 | 370 | const auto filtered = filter(results); | 2495 | | | 2496 | 370 | if ( filtered.size() < 2 ) { | 2497 | | /* Nothing to compare */ | 2498 | 66 | return; | 2499 | 66 | } | 2500 | | | 2501 | 304 | if ( dontCompare(operations[0].second) == true ) { | 2502 | 0 | return; | 2503 | 0 | } | 2504 | | | 2505 | 727 | for (size_t i = 1; i < filtered.size(); i++) { | 2506 | 423 | const std::optional<ResultType>& prev = filtered[i-1].second; | 2507 | 423 | const std::optional<ResultType>& cur = filtered[i].second; | 2508 | | | 2509 | 423 | const bool equal = *prev == *cur; | 2510 | | | 2511 | 423 | if ( !equal ) { | 2512 | | /* Reconstruct operation */ | 2513 | 0 | const auto op = getOp(nullptr, data, size); | 2514 | |
| 2515 | 0 | printf("Difference detected\n\n"); | 2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); | 2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); | 2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); | 2519 | |
| 2520 | 0 | abort( | 2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, | 2522 | 0 | op.Name(), | 2523 | 0 | op.GetAlgorithmString(), | 2524 | 0 | "difference" | 2525 | 0 | ); | 2526 | 0 | } | 2527 | 423 | } | 2528 | 304 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECCSI_Signature, cryptofuzz::operation::ECCSI_Sign>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECCSI_Sign>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECCSI_Sign> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECCSI_Signature> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECCSI_Signature> > > > const&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECDSA_Sign>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECDSA_Sign>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECDSA_Sign> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECDSA_Signature> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECDSA_Signature> > > > const&, unsigned char const*, unsigned long) const Line | Count | Source | 2488 | 2.66k | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { | 2489 | 2.66k | if ( results.size() < 2 ) { | 2490 | | /* Nothing to compare. Don't even bother filtering. */ | 2491 | 0 | return; | 2492 | 0 | } | 2493 | | | 2494 | 2.66k | const auto filtered = filter(results); | 2495 | | | 2496 | 2.66k | if ( filtered.size() < 2 ) { | 2497 | | /* Nothing to compare */ | 2498 | 1.48k | return; | 2499 | 1.48k | } | 2500 | | | 2501 | 1.18k | if ( dontCompare(operations[0].second) == true ) { | 2502 | 0 | return; | 2503 | 0 | } | 2504 | | | 2505 | 3.59k | for (size_t i = 1; i < filtered.size(); i++) { | 2506 | 2.40k | const std::optional<ResultType>& prev = filtered[i-1].second; | 2507 | 2.40k | const std::optional<ResultType>& cur = filtered[i].second; | 2508 | | | 2509 | 2.40k | const bool equal = *prev == *cur; | 2510 | | | 2511 | 2.40k | if ( !equal ) { | 2512 | | /* Reconstruct operation */ | 2513 | 0 | const auto op = getOp(nullptr, data, size); | 2514 | |
| 2515 | 0 | printf("Difference detected\n\n"); | 2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); | 2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); | 2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); | 2519 | |
| 2520 | 0 | abort( | 2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, | 2522 | 0 | op.Name(), | 2523 | 0 | op.GetAlgorithmString(), | 2524 | 0 | "difference" | 2525 | 0 | ); | 2526 | 0 | } | 2527 | 2.40k | } | 2528 | 1.18k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECGDSA_Sign>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECGDSA_Sign>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECGDSA_Sign> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECDSA_Signature> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECDSA_Signature> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECRDSA_Sign>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECRDSA_Sign>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECRDSA_Sign> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECDSA_Signature> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECDSA_Signature> > > > const&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::Schnorr_Sign>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::Schnorr_Sign>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::Schnorr_Sign> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECDSA_Signature> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::ECDSA_Signature> > > > const&, unsigned char const*, unsigned long) const Line | Count | Source | 2488 | 1.17k | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { | 2489 | 1.17k | if ( results.size() < 2 ) { | 2490 | | /* Nothing to compare. Don't even bother filtering. */ | 2491 | 0 | return; | 2492 | 0 | } | 2493 | | | 2494 | 1.17k | const auto filtered = filter(results); | 2495 | | | 2496 | 1.17k | if ( filtered.size() < 2 ) { | 2497 | | /* Nothing to compare */ | 2498 | 1.13k | return; | 2499 | 1.13k | } | 2500 | | | 2501 | 44 | if ( dontCompare(operations[0].second) == true ) { | 2502 | 0 | return; | 2503 | 0 | } | 2504 | | | 2505 | 114 | for (size_t i = 1; i < filtered.size(); i++) { | 2506 | 70 | const std::optional<ResultType>& prev = filtered[i-1].second; | 2507 | 70 | const std::optional<ResultType>& cur = filtered[i].second; | 2508 | | | 2509 | 70 | const bool equal = *prev == *cur; | 2510 | | | 2511 | 70 | if ( !equal ) { | 2512 | | /* Reconstruct operation */ | 2513 | 0 | const auto op = getOp(nullptr, data, size); | 2514 | |
| 2515 | 0 | printf("Difference detected\n\n"); | 2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); | 2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); | 2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); | 2519 | |
| 2520 | 0 | abort( | 2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, | 2522 | 0 | op.Name(), | 2523 | 0 | op.GetAlgorithmString(), | 2524 | 0 | "difference" | 2525 | 0 | ); | 2526 | 0 | } | 2527 | 70 | } | 2528 | 44 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECCSI_Verify>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECCSI_Verify>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECCSI_Verify> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECDSA_Verify>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECDSA_Verify>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECDSA_Verify> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&, unsigned char const*, unsigned long) const Line | Count | Source | 2488 | 603 | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { | 2489 | 603 | if ( results.size() < 2 ) { | 2490 | | /* Nothing to compare. Don't even bother filtering. */ | 2491 | 0 | return; | 2492 | 0 | } | 2493 | | | 2494 | 603 | const auto filtered = filter(results); | 2495 | | | 2496 | 603 | if ( filtered.size() < 2 ) { | 2497 | | /* Nothing to compare */ | 2498 | 112 | return; | 2499 | 112 | } | 2500 | | | 2501 | 491 | if ( dontCompare(operations[0].second) == true ) { | 2502 | 0 | return; | 2503 | 0 | } | 2504 | | | 2505 | 1.45k | for (size_t i = 1; i < filtered.size(); i++) { | 2506 | 967 | const std::optional<ResultType>& prev = filtered[i-1].second; | 2507 | 967 | const std::optional<ResultType>& cur = filtered[i].second; | 2508 | | | 2509 | 967 | const bool equal = *prev == *cur; | 2510 | | | 2511 | 967 | if ( !equal ) { | 2512 | | /* Reconstruct operation */ | 2513 | 0 | const auto op = getOp(nullptr, data, size); | 2514 | |
| 2515 | 0 | printf("Difference detected\n\n"); | 2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); | 2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); | 2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); | 2519 | |
| 2520 | 0 | abort( | 2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, | 2522 | 0 | op.Name(), | 2523 | 0 | op.GetAlgorithmString(), | 2524 | 0 | "difference" | 2525 | 0 | ); | 2526 | 0 | } | 2527 | 967 | } | 2528 | 491 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECGDSA_Verify>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECGDSA_Verify>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECGDSA_Verify> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECRDSA_Verify>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECRDSA_Verify>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECRDSA_Verify> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::Schnorr_Verify>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::Schnorr_Verify>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::Schnorr_Verify> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&, unsigned char const*, unsigned long) const Line | Count | Source | 2488 | 584 | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { | 2489 | 584 | if ( results.size() < 2 ) { | 2490 | | /* Nothing to compare. Don't even bother filtering. */ | 2491 | 0 | return; | 2492 | 0 | } | 2493 | | | 2494 | 584 | const auto filtered = filter(results); | 2495 | | | 2496 | 584 | if ( filtered.size() < 2 ) { | 2497 | | /* Nothing to compare */ | 2498 | 548 | return; | 2499 | 548 | } | 2500 | | | 2501 | 36 | if ( dontCompare(operations[0].second) == true ) { | 2502 | 0 | return; | 2503 | 0 | } | 2504 | | | 2505 | 77 | for (size_t i = 1; i < filtered.size(); i++) { | 2506 | 41 | const std::optional<ResultType>& prev = filtered[i-1].second; | 2507 | 41 | const std::optional<ResultType>& cur = filtered[i].second; | 2508 | | | 2509 | 41 | const bool equal = *prev == *cur; | 2510 | | | 2511 | 41 | if ( !equal ) { | 2512 | | /* Reconstruct operation */ | 2513 | 0 | const auto op = getOp(nullptr, data, size); | 2514 | |
| 2515 | 0 | printf("Difference detected\n\n"); | 2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); | 2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); | 2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); | 2519 | |
| 2520 | 0 | abort( | 2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, | 2522 | 0 | op.Name(), | 2523 | 0 | op.GetAlgorithmString(), | 2524 | 0 | "difference" | 2525 | 0 | ); | 2526 | 0 | } | 2527 | 41 | } | 2528 | 36 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECDSA_Recover>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECDSA_Recover>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECDSA_Recover> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&, unsigned char const*, unsigned long) const Line | Count | Source | 2488 | 1.77k | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { | 2489 | 1.77k | if ( results.size() < 2 ) { | 2490 | | /* Nothing to compare. Don't even bother filtering. */ | 2491 | 0 | return; | 2492 | 0 | } | 2493 | | | 2494 | 1.77k | const auto filtered = filter(results); | 2495 | | | 2496 | 1.77k | if ( filtered.size() < 2 ) { | 2497 | | /* Nothing to compare */ | 2498 | 642 | return; | 2499 | 642 | } | 2500 | | | 2501 | 1.13k | if ( dontCompare(operations[0].second) == true ) { | 2502 | 0 | return; | 2503 | 0 | } | 2504 | | | 2505 | 2.53k | for (size_t i = 1; i < filtered.size(); i++) { | 2506 | 1.39k | const std::optional<ResultType>& prev = filtered[i-1].second; | 2507 | 1.39k | const std::optional<ResultType>& cur = filtered[i].second; | 2508 | | | 2509 | 1.39k | const bool equal = *prev == *cur; | 2510 | | | 2511 | 1.39k | if ( !equal ) { | 2512 | | /* Reconstruct operation */ | 2513 | 0 | const auto op = getOp(nullptr, data, size); | 2514 | |
| 2515 | 0 | printf("Difference detected\n\n"); | 2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); | 2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); | 2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); | 2519 | |
| 2520 | 0 | abort( | 2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, | 2522 | 0 | op.Name(), | 2523 | 0 | op.GetAlgorithmString(), | 2524 | 0 | "difference" | 2525 | 0 | ); | 2526 | 0 | } | 2527 | 1.39k | } | 2528 | 1.13k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::DSA_Verify>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::DSA_Verify>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::DSA_Verify> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DSA_PrivateToPublic>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::DSA_PrivateToPublic>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::DSA_PrivateToPublic> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Bignum> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Bignum> > > > const&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECDH_Derive>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECDH_Derive>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECDH_Derive> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const Line | Count | Source | 2488 | 650 | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { | 2489 | 650 | if ( results.size() < 2 ) { | 2490 | | /* Nothing to compare. Don't even bother filtering. */ | 2491 | 0 | return; | 2492 | 0 | } | 2493 | | | 2494 | 650 | const auto filtered = filter(results); | 2495 | | | 2496 | 650 | if ( filtered.size() < 2 ) { | 2497 | | /* Nothing to compare */ | 2498 | 192 | return; | 2499 | 192 | } | 2500 | | | 2501 | 458 | if ( dontCompare(operations[0].second) == true ) { | 2502 | 0 | return; | 2503 | 0 | } | 2504 | | | 2505 | 943 | for (size_t i = 1; i < filtered.size(); i++) { | 2506 | 485 | const std::optional<ResultType>& prev = filtered[i-1].second; | 2507 | 485 | const std::optional<ResultType>& cur = filtered[i].second; | 2508 | | | 2509 | 485 | const bool equal = *prev == *cur; | 2510 | | | 2511 | 485 | if ( !equal ) { | 2512 | | /* Reconstruct operation */ | 2513 | 0 | const auto op = getOp(nullptr, data, size); | 2514 | |
| 2515 | 0 | printf("Difference detected\n\n"); | 2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); | 2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); | 2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); | 2519 | |
| 2520 | 0 | abort( | 2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, | 2522 | 0 | op.Name(), | 2523 | 0 | op.GetAlgorithmString(), | 2524 | 0 | "difference" | 2525 | 0 | ); | 2526 | 0 | } | 2527 | 485 | } | 2528 | 458 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECIES_Decrypt>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECIES_Decrypt>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECIES_Decrypt> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Add>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECC_Point_Add>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECC_Point_Add> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&, unsigned char const*, unsigned long) const Line | Count | Source | 2488 | 354 | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { | 2489 | 354 | if ( results.size() < 2 ) { | 2490 | | /* Nothing to compare. Don't even bother filtering. */ | 2491 | 0 | return; | 2492 | 0 | } | 2493 | | | 2494 | 354 | const auto filtered = filter(results); | 2495 | | | 2496 | 354 | if ( filtered.size() < 2 ) { | 2497 | | /* Nothing to compare */ | 2498 | 257 | return; | 2499 | 257 | } | 2500 | | | 2501 | 97 | if ( dontCompare(operations[0].second) == true ) { | 2502 | 0 | return; | 2503 | 0 | } | 2504 | | | 2505 | 298 | for (size_t i = 1; i < filtered.size(); i++) { | 2506 | 201 | const std::optional<ResultType>& prev = filtered[i-1].second; | 2507 | 201 | const std::optional<ResultType>& cur = filtered[i].second; | 2508 | | | 2509 | 201 | const bool equal = *prev == *cur; | 2510 | | | 2511 | 201 | if ( !equal ) { | 2512 | | /* Reconstruct operation */ | 2513 | 0 | const auto op = getOp(nullptr, data, size); | 2514 | |
| 2515 | 0 | printf("Difference detected\n\n"); | 2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); | 2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); | 2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); | 2519 | |
| 2520 | 0 | abort( | 2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, | 2522 | 0 | op.Name(), | 2523 | 0 | op.GetAlgorithmString(), | 2524 | 0 | "difference" | 2525 | 0 | ); | 2526 | 0 | } | 2527 | 201 | } | 2528 | 97 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Sub>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECC_Point_Sub>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECC_Point_Sub> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Mul>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECC_Point_Mul>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECC_Point_Mul> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&, unsigned char const*, unsigned long) const Line | Count | Source | 2488 | 1.93k | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { | 2489 | 1.93k | if ( results.size() < 2 ) { | 2490 | | /* Nothing to compare. Don't even bother filtering. */ | 2491 | 0 | return; | 2492 | 0 | } | 2493 | | | 2494 | 1.93k | const auto filtered = filter(results); | 2495 | | | 2496 | 1.93k | if ( filtered.size() < 2 ) { | 2497 | | /* Nothing to compare */ | 2498 | 286 | return; | 2499 | 286 | } | 2500 | | | 2501 | 1.64k | if ( dontCompare(operations[0].second) == true ) { | 2502 | 0 | return; | 2503 | 0 | } | 2504 | | | 2505 | 5.06k | for (size_t i = 1; i < filtered.size(); i++) { | 2506 | 3.42k | const std::optional<ResultType>& prev = filtered[i-1].second; | 2507 | 3.42k | const std::optional<ResultType>& cur = filtered[i].second; | 2508 | | | 2509 | 3.42k | const bool equal = *prev == *cur; | 2510 | | | 2511 | 3.42k | if ( !equal ) { | 2512 | | /* Reconstruct operation */ | 2513 | 0 | const auto op = getOp(nullptr, data, size); | 2514 | |
| 2515 | 0 | printf("Difference detected\n\n"); | 2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); | 2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); | 2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); | 2519 | |
| 2520 | 0 | abort( | 2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, | 2522 | 0 | op.Name(), | 2523 | 0 | op.GetAlgorithmString(), | 2524 | 0 | "difference" | 2525 | 0 | ); | 2526 | 0 | } | 2527 | 3.42k | } | 2528 | 1.64k | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Neg>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECC_Point_Neg>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECC_Point_Neg> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&, unsigned char const*, unsigned long) const Line | Count | Source | 2488 | 261 | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { | 2489 | 261 | if ( results.size() < 2 ) { | 2490 | | /* Nothing to compare. Don't even bother filtering. */ | 2491 | 0 | return; | 2492 | 0 | } | 2493 | | | 2494 | 261 | const auto filtered = filter(results); | 2495 | | | 2496 | 261 | if ( filtered.size() < 2 ) { | 2497 | | /* Nothing to compare */ | 2498 | 199 | return; | 2499 | 199 | } | 2500 | | | 2501 | 62 | if ( dontCompare(operations[0].second) == true ) { | 2502 | 0 | return; | 2503 | 0 | } | 2504 | | | 2505 | 141 | for (size_t i = 1; i < filtered.size(); i++) { | 2506 | 79 | const std::optional<ResultType>& prev = filtered[i-1].second; | 2507 | 79 | const std::optional<ResultType>& cur = filtered[i].second; | 2508 | | | 2509 | 79 | const bool equal = *prev == *cur; | 2510 | | | 2511 | 79 | if ( !equal ) { | 2512 | | /* Reconstruct operation */ | 2513 | 0 | const auto op = getOp(nullptr, data, size); | 2514 | |
| 2515 | 0 | printf("Difference detected\n\n"); | 2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); | 2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); | 2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); | 2519 | |
| 2520 | 0 | abort( | 2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, | 2522 | 0 | op.Name(), | 2523 | 0 | op.GetAlgorithmString(), | 2524 | 0 | "difference" | 2525 | 0 | ); | 2526 | 0 | } | 2527 | 79 | } | 2528 | 62 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Dbl>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECC_Point_Dbl>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECC_Point_Dbl> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&, unsigned char const*, unsigned long) const Line | Count | Source | 2488 | 396 | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { | 2489 | 396 | if ( results.size() < 2 ) { | 2490 | | /* Nothing to compare. Don't even bother filtering. */ | 2491 | 0 | return; | 2492 | 0 | } | 2493 | | | 2494 | 396 | const auto filtered = filter(results); | 2495 | | | 2496 | 396 | if ( filtered.size() < 2 ) { | 2497 | | /* Nothing to compare */ | 2498 | 287 | return; | 2499 | 287 | } | 2500 | | | 2501 | 109 | if ( dontCompare(operations[0].second) == true ) { | 2502 | 0 | return; | 2503 | 0 | } | 2504 | | | 2505 | 341 | for (size_t i = 1; i < filtered.size(); i++) { | 2506 | 232 | const std::optional<ResultType>& prev = filtered[i-1].second; | 2507 | 232 | const std::optional<ResultType>& cur = filtered[i].second; | 2508 | | | 2509 | 232 | const bool equal = *prev == *cur; | 2510 | | | 2511 | 232 | if ( !equal ) { | 2512 | | /* Reconstruct operation */ | 2513 | 0 | const auto op = getOp(nullptr, data, size); | 2514 | |
| 2515 | 0 | printf("Difference detected\n\n"); | 2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); | 2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); | 2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); | 2519 | |
| 2520 | 0 | abort( | 2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, | 2522 | 0 | op.Name(), | 2523 | 0 | op.GetAlgorithmString(), | 2524 | 0 | "difference" | 2525 | 0 | ); | 2526 | 0 | } | 2527 | 232 | } | 2528 | 109 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_Point_Cmp>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECC_Point_Cmp>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::ECC_Point_Cmp> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DH_Derive>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::DH_Derive>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::DH_Derive> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Bignum> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Bignum> > > > const&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BignumCalc>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BignumCalc>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BignumCalc> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Bignum> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Bignum> > > > const&, unsigned char const*, unsigned long) const Line | Count | Source | 2488 | 2.79k | void ExecutorBase<ResultType, OperationType>::compare(const std::vector< std::pair<std::shared_ptr<Module>, OperationType> >& operations, const ResultSet& results, const uint8_t* data, const size_t size) const { | 2489 | 2.79k | if ( results.size() < 2 ) { | 2490 | | /* Nothing to compare. Don't even bother filtering. */ | 2491 | 0 | return; | 2492 | 0 | } | 2493 | | | 2494 | 2.79k | const auto filtered = filter(results); | 2495 | | | 2496 | 2.79k | if ( filtered.size() < 2 ) { | 2497 | | /* Nothing to compare */ | 2498 | 1.49k | return; | 2499 | 1.49k | } | 2500 | | | 2501 | 1.29k | if ( dontCompare(operations[0].second) == true ) { | 2502 | 0 | return; | 2503 | 0 | } | 2504 | | | 2505 | 2.93k | for (size_t i = 1; i < filtered.size(); i++) { | 2506 | 1.64k | const std::optional<ResultType>& prev = filtered[i-1].second; | 2507 | 1.64k | const std::optional<ResultType>& cur = filtered[i].second; | 2508 | | | 2509 | 1.64k | const bool equal = *prev == *cur; | 2510 | | | 2511 | 1.64k | if ( !equal ) { | 2512 | | /* Reconstruct operation */ | 2513 | 0 | const auto op = getOp(nullptr, data, size); | 2514 | |
| 2515 | 0 | printf("Difference detected\n\n"); | 2516 | 0 | printf("Operation:\n%s\n", op.ToString().c_str()); | 2517 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i-1].first->name.c_str(), util::ToString(*prev).c_str()); | 2518 | 0 | printf("Module %s result:\n\n%s\n\n", filtered[i].first->name.c_str(), util::ToString(*cur).c_str()); | 2519 | |
| 2520 | 0 | abort( | 2521 | 0 | {filtered[i-1].first->name.c_str(), filtered[i].first->name.c_str()}, | 2522 | 0 | op.Name(), | 2523 | 0 | op.GetAlgorithmString(), | 2524 | 0 | "difference" | 2525 | 0 | ); | 2526 | 0 | } | 2527 | 1.64k | } | 2528 | 1.29k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BignumCalc_Fp2>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BignumCalc_Fp2>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BignumCalc_Fp2> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BignumCalc_Fp12>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BignumCalc_Fp12>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BignumCalc_Fp12> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Fp12> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Fp12> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_PrivateToPublic>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_PrivateToPublic>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_PrivateToPublic> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_PrivateToPublic_G2>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_PrivateToPublic_G2>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_PrivateToPublic_G2> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_Signature, cryptofuzz::operation::BLS_Sign>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_Sign>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_Sign> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BLS_Signature> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BLS_Signature> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_Verify>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_Verify>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_Verify> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_BatchSignature, cryptofuzz::operation::BLS_BatchSign>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_BatchSign>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_BatchSign> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BLS_BatchSignature> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BLS_BatchSignature> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_BatchVerify>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_BatchVerify>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_BatchVerify> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Aggregate_G1>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_Aggregate_G1>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_Aggregate_G1> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Aggregate_G2>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_Aggregate_G2>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_Aggregate_G2> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_Pairing>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_Pairing>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_Pairing> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Fp12> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Fp12> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_MillerLoop>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_MillerLoop>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_MillerLoop> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Fp12> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Fp12> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_FinalExp>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_FinalExp>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_FinalExp> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Fp12> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::Fp12> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_HashToG1>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_HashToG1>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_HashToG1> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_HashToG2>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_HashToG2>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_HashToG2> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_MapToG1>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_MapToG1>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_MapToG1> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_MapToG2>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_MapToG2>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_MapToG2> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG1OnCurve>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_IsG1OnCurve>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_IsG1OnCurve> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG2OnCurve>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_IsG2OnCurve>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_IsG2OnCurve> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_KeyPair, cryptofuzz::operation::BLS_GenerateKeyPair>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_GenerateKeyPair>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_GenerateKeyPair> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BLS_KeyPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BLS_KeyPair> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Decompress_G1>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_Decompress_G1>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_Decompress_G1> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BLS_Compress_G1>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_Compress_G1>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_Compress_G1> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Bignum> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Bignum> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Decompress_G2>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_Decompress_G2>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_Decompress_G2> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Compress_G2>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_Compress_G2>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_Compress_G2> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Add>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_G1_Add>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_G1_Add> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Mul>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_G1_Mul>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_G1_Mul> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G1_IsEq>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_G1_IsEq>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_G1_IsEq> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Neg>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_G1_Neg>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_G1_Neg> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Add>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_G2_Add>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_G2_Add> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Mul>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_G2_Mul>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_G2_Mul> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G2_IsEq>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_G2_IsEq>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_G2_IsEq> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Neg>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_G2_Neg>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_G2_Neg> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::G2> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_MultiExp>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_G1_MultiExp>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::BLS_G1_MultiExp> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::component::BignumPair> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Misc>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::Misc>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::Misc> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<cryptofuzz::Buffer> > > > const&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::SR25519_Verify>::compare(std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::SR25519_Verify>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, cryptofuzz::operation::SR25519_Verify> > > const&, std::__1::vector<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> >, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<cryptofuzz::Module>, std::__1::optional<bool> > > > const&, unsigned char const*, unsigned long) const |
2529 | | |
2530 | | template <class ResultType, class OperationType> |
2531 | 0 | void ExecutorBase<ResultType, OperationType>::abort(std::vector<std::string> moduleNames, const std::string operation, const std::string algorithm, const std::string reason) const { |
2532 | 0 | std::sort(moduleNames.begin(), moduleNames.end()); |
2533 | |
|
2534 | 0 | printf("CPU:\n"); |
2535 | 0 | system("cat /proc/cpuinfo | grep '^model name' | head -n1"); |
2536 | 0 | system("cat /proc/cpuinfo | grep '^flags' | head -n1"); |
2537 | |
|
2538 | 0 | printf("Assertion failure: "); |
2539 | 0 | for (const auto& moduleName : moduleNames) { |
2540 | 0 | printf("%s-", moduleName.c_str()); |
2541 | 0 | } |
2542 | 0 | printf("%s-%s-%s\n", operation.c_str(), algorithm.c_str(), reason.c_str()); |
2543 | 0 | fflush(stdout); |
2544 | |
|
2545 | 0 | ::abort(); |
2546 | 0 | } Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Digest>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::HMAC>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::UMAC>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::CMAC>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Ciphertext, cryptofuzz::operation::SymmetricEncrypt>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::SymmetricDecrypt>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SCRYPT>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_HKDF>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_TLS1_PRF>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF1>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF2>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_ARGON2>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SSH>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_X963>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_BCRYPT>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SP_800_108>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTP>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTCP>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_PrivateToPublic>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_ValidatePubkey>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECC_KeyPair, cryptofuzz::operation::ECC_GenerateKeyPair>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECCSI_Signature, cryptofuzz::operation::ECCSI_Sign>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECDSA_Sign>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECGDSA_Sign>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECRDSA_Sign>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::Schnorr_Sign>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECCSI_Verify>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECDSA_Verify>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECGDSA_Verify>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECRDSA_Verify>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::Schnorr_Verify>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECDSA_Recover>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::DSA_Verify>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::DSA_Signature, cryptofuzz::operation::DSA_Sign>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::DSA_Parameters, cryptofuzz::operation::DSA_GenerateParameters>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DSA_PrivateToPublic>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::DSA_GenerateKeyPair>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECDH_Derive>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Ciphertext, cryptofuzz::operation::ECIES_Encrypt>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECIES_Decrypt>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Add>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Sub>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Mul>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Neg>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Dbl>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_Point_Cmp>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::DH_GenerateKeyPair>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DH_Derive>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BignumCalc>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BignumCalc_Fp2>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BignumCalc_Fp12>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_PrivateToPublic>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_PrivateToPublic_G2>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_Signature, cryptofuzz::operation::BLS_Sign>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_Verify>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_BatchSignature, cryptofuzz::operation::BLS_BatchSign>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_BatchVerify>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Aggregate_G1>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Aggregate_G2>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_Pairing>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_MillerLoop>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_FinalExp>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_HashToG1>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_HashToG2>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_MapToG1>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_MapToG2>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG1OnCurve>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG2OnCurve>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_KeyPair, cryptofuzz::operation::BLS_GenerateKeyPair>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Decompress_G1>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BLS_Compress_G1>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Decompress_G2>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Compress_G2>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Add>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Mul>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G1_IsEq>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Neg>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Add>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Mul>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G2_IsEq>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Neg>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_MultiExp>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Misc>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::SR25519_Verify>::abort(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) const |
2547 | | |
2548 | | template <class ResultType, class OperationType> |
2549 | 37.8k | OperationType ExecutorBase<ResultType, OperationType>::getOpPostprocess(Datasource* parentDs, OperationType op) const { |
2550 | 37.8k | (void)parentDs; |
2551 | 37.8k | return op; |
2552 | 37.8k | } cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Digest>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::Digest) const Line | Count | Source | 2549 | 3.01k | OperationType ExecutorBase<ResultType, OperationType>::getOpPostprocess(Datasource* parentDs, OperationType op) const { | 2550 | 3.01k | (void)parentDs; | 2551 | 3.01k | return op; | 2552 | 3.01k | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::HMAC>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::HMAC) const Line | Count | Source | 2549 | 2.03k | OperationType ExecutorBase<ResultType, OperationType>::getOpPostprocess(Datasource* parentDs, OperationType op) const { | 2550 | 2.03k | (void)parentDs; | 2551 | 2.03k | return op; | 2552 | 2.03k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::UMAC>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::UMAC) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::CMAC>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::CMAC) const cryptofuzz::ExecutorBase<cryptofuzz::component::Ciphertext, cryptofuzz::operation::SymmetricEncrypt>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::SymmetricEncrypt) const Line | Count | Source | 2549 | 2.39k | OperationType ExecutorBase<ResultType, OperationType>::getOpPostprocess(Datasource* parentDs, OperationType op) const { | 2550 | 2.39k | (void)parentDs; | 2551 | 2.39k | return op; | 2552 | 2.39k | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::SymmetricDecrypt>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::SymmetricDecrypt) const Line | Count | Source | 2549 | 1.38k | OperationType ExecutorBase<ResultType, OperationType>::getOpPostprocess(Datasource* parentDs, OperationType op) const { | 2550 | 1.38k | (void)parentDs; | 2551 | 1.38k | return op; | 2552 | 1.38k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SCRYPT>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::KDF_SCRYPT) const cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_HKDF>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::KDF_HKDF) const Line | Count | Source | 2549 | 1.62k | OperationType ExecutorBase<ResultType, OperationType>::getOpPostprocess(Datasource* parentDs, OperationType op) const { | 2550 | 1.62k | (void)parentDs; | 2551 | 1.62k | return op; | 2552 | 1.62k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_TLS1_PRF>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::KDF_TLS1_PRF) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::KDF_PBKDF) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF1>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::KDF_PBKDF1) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF2>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::KDF_PBKDF2) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_ARGON2>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::KDF_ARGON2) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SSH>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::KDF_SSH) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_X963>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::KDF_X963) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_BCRYPT>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::KDF_BCRYPT) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SP_800_108>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::KDF_SP_800_108) const Unexecuted instantiation: cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTP>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::KDF_SRTP) const Unexecuted instantiation: cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTCP>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::KDF_SRTCP) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_PrivateToPublic>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECC_PrivateToPublic) const Line | Count | Source | 2549 | 2.45k | OperationType ExecutorBase<ResultType, OperationType>::getOpPostprocess(Datasource* parentDs, OperationType op) const { | 2550 | 2.45k | (void)parentDs; | 2551 | 2.45k | return op; | 2552 | 2.45k | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_ValidatePubkey>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECC_ValidatePubkey) const Line | Count | Source | 2549 | 1.40k | OperationType ExecutorBase<ResultType, OperationType>::getOpPostprocess(Datasource* parentDs, OperationType op) const { | 2550 | 1.40k | (void)parentDs; | 2551 | 1.40k | return op; | 2552 | 1.40k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECC_KeyPair, cryptofuzz::operation::ECC_GenerateKeyPair>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECC_GenerateKeyPair) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECCSI_Signature, cryptofuzz::operation::ECCSI_Sign>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECCSI_Sign) const cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECDSA_Sign>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECDSA_Sign) const Line | Count | Source | 2549 | 4.88k | OperationType ExecutorBase<ResultType, OperationType>::getOpPostprocess(Datasource* parentDs, OperationType op) const { | 2550 | 4.88k | (void)parentDs; | 2551 | 4.88k | return op; | 2552 | 4.88k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECGDSA_Sign>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECGDSA_Sign) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECRDSA_Sign>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECRDSA_Sign) const cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::Schnorr_Sign>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::Schnorr_Sign) const Line | Count | Source | 2549 | 2.46k | OperationType ExecutorBase<ResultType, OperationType>::getOpPostprocess(Datasource* parentDs, OperationType op) const { | 2550 | 2.46k | (void)parentDs; | 2551 | 2.46k | return op; | 2552 | 2.46k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECCSI_Verify>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECCSI_Verify) const cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECDSA_Verify>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECDSA_Verify) const Line | Count | Source | 2549 | 1.85k | OperationType ExecutorBase<ResultType, OperationType>::getOpPostprocess(Datasource* parentDs, OperationType op) const { | 2550 | 1.85k | (void)parentDs; | 2551 | 1.85k | return op; | 2552 | 1.85k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECGDSA_Verify>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECGDSA_Verify) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECRDSA_Verify>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECRDSA_Verify) const cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::Schnorr_Verify>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::Schnorr_Verify) const Line | Count | Source | 2549 | 1.48k | OperationType ExecutorBase<ResultType, OperationType>::getOpPostprocess(Datasource* parentDs, OperationType op) const { | 2550 | 1.48k | (void)parentDs; | 2551 | 1.48k | return op; | 2552 | 1.48k | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECDSA_Recover>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECDSA_Recover) const Line | Count | Source | 2549 | 3.18k | OperationType ExecutorBase<ResultType, OperationType>::getOpPostprocess(Datasource* parentDs, OperationType op) const { | 2550 | 3.18k | (void)parentDs; | 2551 | 3.18k | return op; | 2552 | 3.18k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::DSA_Verify>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::DSA_Verify) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::DSA_Signature, cryptofuzz::operation::DSA_Sign>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::DSA_Sign) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::DSA_Parameters, cryptofuzz::operation::DSA_GenerateParameters>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::DSA_GenerateParameters) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DSA_PrivateToPublic>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::DSA_PrivateToPublic) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::DSA_GenerateKeyPair>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::DSA_GenerateKeyPair) const cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECDH_Derive>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECDH_Derive) const Line | Count | Source | 2549 | 1.83k | OperationType ExecutorBase<ResultType, OperationType>::getOpPostprocess(Datasource* parentDs, OperationType op) const { | 2550 | 1.83k | (void)parentDs; | 2551 | 1.83k | return op; | 2552 | 1.83k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Ciphertext, cryptofuzz::operation::ECIES_Encrypt>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECIES_Encrypt) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECIES_Decrypt>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECIES_Decrypt) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Add>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECC_Point_Add) const Line | Count | Source | 2549 | 1.27k | OperationType ExecutorBase<ResultType, OperationType>::getOpPostprocess(Datasource* parentDs, OperationType op) const { | 2550 | 1.27k | (void)parentDs; | 2551 | 1.27k | return op; | 2552 | 1.27k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Sub>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECC_Point_Sub) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Mul>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECC_Point_Mul) const Line | Count | Source | 2549 | 3.75k | OperationType ExecutorBase<ResultType, OperationType>::getOpPostprocess(Datasource* parentDs, OperationType op) const { | 2550 | 3.75k | (void)parentDs; | 2551 | 3.75k | return op; | 2552 | 3.75k | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Neg>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECC_Point_Neg) const Line | Count | Source | 2549 | 1.29k | OperationType ExecutorBase<ResultType, OperationType>::getOpPostprocess(Datasource* parentDs, OperationType op) const { | 2550 | 1.29k | (void)parentDs; | 2551 | 1.29k | return op; | 2552 | 1.29k | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Dbl>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECC_Point_Dbl) const Line | Count | Source | 2549 | 1.51k | OperationType ExecutorBase<ResultType, OperationType>::getOpPostprocess(Datasource* parentDs, OperationType op) const { | 2550 | 1.51k | (void)parentDs; | 2551 | 1.51k | return op; | 2552 | 1.51k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_Point_Cmp>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::ECC_Point_Cmp) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::DH_GenerateKeyPair>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::DH_GenerateKeyPair) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DH_Derive>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::DH_Derive) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BignumCalc>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BignumCalc) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BignumCalc_Fp2>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BignumCalc_Fp2) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BignumCalc_Fp12>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BignumCalc_Fp12) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_PrivateToPublic>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_PrivateToPublic) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_PrivateToPublic_G2>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_PrivateToPublic_G2) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_Signature, cryptofuzz::operation::BLS_Sign>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_Sign) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_Verify>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_Verify) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_BatchSignature, cryptofuzz::operation::BLS_BatchSign>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_BatchSign) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_BatchVerify>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_BatchVerify) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Aggregate_G1>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_Aggregate_G1) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Aggregate_G2>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_Aggregate_G2) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_Pairing>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_Pairing) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_MillerLoop>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_MillerLoop) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_FinalExp>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_FinalExp) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_HashToG1>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_HashToG1) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_HashToG2>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_HashToG2) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_MapToG1>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_MapToG1) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_MapToG2>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_MapToG2) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG1OnCurve>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_IsG1OnCurve) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG2OnCurve>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_IsG2OnCurve) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_KeyPair, cryptofuzz::operation::BLS_GenerateKeyPair>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_GenerateKeyPair) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Decompress_G1>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_Decompress_G1) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BLS_Compress_G1>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_Compress_G1) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Decompress_G2>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_Decompress_G2) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Compress_G2>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_Compress_G2) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Add>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_G1_Add) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Mul>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_G1_Mul) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G1_IsEq>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_G1_IsEq) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Neg>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_G1_Neg) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Add>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_G2_Add) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Mul>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_G2_Mul) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G2_IsEq>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_G2_IsEq) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Neg>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_G2_Neg) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_MultiExp>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::BLS_G1_MultiExp) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Misc>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::Misc) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::SR25519_Verify>::getOpPostprocess(fuzzing::datasource::Datasource*, cryptofuzz::operation::SR25519_Verify) const |
2553 | | |
2554 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_BLS12_381_R::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2555 | 0 | (void)parentDs; |
2556 | 0 | op.modulo = modulo; |
2557 | 0 | return op; |
2558 | 0 | } |
2559 | | |
2560 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_BLS12_381_P::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2561 | 0 | (void)parentDs; |
2562 | 0 | op.modulo = modulo; |
2563 | 0 | return op; |
2564 | 0 | } |
2565 | | |
2566 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_BLS12_377_R::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2567 | 0 | (void)parentDs; |
2568 | 0 | op.modulo = modulo; |
2569 | 0 | return op; |
2570 | 0 | } |
2571 | | |
2572 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_BLS12_377_P::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2573 | 0 | (void)parentDs; |
2574 | 0 | op.modulo = modulo; |
2575 | 0 | return op; |
2576 | 0 | } |
2577 | | |
2578 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_BN128_R::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2579 | 0 | (void)parentDs; |
2580 | 0 | op.modulo = modulo; |
2581 | 0 | return op; |
2582 | 0 | } |
2583 | | |
2584 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_BN128_P::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2585 | 0 | (void)parentDs; |
2586 | 0 | op.modulo = modulo; |
2587 | 0 | return op; |
2588 | 0 | } |
2589 | | |
2590 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_Vesta_R::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2591 | 0 | (void)parentDs; |
2592 | 0 | op.modulo = modulo; |
2593 | 0 | return op; |
2594 | 0 | } |
2595 | | |
2596 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_Vesta_P::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2597 | 0 | (void)parentDs; |
2598 | 0 | op.modulo = modulo; |
2599 | 0 | return op; |
2600 | 0 | } |
2601 | | |
2602 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_ED25519::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2603 | 0 | (void)parentDs; |
2604 | 0 | op.modulo = modulo; |
2605 | 0 | return op; |
2606 | 0 | } |
2607 | | |
2608 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_Edwards_R::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2609 | 0 | (void)parentDs; |
2610 | 0 | op.modulo = modulo; |
2611 | 0 | return op; |
2612 | 0 | } |
2613 | | |
2614 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_Edwards_P::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2615 | 0 | (void)parentDs; |
2616 | 0 | op.modulo = modulo; |
2617 | 0 | return op; |
2618 | 0 | } |
2619 | | |
2620 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_Goldilocks::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2621 | 0 | (void)parentDs; |
2622 | 0 | op.modulo = modulo; |
2623 | 0 | return op; |
2624 | 0 | } |
2625 | | |
2626 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_MNT4_R::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2627 | 0 | (void)parentDs; |
2628 | 0 | op.modulo = modulo; |
2629 | 0 | return op; |
2630 | 0 | } |
2631 | | |
2632 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_MNT4_P::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2633 | 0 | (void)parentDs; |
2634 | 0 | op.modulo = modulo; |
2635 | 0 | return op; |
2636 | 0 | } |
2637 | | |
2638 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_MNT6_R::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2639 | 0 | (void)parentDs; |
2640 | 0 | op.modulo = modulo; |
2641 | 0 | return op; |
2642 | 0 | } |
2643 | | |
2644 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_MNT6_P::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2645 | 0 | (void)parentDs; |
2646 | 0 | op.modulo = modulo; |
2647 | 0 | return op; |
2648 | 0 | } |
2649 | | |
2650 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_2Exp64::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2651 | 0 | (void)parentDs; |
2652 | 0 | op.modulo = modulo; |
2653 | 0 | return op; |
2654 | 0 | } |
2655 | | |
2656 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_2Exp128::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2657 | 0 | (void)parentDs; |
2658 | 0 | op.modulo = modulo; |
2659 | 0 | return op; |
2660 | 0 | } |
2661 | | |
2662 | 5.55k | operation::BignumCalc ExecutorBignumCalc_Mod_2Exp256::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2663 | 5.55k | (void)parentDs; |
2664 | 5.55k | op.modulo = modulo; |
2665 | 5.55k | return op; |
2666 | 5.55k | } |
2667 | | |
2668 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_2Exp512::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2669 | 0 | (void)parentDs; |
2670 | 0 | op.modulo = modulo; |
2671 | 0 | return op; |
2672 | 0 | } |
2673 | | |
2674 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_SECP256K1::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2675 | 0 | (void)parentDs; |
2676 | 0 | op.modulo = modulo; |
2677 | 0 | return op; |
2678 | 0 | } |
2679 | | |
2680 | 0 | operation::BignumCalc ExecutorBignumCalc_Mod_SECP256K1_P::getOpPostprocess(Datasource* parentDs, operation::BignumCalc op) const { |
2681 | 0 | (void)parentDs; |
2682 | 0 | op.modulo = modulo; |
2683 | 0 | return op; |
2684 | 0 | } |
2685 | | |
2686 | | template <class ResultType, class OperationType> |
2687 | 44.7k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { |
2688 | 44.7k | Datasource ds(data, size); |
2689 | 44.7k | if ( parentDs != nullptr ) { |
2690 | 44.7k | auto modifier = parentDs->GetData(0); |
2691 | 44.7k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); |
2692 | 44.7k | } else { |
2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); |
2694 | 0 | } |
2695 | 44.7k | } cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Digest>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Line | Count | Source | 2687 | 3.09k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { | 2688 | 3.09k | Datasource ds(data, size); | 2689 | 3.09k | if ( parentDs != nullptr ) { | 2690 | 3.09k | auto modifier = parentDs->GetData(0); | 2691 | 3.09k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); | 2692 | 3.09k | } else { | 2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); | 2694 | 0 | } | 2695 | 3.09k | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::HMAC>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Line | Count | Source | 2687 | 2.11k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { | 2688 | 2.11k | Datasource ds(data, size); | 2689 | 2.11k | if ( parentDs != nullptr ) { | 2690 | 2.11k | auto modifier = parentDs->GetData(0); | 2691 | 2.11k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); | 2692 | 2.11k | } else { | 2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); | 2694 | 0 | } | 2695 | 2.11k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::UMAC>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::CMAC>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::component::Ciphertext, cryptofuzz::operation::SymmetricEncrypt>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Line | Count | Source | 2687 | 2.50k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { | 2688 | 2.50k | Datasource ds(data, size); | 2689 | 2.50k | if ( parentDs != nullptr ) { | 2690 | 2.50k | auto modifier = parentDs->GetData(0); | 2691 | 2.50k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); | 2692 | 2.50k | } else { | 2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); | 2694 | 0 | } | 2695 | 2.50k | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::SymmetricDecrypt>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Line | Count | Source | 2687 | 1.47k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { | 2688 | 1.47k | Datasource ds(data, size); | 2689 | 1.47k | if ( parentDs != nullptr ) { | 2690 | 1.47k | auto modifier = parentDs->GetData(0); | 2691 | 1.47k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); | 2692 | 1.47k | } else { | 2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); | 2694 | 0 | } | 2695 | 1.47k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SCRYPT>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_HKDF>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Line | Count | Source | 2687 | 1.69k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { | 2688 | 1.69k | Datasource ds(data, size); | 2689 | 1.69k | if ( parentDs != nullptr ) { | 2690 | 1.69k | auto modifier = parentDs->GetData(0); | 2691 | 1.69k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); | 2692 | 1.69k | } else { | 2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); | 2694 | 0 | } | 2695 | 1.69k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_TLS1_PRF>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF1>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF2>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_ARGON2>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SSH>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_X963>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_BCRYPT>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SP_800_108>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTP>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTCP>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_PrivateToPublic>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Line | Count | Source | 2687 | 2.51k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { | 2688 | 2.51k | Datasource ds(data, size); | 2689 | 2.51k | if ( parentDs != nullptr ) { | 2690 | 2.51k | auto modifier = parentDs->GetData(0); | 2691 | 2.51k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); | 2692 | 2.51k | } else { | 2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); | 2694 | 0 | } | 2695 | 2.51k | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_ValidatePubkey>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Line | Count | Source | 2687 | 1.47k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { | 2688 | 1.47k | Datasource ds(data, size); | 2689 | 1.47k | if ( parentDs != nullptr ) { | 2690 | 1.47k | auto modifier = parentDs->GetData(0); | 2691 | 1.47k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); | 2692 | 1.47k | } else { | 2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); | 2694 | 0 | } | 2695 | 1.47k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECC_KeyPair, cryptofuzz::operation::ECC_GenerateKeyPair>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECCSI_Signature, cryptofuzz::operation::ECCSI_Sign>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECDSA_Sign>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Line | Count | Source | 2687 | 4.95k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { | 2688 | 4.95k | Datasource ds(data, size); | 2689 | 4.95k | if ( parentDs != nullptr ) { | 2690 | 4.95k | auto modifier = parentDs->GetData(0); | 2691 | 4.95k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); | 2692 | 4.95k | } else { | 2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); | 2694 | 0 | } | 2695 | 4.95k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECGDSA_Sign>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECRDSA_Sign>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::Schnorr_Sign>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Line | Count | Source | 2687 | 2.54k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { | 2688 | 2.54k | Datasource ds(data, size); | 2689 | 2.54k | if ( parentDs != nullptr ) { | 2690 | 2.54k | auto modifier = parentDs->GetData(0); | 2691 | 2.54k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); | 2692 | 2.54k | } else { | 2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); | 2694 | 0 | } | 2695 | 2.54k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECCSI_Verify>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECDSA_Verify>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Line | Count | Source | 2687 | 1.94k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { | 2688 | 1.94k | Datasource ds(data, size); | 2689 | 1.94k | if ( parentDs != nullptr ) { | 2690 | 1.94k | auto modifier = parentDs->GetData(0); | 2691 | 1.94k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); | 2692 | 1.94k | } else { | 2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); | 2694 | 0 | } | 2695 | 1.94k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECGDSA_Verify>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECRDSA_Verify>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::Schnorr_Verify>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Line | Count | Source | 2687 | 1.55k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { | 2688 | 1.55k | Datasource ds(data, size); | 2689 | 1.55k | if ( parentDs != nullptr ) { | 2690 | 1.55k | auto modifier = parentDs->GetData(0); | 2691 | 1.55k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); | 2692 | 1.55k | } else { | 2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); | 2694 | 0 | } | 2695 | 1.55k | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECDSA_Recover>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Line | Count | Source | 2687 | 3.22k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { | 2688 | 3.22k | Datasource ds(data, size); | 2689 | 3.22k | if ( parentDs != nullptr ) { | 2690 | 3.22k | auto modifier = parentDs->GetData(0); | 2691 | 3.22k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); | 2692 | 3.22k | } else { | 2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); | 2694 | 0 | } | 2695 | 3.22k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::DSA_Verify>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::DSA_Signature, cryptofuzz::operation::DSA_Sign>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::DSA_Parameters, cryptofuzz::operation::DSA_GenerateParameters>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DSA_PrivateToPublic>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::DSA_GenerateKeyPair>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECDH_Derive>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Line | Count | Source | 2687 | 1.92k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { | 2688 | 1.92k | Datasource ds(data, size); | 2689 | 1.92k | if ( parentDs != nullptr ) { | 2690 | 1.92k | auto modifier = parentDs->GetData(0); | 2691 | 1.92k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); | 2692 | 1.92k | } else { | 2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); | 2694 | 0 | } | 2695 | 1.92k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Ciphertext, cryptofuzz::operation::ECIES_Encrypt>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECIES_Decrypt>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Add>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Line | Count | Source | 2687 | 1.33k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { | 2688 | 1.33k | Datasource ds(data, size); | 2689 | 1.33k | if ( parentDs != nullptr ) { | 2690 | 1.33k | auto modifier = parentDs->GetData(0); | 2691 | 1.33k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); | 2692 | 1.33k | } else { | 2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); | 2694 | 0 | } | 2695 | 1.33k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Sub>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Mul>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Line | Count | Source | 2687 | 3.83k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { | 2688 | 3.83k | Datasource ds(data, size); | 2689 | 3.83k | if ( parentDs != nullptr ) { | 2690 | 3.83k | auto modifier = parentDs->GetData(0); | 2691 | 3.83k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); | 2692 | 3.83k | } else { | 2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); | 2694 | 0 | } | 2695 | 3.83k | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Neg>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Line | Count | Source | 2687 | 1.33k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { | 2688 | 1.33k | Datasource ds(data, size); | 2689 | 1.33k | if ( parentDs != nullptr ) { | 2690 | 1.33k | auto modifier = parentDs->GetData(0); | 2691 | 1.33k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); | 2692 | 1.33k | } else { | 2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); | 2694 | 0 | } | 2695 | 1.33k | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Dbl>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Line | Count | Source | 2687 | 1.59k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { | 2688 | 1.59k | Datasource ds(data, size); | 2689 | 1.59k | if ( parentDs != nullptr ) { | 2690 | 1.59k | auto modifier = parentDs->GetData(0); | 2691 | 1.59k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); | 2692 | 1.59k | } else { | 2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); | 2694 | 0 | } | 2695 | 1.59k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_Point_Cmp>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::DH_GenerateKeyPair>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DH_Derive>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BignumCalc>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Line | Count | Source | 2687 | 5.63k | OperationType ExecutorBase<ResultType, OperationType>::getOp(Datasource* parentDs, const uint8_t* data, const size_t size) const { | 2688 | 5.63k | Datasource ds(data, size); | 2689 | 5.63k | if ( parentDs != nullptr ) { | 2690 | 5.63k | auto modifier = parentDs->GetData(0); | 2691 | 5.63k | return getOpPostprocess(parentDs, std::move( OperationType(ds, component::Modifier(modifier.data(), modifier.size())) ) ); | 2692 | 5.63k | } else { | 2693 | 0 | return std::move( OperationType(ds, component::Modifier(nullptr, 0)) ); | 2694 | 0 | } | 2695 | 5.63k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BignumCalc_Fp2>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BignumCalc_Fp12>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_PrivateToPublic>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_PrivateToPublic_G2>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_Signature, cryptofuzz::operation::BLS_Sign>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_Verify>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_BatchSignature, cryptofuzz::operation::BLS_BatchSign>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_BatchVerify>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Aggregate_G1>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Aggregate_G2>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_Pairing>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_MillerLoop>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_FinalExp>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_HashToG1>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_HashToG2>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_MapToG1>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_MapToG2>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG1OnCurve>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG2OnCurve>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_KeyPair, cryptofuzz::operation::BLS_GenerateKeyPair>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Decompress_G1>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BLS_Compress_G1>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Decompress_G2>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Compress_G2>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Add>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Mul>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G1_IsEq>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Neg>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Add>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Mul>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G2_IsEq>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Neg>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_MultiExp>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Misc>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::SR25519_Verify>::getOp(fuzzing::datasource::Datasource*, unsigned char const*, unsigned long) const |
2696 | | |
2697 | | template <class ResultType, class OperationType> |
2698 | 43.4k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { |
2699 | 43.4k | auto moduleID = ds.Get<uint64_t>(); |
2700 | | |
2701 | | /* Override the extracted module ID with the preferred one, if specified */ |
2702 | 43.4k | if ( options.forceModule != std::nullopt ) { |
2703 | 0 | moduleID = *options.forceModule; |
2704 | 0 | } |
2705 | | |
2706 | | /* Skip if this is a disabled module */ |
2707 | 43.4k | if ( options.disableModules.HaveExplicit(moduleID) ) { |
2708 | 0 | return nullptr; |
2709 | 0 | } |
2710 | | |
2711 | 43.4k | if ( modules.find(moduleID) == modules.end() ) { |
2712 | 18.3k | return nullptr; |
2713 | 18.3k | } |
2714 | | |
2715 | 25.0k | return modules.at(moduleID); |
2716 | 43.4k | } cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Digest>::getModule(fuzzing::datasource::Datasource&) const Line | Count | Source | 2698 | 3.01k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { | 2699 | 3.01k | auto moduleID = ds.Get<uint64_t>(); | 2700 | | | 2701 | | /* Override the extracted module ID with the preferred one, if specified */ | 2702 | 3.01k | if ( options.forceModule != std::nullopt ) { | 2703 | 0 | moduleID = *options.forceModule; | 2704 | 0 | } | 2705 | | | 2706 | | /* Skip if this is a disabled module */ | 2707 | 3.01k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2708 | 0 | return nullptr; | 2709 | 0 | } | 2710 | | | 2711 | 3.01k | if ( modules.find(moduleID) == modules.end() ) { | 2712 | 1.18k | return nullptr; | 2713 | 1.18k | } | 2714 | | | 2715 | 1.83k | return modules.at(moduleID); | 2716 | 3.01k | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::HMAC>::getModule(fuzzing::datasource::Datasource&) const Line | Count | Source | 2698 | 2.03k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { | 2699 | 2.03k | auto moduleID = ds.Get<uint64_t>(); | 2700 | | | 2701 | | /* Override the extracted module ID with the preferred one, if specified */ | 2702 | 2.03k | if ( options.forceModule != std::nullopt ) { | 2703 | 0 | moduleID = *options.forceModule; | 2704 | 0 | } | 2705 | | | 2706 | | /* Skip if this is a disabled module */ | 2707 | 2.03k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2708 | 0 | return nullptr; | 2709 | 0 | } | 2710 | | | 2711 | 2.03k | if ( modules.find(moduleID) == modules.end() ) { | 2712 | 896 | return nullptr; | 2713 | 896 | } | 2714 | | | 2715 | 1.13k | return modules.at(moduleID); | 2716 | 2.03k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::UMAC>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::CMAC>::getModule(fuzzing::datasource::Datasource&) const cryptofuzz::ExecutorBase<cryptofuzz::component::Ciphertext, cryptofuzz::operation::SymmetricEncrypt>::getModule(fuzzing::datasource::Datasource&) const Line | Count | Source | 2698 | 2.39k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { | 2699 | 2.39k | auto moduleID = ds.Get<uint64_t>(); | 2700 | | | 2701 | | /* Override the extracted module ID with the preferred one, if specified */ | 2702 | 2.39k | if ( options.forceModule != std::nullopt ) { | 2703 | 0 | moduleID = *options.forceModule; | 2704 | 0 | } | 2705 | | | 2706 | | /* Skip if this is a disabled module */ | 2707 | 2.39k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2708 | 0 | return nullptr; | 2709 | 0 | } | 2710 | | | 2711 | 2.39k | if ( modules.find(moduleID) == modules.end() ) { | 2712 | 1.46k | return nullptr; | 2713 | 1.46k | } | 2714 | | | 2715 | 933 | return modules.at(moduleID); | 2716 | 2.39k | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::SymmetricDecrypt>::getModule(fuzzing::datasource::Datasource&) const Line | Count | Source | 2698 | 1.38k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { | 2699 | 1.38k | auto moduleID = ds.Get<uint64_t>(); | 2700 | | | 2701 | | /* Override the extracted module ID with the preferred one, if specified */ | 2702 | 1.38k | if ( options.forceModule != std::nullopt ) { | 2703 | 0 | moduleID = *options.forceModule; | 2704 | 0 | } | 2705 | | | 2706 | | /* Skip if this is a disabled module */ | 2707 | 1.38k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2708 | 0 | return nullptr; | 2709 | 0 | } | 2710 | | | 2711 | 1.38k | if ( modules.find(moduleID) == modules.end() ) { | 2712 | 758 | return nullptr; | 2713 | 758 | } | 2714 | | | 2715 | 623 | return modules.at(moduleID); | 2716 | 1.38k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SCRYPT>::getModule(fuzzing::datasource::Datasource&) const cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_HKDF>::getModule(fuzzing::datasource::Datasource&) const Line | Count | Source | 2698 | 1.62k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { | 2699 | 1.62k | auto moduleID = ds.Get<uint64_t>(); | 2700 | | | 2701 | | /* Override the extracted module ID with the preferred one, if specified */ | 2702 | 1.62k | if ( options.forceModule != std::nullopt ) { | 2703 | 0 | moduleID = *options.forceModule; | 2704 | 0 | } | 2705 | | | 2706 | | /* Skip if this is a disabled module */ | 2707 | 1.62k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2708 | 0 | return nullptr; | 2709 | 0 | } | 2710 | | | 2711 | 1.62k | if ( modules.find(moduleID) == modules.end() ) { | 2712 | 766 | return nullptr; | 2713 | 766 | } | 2714 | | | 2715 | 857 | return modules.at(moduleID); | 2716 | 1.62k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_TLS1_PRF>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF1>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF2>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_ARGON2>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SSH>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_X963>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_BCRYPT>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SP_800_108>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTP>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTCP>::getModule(fuzzing::datasource::Datasource&) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_PrivateToPublic>::getModule(fuzzing::datasource::Datasource&) const Line | Count | Source | 2698 | 2.45k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { | 2699 | 2.45k | auto moduleID = ds.Get<uint64_t>(); | 2700 | | | 2701 | | /* Override the extracted module ID with the preferred one, if specified */ | 2702 | 2.45k | if ( options.forceModule != std::nullopt ) { | 2703 | 0 | moduleID = *options.forceModule; | 2704 | 0 | } | 2705 | | | 2706 | | /* Skip if this is a disabled module */ | 2707 | 2.45k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2708 | 0 | return nullptr; | 2709 | 0 | } | 2710 | | | 2711 | 2.45k | if ( modules.find(moduleID) == modules.end() ) { | 2712 | 1.02k | return nullptr; | 2713 | 1.02k | } | 2714 | | | 2715 | 1.43k | return modules.at(moduleID); | 2716 | 2.45k | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_ValidatePubkey>::getModule(fuzzing::datasource::Datasource&) const Line | Count | Source | 2698 | 1.40k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { | 2699 | 1.40k | auto moduleID = ds.Get<uint64_t>(); | 2700 | | | 2701 | | /* Override the extracted module ID with the preferred one, if specified */ | 2702 | 1.40k | if ( options.forceModule != std::nullopt ) { | 2703 | 0 | moduleID = *options.forceModule; | 2704 | 0 | } | 2705 | | | 2706 | | /* Skip if this is a disabled module */ | 2707 | 1.40k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2708 | 0 | return nullptr; | 2709 | 0 | } | 2710 | | | 2711 | 1.40k | if ( modules.find(moduleID) == modules.end() ) { | 2712 | 746 | return nullptr; | 2713 | 746 | } | 2714 | | | 2715 | 657 | return modules.at(moduleID); | 2716 | 1.40k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECC_KeyPair, cryptofuzz::operation::ECC_GenerateKeyPair>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECCSI_Signature, cryptofuzz::operation::ECCSI_Sign>::getModule(fuzzing::datasource::Datasource&) const cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECDSA_Sign>::getModule(fuzzing::datasource::Datasource&) const Line | Count | Source | 2698 | 4.88k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { | 2699 | 4.88k | auto moduleID = ds.Get<uint64_t>(); | 2700 | | | 2701 | | /* Override the extracted module ID with the preferred one, if specified */ | 2702 | 4.88k | if ( options.forceModule != std::nullopt ) { | 2703 | 0 | moduleID = *options.forceModule; | 2704 | 0 | } | 2705 | | | 2706 | | /* Skip if this is a disabled module */ | 2707 | 4.88k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2708 | 0 | return nullptr; | 2709 | 0 | } | 2710 | | | 2711 | 4.88k | if ( modules.find(moduleID) == modules.end() ) { | 2712 | 1.42k | return nullptr; | 2713 | 1.42k | } | 2714 | | | 2715 | 3.45k | return modules.at(moduleID); | 2716 | 4.88k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECGDSA_Sign>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECRDSA_Sign>::getModule(fuzzing::datasource::Datasource&) const cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::Schnorr_Sign>::getModule(fuzzing::datasource::Datasource&) const Line | Count | Source | 2698 | 2.46k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { | 2699 | 2.46k | auto moduleID = ds.Get<uint64_t>(); | 2700 | | | 2701 | | /* Override the extracted module ID with the preferred one, if specified */ | 2702 | 2.46k | if ( options.forceModule != std::nullopt ) { | 2703 | 0 | moduleID = *options.forceModule; | 2704 | 0 | } | 2705 | | | 2706 | | /* Skip if this is a disabled module */ | 2707 | 2.46k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2708 | 0 | return nullptr; | 2709 | 0 | } | 2710 | | | 2711 | 2.46k | if ( modules.find(moduleID) == modules.end() ) { | 2712 | 1.01k | return nullptr; | 2713 | 1.01k | } | 2714 | | | 2715 | 1.45k | return modules.at(moduleID); | 2716 | 2.46k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECCSI_Verify>::getModule(fuzzing::datasource::Datasource&) const cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECDSA_Verify>::getModule(fuzzing::datasource::Datasource&) const Line | Count | Source | 2698 | 1.85k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { | 2699 | 1.85k | auto moduleID = ds.Get<uint64_t>(); | 2700 | | | 2701 | | /* Override the extracted module ID with the preferred one, if specified */ | 2702 | 1.85k | if ( options.forceModule != std::nullopt ) { | 2703 | 0 | moduleID = *options.forceModule; | 2704 | 0 | } | 2705 | | | 2706 | | /* Skip if this is a disabled module */ | 2707 | 1.85k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2708 | 0 | return nullptr; | 2709 | 0 | } | 2710 | | | 2711 | 1.85k | if ( modules.find(moduleID) == modules.end() ) { | 2712 | 947 | return nullptr; | 2713 | 947 | } | 2714 | | | 2715 | 909 | return modules.at(moduleID); | 2716 | 1.85k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECGDSA_Verify>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECRDSA_Verify>::getModule(fuzzing::datasource::Datasource&) const cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::Schnorr_Verify>::getModule(fuzzing::datasource::Datasource&) const Line | Count | Source | 2698 | 1.48k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { | 2699 | 1.48k | auto moduleID = ds.Get<uint64_t>(); | 2700 | | | 2701 | | /* Override the extracted module ID with the preferred one, if specified */ | 2702 | 1.48k | if ( options.forceModule != std::nullopt ) { | 2703 | 0 | moduleID = *options.forceModule; | 2704 | 0 | } | 2705 | | | 2706 | | /* Skip if this is a disabled module */ | 2707 | 1.48k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2708 | 0 | return nullptr; | 2709 | 0 | } | 2710 | | | 2711 | 1.48k | if ( modules.find(moduleID) == modules.end() ) { | 2712 | 680 | return nullptr; | 2713 | 680 | } | 2714 | | | 2715 | 805 | return modules.at(moduleID); | 2716 | 1.48k | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECDSA_Recover>::getModule(fuzzing::datasource::Datasource&) const Line | Count | Source | 2698 | 3.18k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { | 2699 | 3.18k | auto moduleID = ds.Get<uint64_t>(); | 2700 | | | 2701 | | /* Override the extracted module ID with the preferred one, if specified */ | 2702 | 3.18k | if ( options.forceModule != std::nullopt ) { | 2703 | 0 | moduleID = *options.forceModule; | 2704 | 0 | } | 2705 | | | 2706 | | /* Skip if this is a disabled module */ | 2707 | 3.18k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2708 | 0 | return nullptr; | 2709 | 0 | } | 2710 | | | 2711 | 3.18k | if ( modules.find(moduleID) == modules.end() ) { | 2712 | 898 | return nullptr; | 2713 | 898 | } | 2714 | | | 2715 | 2.28k | return modules.at(moduleID); | 2716 | 3.18k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::DSA_Verify>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::DSA_Signature, cryptofuzz::operation::DSA_Sign>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::DSA_Parameters, cryptofuzz::operation::DSA_GenerateParameters>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DSA_PrivateToPublic>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::DSA_GenerateKeyPair>::getModule(fuzzing::datasource::Datasource&) const cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECDH_Derive>::getModule(fuzzing::datasource::Datasource&) const Line | Count | Source | 2698 | 1.83k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { | 2699 | 1.83k | auto moduleID = ds.Get<uint64_t>(); | 2700 | | | 2701 | | /* Override the extracted module ID with the preferred one, if specified */ | 2702 | 1.83k | if ( options.forceModule != std::nullopt ) { | 2703 | 0 | moduleID = *options.forceModule; | 2704 | 0 | } | 2705 | | | 2706 | | /* Skip if this is a disabled module */ | 2707 | 1.83k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2708 | 0 | return nullptr; | 2709 | 0 | } | 2710 | | | 2711 | 1.83k | if ( modules.find(moduleID) == modules.end() ) { | 2712 | 933 | return nullptr; | 2713 | 933 | } | 2714 | | | 2715 | 906 | return modules.at(moduleID); | 2716 | 1.83k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Ciphertext, cryptofuzz::operation::ECIES_Encrypt>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECIES_Decrypt>::getModule(fuzzing::datasource::Datasource&) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Add>::getModule(fuzzing::datasource::Datasource&) const Line | Count | Source | 2698 | 1.27k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { | 2699 | 1.27k | auto moduleID = ds.Get<uint64_t>(); | 2700 | | | 2701 | | /* Override the extracted module ID with the preferred one, if specified */ | 2702 | 1.27k | if ( options.forceModule != std::nullopt ) { | 2703 | 0 | moduleID = *options.forceModule; | 2704 | 0 | } | 2705 | | | 2706 | | /* Skip if this is a disabled module */ | 2707 | 1.27k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2708 | 0 | return nullptr; | 2709 | 0 | } | 2710 | | | 2711 | 1.27k | if ( modules.find(moduleID) == modules.end() ) { | 2712 | 649 | return nullptr; | 2713 | 649 | } | 2714 | | | 2715 | 628 | return modules.at(moduleID); | 2716 | 1.27k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Sub>::getModule(fuzzing::datasource::Datasource&) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Mul>::getModule(fuzzing::datasource::Datasource&) const Line | Count | Source | 2698 | 3.75k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { | 2699 | 3.75k | auto moduleID = ds.Get<uint64_t>(); | 2700 | | | 2701 | | /* Override the extracted module ID with the preferred one, if specified */ | 2702 | 3.75k | if ( options.forceModule != std::nullopt ) { | 2703 | 0 | moduleID = *options.forceModule; | 2704 | 0 | } | 2705 | | | 2706 | | /* Skip if this is a disabled module */ | 2707 | 3.75k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2708 | 0 | return nullptr; | 2709 | 0 | } | 2710 | | | 2711 | 3.75k | if ( modules.find(moduleID) == modules.end() ) { | 2712 | 1.35k | return nullptr; | 2713 | 1.35k | } | 2714 | | | 2715 | 2.40k | return modules.at(moduleID); | 2716 | 3.75k | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Neg>::getModule(fuzzing::datasource::Datasource&) const Line | Count | Source | 2698 | 1.29k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { | 2699 | 1.29k | auto moduleID = ds.Get<uint64_t>(); | 2700 | | | 2701 | | /* Override the extracted module ID with the preferred one, if specified */ | 2702 | 1.29k | if ( options.forceModule != std::nullopt ) { | 2703 | 0 | moduleID = *options.forceModule; | 2704 | 0 | } | 2705 | | | 2706 | | /* Skip if this is a disabled module */ | 2707 | 1.29k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2708 | 0 | return nullptr; | 2709 | 0 | } | 2710 | | | 2711 | 1.29k | if ( modules.find(moduleID) == modules.end() ) { | 2712 | 791 | return nullptr; | 2713 | 791 | } | 2714 | | | 2715 | 499 | return modules.at(moduleID); | 2716 | 1.29k | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Dbl>::getModule(fuzzing::datasource::Datasource&) const Line | Count | Source | 2698 | 1.51k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { | 2699 | 1.51k | auto moduleID = ds.Get<uint64_t>(); | 2700 | | | 2701 | | /* Override the extracted module ID with the preferred one, if specified */ | 2702 | 1.51k | if ( options.forceModule != std::nullopt ) { | 2703 | 0 | moduleID = *options.forceModule; | 2704 | 0 | } | 2705 | | | 2706 | | /* Skip if this is a disabled module */ | 2707 | 1.51k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2708 | 0 | return nullptr; | 2709 | 0 | } | 2710 | | | 2711 | 1.51k | if ( modules.find(moduleID) == modules.end() ) { | 2712 | 825 | return nullptr; | 2713 | 825 | } | 2714 | | | 2715 | 693 | return modules.at(moduleID); | 2716 | 1.51k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_Point_Cmp>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::DH_GenerateKeyPair>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DH_Derive>::getModule(fuzzing::datasource::Datasource&) const cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BignumCalc>::getModule(fuzzing::datasource::Datasource&) const Line | Count | Source | 2698 | 5.55k | std::shared_ptr<Module> ExecutorBase<ResultType, OperationType>::getModule(Datasource& ds) const { | 2699 | 5.55k | auto moduleID = ds.Get<uint64_t>(); | 2700 | | | 2701 | | /* Override the extracted module ID with the preferred one, if specified */ | 2702 | 5.55k | if ( options.forceModule != std::nullopt ) { | 2703 | 0 | moduleID = *options.forceModule; | 2704 | 0 | } | 2705 | | | 2706 | | /* Skip if this is a disabled module */ | 2707 | 5.55k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2708 | 0 | return nullptr; | 2709 | 0 | } | 2710 | | | 2711 | 5.55k | if ( modules.find(moduleID) == modules.end() ) { | 2712 | 1.98k | return nullptr; | 2713 | 1.98k | } | 2714 | | | 2715 | 3.57k | return modules.at(moduleID); | 2716 | 5.55k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BignumCalc_Fp2>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BignumCalc_Fp12>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_PrivateToPublic>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_PrivateToPublic_G2>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_Signature, cryptofuzz::operation::BLS_Sign>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_Verify>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_BatchSignature, cryptofuzz::operation::BLS_BatchSign>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_BatchVerify>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Aggregate_G1>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Aggregate_G2>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_Pairing>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_MillerLoop>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_FinalExp>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_HashToG1>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_HashToG2>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_MapToG1>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_MapToG2>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG1OnCurve>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG2OnCurve>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_KeyPair, cryptofuzz::operation::BLS_GenerateKeyPair>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Decompress_G1>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BLS_Compress_G1>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Decompress_G2>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Compress_G2>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Add>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Mul>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G1_IsEq>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Neg>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Add>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Mul>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G2_IsEq>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Neg>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_MultiExp>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Misc>::getModule(fuzzing::datasource::Datasource&) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::SR25519_Verify>::getModule(fuzzing::datasource::Datasource&) const |
2717 | | |
2718 | | template <class ResultType, class OperationType> |
2719 | 22.7k | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { |
2720 | 22.7k | typename ExecutorBase<ResultType, OperationType>::ResultSet results; |
2721 | | |
2722 | 22.7k | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; |
2723 | | |
2724 | 44.7k | do { |
2725 | 44.7k | auto op = getOp(&parentDs, data, size); |
2726 | 44.7k | auto module = getModule(parentDs); |
2727 | 44.7k | if ( module == nullptr ) { |
2728 | 18.3k | continue; |
2729 | 18.3k | } |
2730 | | |
2731 | 26.4k | operations.push_back( {module, op} ); |
2732 | | |
2733 | | /* Limit number of operations per run to prevent time-outs */ |
2734 | 26.4k | if ( operations.size() == OperationType::MaxOperations() ) { |
2735 | 196 | break; |
2736 | 196 | } |
2737 | 44.5k | } while ( parentDs.Get<bool>() == true ); |
2738 | | |
2739 | 22.7k | if ( operations.empty() == true ) { |
2740 | 2.12k | return; |
2741 | 2.12k | } |
2742 | | |
2743 | | /* Enable this to run every operation on every loaded module */ |
2744 | 20.5k | #if 1 |
2745 | 20.5k | { |
2746 | 20.5k | std::set<uint64_t> moduleIDs; |
2747 | 73.5k | for (const auto& m : modules ) { |
2748 | 73.5k | const auto moduleID = m.first; |
2749 | | |
2750 | | /* Skip if this is a disabled module */ |
2751 | 73.5k | if ( options.disableModules.HaveExplicit(moduleID) ) { |
2752 | 0 | continue; |
2753 | 0 | } |
2754 | | |
2755 | 73.5k | moduleIDs.insert(moduleID); |
2756 | 73.5k | } |
2757 | | |
2758 | 20.5k | std::set<uint64_t> operationModuleIDs; |
2759 | 23.6k | for (const auto& op : operations) { |
2760 | 23.6k | operationModuleIDs.insert(op.first->ID); |
2761 | 23.6k | } |
2762 | | |
2763 | 20.5k | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); |
2764 | 20.5k | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); |
2765 | 20.5k | addModuleIDs.resize(it - addModuleIDs.begin()); |
2766 | | |
2767 | 54.8k | for (const auto& id : addModuleIDs) { |
2768 | 54.8k | operations.push_back({ modules.at(id), operations[0].second}); |
2769 | 54.8k | } |
2770 | 20.5k | } |
2771 | 20.5k | #endif |
2772 | | |
2773 | 20.5k | if ( operations.size() < options.minModules ) { |
2774 | 0 | return; |
2775 | 0 | } |
2776 | | |
2777 | 20.5k | if ( options.debug == true && !operations.empty() ) { |
2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); |
2779 | 0 | } |
2780 | 99.0k | for (size_t i = 0; i < operations.size(); i++) { |
2781 | 78.4k | auto& operation = operations[i]; |
2782 | | |
2783 | 78.4k | auto& module = operation.first; |
2784 | 78.4k | auto& op = operation.second; |
2785 | | |
2786 | 78.4k | if ( i > 0 ) { |
2787 | 60.0k | auto& prevModule = operations[i-1].first; |
2788 | 60.0k | auto& prevOp = operations[i].second; |
2789 | | |
2790 | 60.0k | if ( prevModule == module && prevOp.modifier == op.modifier ) { |
2791 | 4.91k | auto& curModifier = op.modifier.GetVectorPtr(); |
2792 | 4.91k | if ( curModifier.size() == 0 ) { |
2793 | 133k | for (size_t j = 0; j < 512; j++) { |
2794 | 133k | curModifier.push_back(1); |
2795 | 133k | } |
2796 | 4.65k | } else { |
2797 | 1.46M | for (auto& c : curModifier) { |
2798 | 1.46M | c++; |
2799 | 1.46M | } |
2800 | 4.65k | } |
2801 | 4.91k | } |
2802 | 60.0k | } |
2803 | | |
2804 | 78.4k | if ( options.debug == true ) { |
2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); |
2806 | 0 | } |
2807 | | |
2808 | 78.4k | results.push_back( {module, std::move(callModule(module, op))} ); |
2809 | | |
2810 | 78.4k | const auto& result = results.back(); |
2811 | | |
2812 | 78.4k | if ( result.second != std::nullopt ) { |
2813 | 32.9k | if ( options.jsonDumpFP != std::nullopt ) { |
2814 | 0 | nlohmann::json j; |
2815 | 0 | j["operation"] = op.ToJSON(); |
2816 | 0 | j["result"] = util::ToJSON(*result.second); |
2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); |
2818 | 0 | } |
2819 | 32.9k | } |
2820 | | |
2821 | 78.4k | if ( options.debug == true ) { |
2822 | 0 | printf("Module %s result:\n\n%s\n\n", |
2823 | 0 | result.first->name.c_str(), |
2824 | 0 | result.second == std::nullopt ? |
2825 | 0 | "(empty)" : |
2826 | 0 | util::ToString(*result.second).c_str()); |
2827 | 0 | } |
2828 | | |
2829 | 78.4k | if ( options.disableTests == false ) { |
2830 | 78.4k | tests::test(op, result.second); |
2831 | 78.4k | } |
2832 | | |
2833 | 78.4k | postprocess(module, op, result); |
2834 | 78.4k | } |
2835 | | |
2836 | 20.5k | if ( options.noCompare == false ) { |
2837 | 18.3k | compare(operations, results, data, size); |
2838 | 18.3k | } |
2839 | 20.5k | } cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Digest>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Line | Count | Source | 2719 | 1.70k | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { | 2720 | 1.70k | typename ExecutorBase<ResultType, OperationType>::ResultSet results; | 2721 | | | 2722 | 1.70k | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; | 2723 | | | 2724 | 3.09k | do { | 2725 | 3.09k | auto op = getOp(&parentDs, data, size); | 2726 | 3.09k | auto module = getModule(parentDs); | 2727 | 3.09k | if ( module == nullptr ) { | 2728 | 1.18k | continue; | 2729 | 1.18k | } | 2730 | | | 2731 | 1.91k | operations.push_back( {module, op} ); | 2732 | | | 2733 | | /* Limit number of operations per run to prevent time-outs */ | 2734 | 1.91k | if ( operations.size() == OperationType::MaxOperations() ) { | 2735 | 0 | break; | 2736 | 0 | } | 2737 | 3.09k | } while ( parentDs.Get<bool>() == true ); | 2738 | | | 2739 | 1.70k | if ( operations.empty() == true ) { | 2740 | 122 | return; | 2741 | 122 | } | 2742 | | | 2743 | | /* Enable this to run every operation on every loaded module */ | 2744 | 1.58k | #if 1 | 2745 | 1.58k | { | 2746 | 1.58k | std::set<uint64_t> moduleIDs; | 2747 | 5.76k | for (const auto& m : modules ) { | 2748 | 5.76k | const auto moduleID = m.first; | 2749 | | | 2750 | | /* Skip if this is a disabled module */ | 2751 | 5.76k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2752 | 0 | continue; | 2753 | 0 | } | 2754 | | | 2755 | 5.76k | moduleIDs.insert(moduleID); | 2756 | 5.76k | } | 2757 | | | 2758 | 1.58k | std::set<uint64_t> operationModuleIDs; | 2759 | 1.73k | for (const auto& op : operations) { | 2760 | 1.73k | operationModuleIDs.insert(op.first->ID); | 2761 | 1.73k | } | 2762 | | | 2763 | 1.58k | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); | 2764 | 1.58k | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); | 2765 | 1.58k | addModuleIDs.resize(it - addModuleIDs.begin()); | 2766 | | | 2767 | 4.29k | for (const auto& id : addModuleIDs) { | 2768 | 4.29k | operations.push_back({ modules.at(id), operations[0].second}); | 2769 | 4.29k | } | 2770 | 1.58k | } | 2771 | 1.58k | #endif | 2772 | | | 2773 | 1.58k | if ( operations.size() < options.minModules ) { | 2774 | 0 | return; | 2775 | 0 | } | 2776 | | | 2777 | 1.58k | if ( options.debug == true && !operations.empty() ) { | 2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); | 2779 | 0 | } | 2780 | 7.61k | for (size_t i = 0; i < operations.size(); i++) { | 2781 | 6.03k | auto& operation = operations[i]; | 2782 | | | 2783 | 6.03k | auto& module = operation.first; | 2784 | 6.03k | auto& op = operation.second; | 2785 | | | 2786 | 6.03k | if ( i > 0 ) { | 2787 | 4.58k | auto& prevModule = operations[i-1].first; | 2788 | 4.58k | auto& prevOp = operations[i].second; | 2789 | | | 2790 | 4.58k | if ( prevModule == module && prevOp.modifier == op.modifier ) { | 2791 | 262 | auto& curModifier = op.modifier.GetVectorPtr(); | 2792 | 262 | if ( curModifier.size() == 0 ) { | 2793 | 2.05k | for (size_t j = 0; j < 512; j++) { | 2794 | 2.04k | curModifier.push_back(1); | 2795 | 2.04k | } | 2796 | 258 | } else { | 2797 | 129k | for (auto& c : curModifier) { | 2798 | 129k | c++; | 2799 | 129k | } | 2800 | 258 | } | 2801 | 262 | } | 2802 | 4.58k | } | 2803 | | | 2804 | 6.03k | if ( options.debug == true ) { | 2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); | 2806 | 0 | } | 2807 | | | 2808 | 6.03k | results.push_back( {module, std::move(callModule(module, op))} ); | 2809 | | | 2810 | 6.03k | const auto& result = results.back(); | 2811 | | | 2812 | 6.03k | if ( result.second != std::nullopt ) { | 2813 | 4.13k | if ( options.jsonDumpFP != std::nullopt ) { | 2814 | 0 | nlohmann::json j; | 2815 | 0 | j["operation"] = op.ToJSON(); | 2816 | 0 | j["result"] = util::ToJSON(*result.second); | 2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); | 2818 | 0 | } | 2819 | 4.13k | } | 2820 | | | 2821 | 6.03k | if ( options.debug == true ) { | 2822 | 0 | printf("Module %s result:\n\n%s\n\n", | 2823 | 0 | result.first->name.c_str(), | 2824 | 0 | result.second == std::nullopt ? | 2825 | 0 | "(empty)" : | 2826 | 0 | util::ToString(*result.second).c_str()); | 2827 | 0 | } | 2828 | | | 2829 | 6.03k | if ( options.disableTests == false ) { | 2830 | 6.03k | tests::test(op, result.second); | 2831 | 6.03k | } | 2832 | | | 2833 | 6.03k | postprocess(module, op, result); | 2834 | 6.03k | } | 2835 | | | 2836 | 1.58k | if ( options.noCompare == false ) { | 2837 | 1.44k | compare(operations, results, data, size); | 2838 | 1.44k | } | 2839 | 1.58k | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::HMAC>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Line | Count | Source | 2719 | 1.06k | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { | 2720 | 1.06k | typename ExecutorBase<ResultType, OperationType>::ResultSet results; | 2721 | | | 2722 | 1.06k | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; | 2723 | | | 2724 | 2.11k | do { | 2725 | 2.11k | auto op = getOp(&parentDs, data, size); | 2726 | 2.11k | auto module = getModule(parentDs); | 2727 | 2.11k | if ( module == nullptr ) { | 2728 | 896 | continue; | 2729 | 896 | } | 2730 | | | 2731 | 1.21k | operations.push_back( {module, op} ); | 2732 | | | 2733 | | /* Limit number of operations per run to prevent time-outs */ | 2734 | 1.21k | if ( operations.size() == OperationType::MaxOperations() ) { | 2735 | 0 | break; | 2736 | 0 | } | 2737 | 2.11k | } while ( parentDs.Get<bool>() == true ); | 2738 | | | 2739 | 1.06k | if ( operations.empty() == true ) { | 2740 | 128 | return; | 2741 | 128 | } | 2742 | | | 2743 | | /* Enable this to run every operation on every loaded module */ | 2744 | 934 | #if 1 | 2745 | 934 | { | 2746 | 934 | std::set<uint64_t> moduleIDs; | 2747 | 3.22k | for (const auto& m : modules ) { | 2748 | 3.22k | const auto moduleID = m.first; | 2749 | | | 2750 | | /* Skip if this is a disabled module */ | 2751 | 3.22k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2752 | 0 | continue; | 2753 | 0 | } | 2754 | | | 2755 | 3.22k | moduleIDs.insert(moduleID); | 2756 | 3.22k | } | 2757 | | | 2758 | 934 | std::set<uint64_t> operationModuleIDs; | 2759 | 1.04k | for (const auto& op : operations) { | 2760 | 1.04k | operationModuleIDs.insert(op.first->ID); | 2761 | 1.04k | } | 2762 | | | 2763 | 934 | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); | 2764 | 934 | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); | 2765 | 934 | addModuleIDs.resize(it - addModuleIDs.begin()); | 2766 | | | 2767 | 2.41k | for (const auto& id : addModuleIDs) { | 2768 | 2.41k | operations.push_back({ modules.at(id), operations[0].second}); | 2769 | 2.41k | } | 2770 | 934 | } | 2771 | 934 | #endif | 2772 | | | 2773 | 934 | if ( operations.size() < options.minModules ) { | 2774 | 0 | return; | 2775 | 0 | } | 2776 | | | 2777 | 934 | if ( options.debug == true && !operations.empty() ) { | 2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); | 2779 | 0 | } | 2780 | 4.38k | for (size_t i = 0; i < operations.size(); i++) { | 2781 | 3.45k | auto& operation = operations[i]; | 2782 | | | 2783 | 3.45k | auto& module = operation.first; | 2784 | 3.45k | auto& op = operation.second; | 2785 | | | 2786 | 3.45k | if ( i > 0 ) { | 2787 | 2.64k | auto& prevModule = operations[i-1].first; | 2788 | 2.64k | auto& prevOp = operations[i].second; | 2789 | | | 2790 | 2.64k | if ( prevModule == module && prevOp.modifier == op.modifier ) { | 2791 | 230 | auto& curModifier = op.modifier.GetVectorPtr(); | 2792 | 230 | if ( curModifier.size() == 0 ) { | 2793 | 5.13k | for (size_t j = 0; j < 512; j++) { | 2794 | 5.12k | curModifier.push_back(1); | 2795 | 5.12k | } | 2796 | 220 | } else { | 2797 | 93.7k | for (auto& c : curModifier) { | 2798 | 93.7k | c++; | 2799 | 93.7k | } | 2800 | 220 | } | 2801 | 230 | } | 2802 | 2.64k | } | 2803 | | | 2804 | 3.45k | if ( options.debug == true ) { | 2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); | 2806 | 0 | } | 2807 | | | 2808 | 3.45k | results.push_back( {module, std::move(callModule(module, op))} ); | 2809 | | | 2810 | 3.45k | const auto& result = results.back(); | 2811 | | | 2812 | 3.45k | if ( result.second != std::nullopt ) { | 2813 | 1.95k | if ( options.jsonDumpFP != std::nullopt ) { | 2814 | 0 | nlohmann::json j; | 2815 | 0 | j["operation"] = op.ToJSON(); | 2816 | 0 | j["result"] = util::ToJSON(*result.second); | 2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); | 2818 | 0 | } | 2819 | 1.95k | } | 2820 | | | 2821 | 3.45k | if ( options.debug == true ) { | 2822 | 0 | printf("Module %s result:\n\n%s\n\n", | 2823 | 0 | result.first->name.c_str(), | 2824 | 0 | result.second == std::nullopt ? | 2825 | 0 | "(empty)" : | 2826 | 0 | util::ToString(*result.second).c_str()); | 2827 | 0 | } | 2828 | | | 2829 | 3.45k | if ( options.disableTests == false ) { | 2830 | 3.44k | tests::test(op, result.second); | 2831 | 3.44k | } | 2832 | | | 2833 | 3.45k | postprocess(module, op, result); | 2834 | 3.45k | } | 2835 | | | 2836 | 934 | if ( options.noCompare == false ) { | 2837 | 803 | compare(operations, results, data, size); | 2838 | 803 | } | 2839 | 934 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::UMAC>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::CMAC>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::component::Ciphertext, cryptofuzz::operation::SymmetricEncrypt>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Line | Count | Source | 2719 | 863 | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { | 2720 | 863 | typename ExecutorBase<ResultType, OperationType>::ResultSet results; | 2721 | | | 2722 | 863 | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; | 2723 | | | 2724 | 2.50k | do { | 2725 | 2.50k | auto op = getOp(&parentDs, data, size); | 2726 | 2.50k | auto module = getModule(parentDs); | 2727 | 2.50k | if ( module == nullptr ) { | 2728 | 1.46k | continue; | 2729 | 1.46k | } | 2730 | | | 2731 | 1.03k | operations.push_back( {module, op} ); | 2732 | | | 2733 | | /* Limit number of operations per run to prevent time-outs */ | 2734 | 1.03k | if ( operations.size() == OperationType::MaxOperations() ) { | 2735 | 1 | break; | 2736 | 1 | } | 2737 | 2.50k | } while ( parentDs.Get<bool>() == true ); | 2738 | | | 2739 | 863 | if ( operations.empty() == true ) { | 2740 | 147 | return; | 2741 | 147 | } | 2742 | | | 2743 | | /* Enable this to run every operation on every loaded module */ | 2744 | 716 | #if 1 | 2745 | 716 | { | 2746 | 716 | std::set<uint64_t> moduleIDs; | 2747 | 2.20k | for (const auto& m : modules ) { | 2748 | 2.20k | const auto moduleID = m.first; | 2749 | | | 2750 | | /* Skip if this is a disabled module */ | 2751 | 2.20k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2752 | 0 | continue; | 2753 | 0 | } | 2754 | | | 2755 | 2.20k | moduleIDs.insert(moduleID); | 2756 | 2.20k | } | 2757 | | | 2758 | 716 | std::set<uint64_t> operationModuleIDs; | 2759 | 782 | for (const auto& op : operations) { | 2760 | 782 | operationModuleIDs.insert(op.first->ID); | 2761 | 782 | } | 2762 | | | 2763 | 716 | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); | 2764 | 716 | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); | 2765 | 716 | addModuleIDs.resize(it - addModuleIDs.begin()); | 2766 | | | 2767 | 1.64k | for (const auto& id : addModuleIDs) { | 2768 | 1.64k | operations.push_back({ modules.at(id), operations[0].second}); | 2769 | 1.64k | } | 2770 | 716 | } | 2771 | 716 | #endif | 2772 | | | 2773 | 716 | if ( operations.size() < options.minModules ) { | 2774 | 0 | return; | 2775 | 0 | } | 2776 | | | 2777 | 716 | if ( options.debug == true && !operations.empty() ) { | 2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); | 2779 | 0 | } | 2780 | 3.14k | for (size_t i = 0; i < operations.size(); i++) { | 2781 | 2.42k | auto& operation = operations[i]; | 2782 | | | 2783 | 2.42k | auto& module = operation.first; | 2784 | 2.42k | auto& op = operation.second; | 2785 | | | 2786 | 2.42k | if ( i > 0 ) { | 2787 | 1.87k | auto& prevModule = operations[i-1].first; | 2788 | 1.87k | auto& prevOp = operations[i].second; | 2789 | | | 2790 | 1.87k | if ( prevModule == module && prevOp.modifier == op.modifier ) { | 2791 | 217 | auto& curModifier = op.modifier.GetVectorPtr(); | 2792 | 217 | if ( curModifier.size() == 0 ) { | 2793 | 2.56k | for (size_t j = 0; j < 512; j++) { | 2794 | 2.56k | curModifier.push_back(1); | 2795 | 2.56k | } | 2796 | 212 | } else { | 2797 | 58.3k | for (auto& c : curModifier) { | 2798 | 58.3k | c++; | 2799 | 58.3k | } | 2800 | 212 | } | 2801 | 217 | } | 2802 | 1.87k | } | 2803 | | | 2804 | 2.42k | if ( options.debug == true ) { | 2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); | 2806 | 0 | } | 2807 | | | 2808 | 2.42k | results.push_back( {module, std::move(callModule(module, op))} ); | 2809 | | | 2810 | 2.42k | const auto& result = results.back(); | 2811 | | | 2812 | 2.42k | if ( result.second != std::nullopt ) { | 2813 | 389 | if ( options.jsonDumpFP != std::nullopt ) { | 2814 | 0 | nlohmann::json j; | 2815 | 0 | j["operation"] = op.ToJSON(); | 2816 | 0 | j["result"] = util::ToJSON(*result.second); | 2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); | 2818 | 0 | } | 2819 | 389 | } | 2820 | | | 2821 | 2.42k | if ( options.debug == true ) { | 2822 | 0 | printf("Module %s result:\n\n%s\n\n", | 2823 | 0 | result.first->name.c_str(), | 2824 | 0 | result.second == std::nullopt ? | 2825 | 0 | "(empty)" : | 2826 | 0 | util::ToString(*result.second).c_str()); | 2827 | 0 | } | 2828 | | | 2829 | 2.42k | if ( options.disableTests == false ) { | 2830 | 2.42k | tests::test(op, result.second); | 2831 | 2.42k | } | 2832 | | | 2833 | 2.42k | postprocess(module, op, result); | 2834 | 2.42k | } | 2835 | | | 2836 | 716 | if ( options.noCompare == false ) { | 2837 | 552 | compare(operations, results, data, size); | 2838 | 552 | } | 2839 | 716 | } |
cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::SymmetricDecrypt>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Line | Count | Source | 2719 | 632 | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { | 2720 | 632 | typename ExecutorBase<ResultType, OperationType>::ResultSet results; | 2721 | | | 2722 | 632 | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; | 2723 | | | 2724 | 1.47k | do { | 2725 | 1.47k | auto op = getOp(&parentDs, data, size); | 2726 | 1.47k | auto module = getModule(parentDs); | 2727 | 1.47k | if ( module == nullptr ) { | 2728 | 758 | continue; | 2729 | 758 | } | 2730 | | | 2731 | 720 | operations.push_back( {module, op} ); | 2732 | | | 2733 | | /* Limit number of operations per run to prevent time-outs */ | 2734 | 720 | if ( operations.size() == OperationType::MaxOperations() ) { | 2735 | 0 | break; | 2736 | 0 | } | 2737 | 1.47k | } while ( parentDs.Get<bool>() == true ); | 2738 | | | 2739 | 632 | if ( operations.empty() == true ) { | 2740 | 109 | return; | 2741 | 109 | } | 2742 | | | 2743 | | /* Enable this to run every operation on every loaded module */ | 2744 | 523 | #if 1 | 2745 | 523 | { | 2746 | 523 | std::set<uint64_t> moduleIDs; | 2747 | 1.48k | for (const auto& m : modules ) { | 2748 | 1.48k | const auto moduleID = m.first; | 2749 | | | 2750 | | /* Skip if this is a disabled module */ | 2751 | 1.48k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2752 | 0 | continue; | 2753 | 0 | } | 2754 | | | 2755 | 1.48k | moduleIDs.insert(moduleID); | 2756 | 1.48k | } | 2757 | | | 2758 | 523 | std::set<uint64_t> operationModuleIDs; | 2759 | 523 | for (const auto& op : operations) { | 2760 | 500 | operationModuleIDs.insert(op.first->ID); | 2761 | 500 | } | 2762 | | | 2763 | 523 | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); | 2764 | 523 | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); | 2765 | 523 | addModuleIDs.resize(it - addModuleIDs.begin()); | 2766 | | | 2767 | 1.10k | for (const auto& id : addModuleIDs) { | 2768 | 1.10k | operations.push_back({ modules.at(id), operations[0].second}); | 2769 | 1.10k | } | 2770 | 523 | } | 2771 | 523 | #endif | 2772 | | | 2773 | 523 | if ( operations.size() < options.minModules ) { | 2774 | 0 | return; | 2775 | 0 | } | 2776 | | | 2777 | 523 | if ( options.debug == true && !operations.empty() ) { | 2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); | 2779 | 0 | } | 2780 | 2.12k | for (size_t i = 0; i < operations.size(); i++) { | 2781 | 1.60k | auto& operation = operations[i]; | 2782 | | | 2783 | 1.60k | auto& module = operation.first; | 2784 | 1.60k | auto& op = operation.second; | 2785 | | | 2786 | 1.60k | if ( i > 0 ) { | 2787 | 1.23k | auto& prevModule = operations[i-1].first; | 2788 | 1.23k | auto& prevOp = operations[i].second; | 2789 | | | 2790 | 1.23k | if ( prevModule == module && prevOp.modifier == op.modifier ) { | 2791 | 115 | auto& curModifier = op.modifier.GetVectorPtr(); | 2792 | 115 | if ( curModifier.size() == 0 ) { | 2793 | 513 | for (size_t j = 0; j < 512; j++) { | 2794 | 512 | curModifier.push_back(1); | 2795 | 512 | } | 2796 | 114 | } else { | 2797 | 25.1k | for (auto& c : curModifier) { | 2798 | 25.1k | c++; | 2799 | 25.1k | } | 2800 | 114 | } | 2801 | 115 | } | 2802 | 1.23k | } | 2803 | | | 2804 | 1.60k | if ( options.debug == true ) { | 2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); | 2806 | 0 | } | 2807 | | | 2808 | 1.60k | results.push_back( {module, std::move(callModule(module, op))} ); | 2809 | | | 2810 | 1.60k | const auto& result = results.back(); | 2811 | | | 2812 | 1.60k | if ( result.second != std::nullopt ) { | 2813 | 228 | if ( options.jsonDumpFP != std::nullopt ) { | 2814 | 0 | nlohmann::json j; | 2815 | 0 | j["operation"] = op.ToJSON(); | 2816 | 0 | j["result"] = util::ToJSON(*result.second); | 2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); | 2818 | 0 | } | 2819 | 228 | } | 2820 | | | 2821 | 1.60k | if ( options.debug == true ) { | 2822 | 0 | printf("Module %s result:\n\n%s\n\n", | 2823 | 0 | result.first->name.c_str(), | 2824 | 0 | result.second == std::nullopt ? | 2825 | 0 | "(empty)" : | 2826 | 0 | util::ToString(*result.second).c_str()); | 2827 | 0 | } | 2828 | | | 2829 | 1.60k | if ( options.disableTests == false ) { | 2830 | 1.60k | tests::test(op, result.second); | 2831 | 1.60k | } | 2832 | | | 2833 | 1.60k | postprocess(module, op, result); | 2834 | 1.60k | } | 2835 | | | 2836 | 523 | if ( options.noCompare == false ) { | 2837 | 372 | compare(operations, results, data, size); | 2838 | 372 | } | 2839 | 523 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SCRYPT>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_HKDF>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Line | Count | Source | 2719 | 825 | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { | 2720 | 825 | typename ExecutorBase<ResultType, OperationType>::ResultSet results; | 2721 | | | 2722 | 825 | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; | 2723 | | | 2724 | 1.69k | do { | 2725 | 1.69k | auto op = getOp(&parentDs, data, size); | 2726 | 1.69k | auto module = getModule(parentDs); | 2727 | 1.69k | if ( module == nullptr ) { | 2728 | 766 | continue; | 2729 | 766 | } | 2730 | | | 2731 | 929 | operations.push_back( {module, op} ); | 2732 | | | 2733 | | /* Limit number of operations per run to prevent time-outs */ | 2734 | 929 | if ( operations.size() == OperationType::MaxOperations() ) { | 2735 | 0 | break; | 2736 | 0 | } | 2737 | 1.69k | } while ( parentDs.Get<bool>() == true ); | 2738 | | | 2739 | 825 | if ( operations.empty() == true ) { | 2740 | 88 | return; | 2741 | 88 | } | 2742 | | | 2743 | | /* Enable this to run every operation on every loaded module */ | 2744 | 737 | #if 1 | 2745 | 737 | { | 2746 | 737 | std::set<uint64_t> moduleIDs; | 2747 | 2.48k | for (const auto& m : modules ) { | 2748 | 2.48k | const auto moduleID = m.first; | 2749 | | | 2750 | | /* Skip if this is a disabled module */ | 2751 | 2.48k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2752 | 0 | continue; | 2753 | 0 | } | 2754 | | | 2755 | 2.48k | moduleIDs.insert(moduleID); | 2756 | 2.48k | } | 2757 | | | 2758 | 737 | std::set<uint64_t> operationModuleIDs; | 2759 | 789 | for (const auto& op : operations) { | 2760 | 789 | operationModuleIDs.insert(op.first->ID); | 2761 | 789 | } | 2762 | | | 2763 | 737 | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); | 2764 | 737 | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); | 2765 | 737 | addModuleIDs.resize(it - addModuleIDs.begin()); | 2766 | | | 2767 | 1.84k | for (const auto& id : addModuleIDs) { | 2768 | 1.84k | operations.push_back({ modules.at(id), operations[0].second}); | 2769 | 1.84k | } | 2770 | 737 | } | 2771 | 737 | #endif | 2772 | | | 2773 | 737 | if ( operations.size() < options.minModules ) { | 2774 | 0 | return; | 2775 | 0 | } | 2776 | | | 2777 | 737 | if ( options.debug == true && !operations.empty() ) { | 2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); | 2779 | 0 | } | 2780 | 3.37k | for (size_t i = 0; i < operations.size(); i++) { | 2781 | 2.63k | auto& operation = operations[i]; | 2782 | | | 2783 | 2.63k | auto& module = operation.first; | 2784 | 2.63k | auto& op = operation.second; | 2785 | | | 2786 | 2.63k | if ( i > 0 ) { | 2787 | 2.01k | auto& prevModule = operations[i-1].first; | 2788 | 2.01k | auto& prevOp = operations[i].second; | 2789 | | | 2790 | 2.01k | if ( prevModule == module && prevOp.modifier == op.modifier ) { | 2791 | 153 | auto& curModifier = op.modifier.GetVectorPtr(); | 2792 | 153 | if ( curModifier.size() == 0 ) { | 2793 | 18.4k | for (size_t j = 0; j < 512; j++) { | 2794 | 18.4k | curModifier.push_back(1); | 2795 | 18.4k | } | 2796 | 117 | } else { | 2797 | 33.8k | for (auto& c : curModifier) { | 2798 | 33.8k | c++; | 2799 | 33.8k | } | 2800 | 117 | } | 2801 | 153 | } | 2802 | 2.01k | } | 2803 | | | 2804 | 2.63k | if ( options.debug == true ) { | 2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); | 2806 | 0 | } | 2807 | | | 2808 | 2.63k | results.push_back( {module, std::move(callModule(module, op))} ); | 2809 | | | 2810 | 2.63k | const auto& result = results.back(); | 2811 | | | 2812 | 2.63k | if ( result.second != std::nullopt ) { | 2813 | 563 | if ( options.jsonDumpFP != std::nullopt ) { | 2814 | 0 | nlohmann::json j; | 2815 | 0 | j["operation"] = op.ToJSON(); | 2816 | 0 | j["result"] = util::ToJSON(*result.second); | 2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); | 2818 | 0 | } | 2819 | 563 | } | 2820 | | | 2821 | 2.63k | if ( options.debug == true ) { | 2822 | 0 | printf("Module %s result:\n\n%s\n\n", | 2823 | 0 | result.first->name.c_str(), | 2824 | 0 | result.second == std::nullopt ? | 2825 | 0 | "(empty)" : | 2826 | 0 | util::ToString(*result.second).c_str()); | 2827 | 0 | } | 2828 | | | 2829 | 2.63k | if ( options.disableTests == false ) { | 2830 | 2.63k | tests::test(op, result.second); | 2831 | 2.63k | } | 2832 | | | 2833 | 2.63k | postprocess(module, op, result); | 2834 | 2.63k | } | 2835 | | | 2836 | 737 | if ( options.noCompare == false ) { | 2837 | 621 | compare(operations, results, data, size); | 2838 | 621 | } | 2839 | 737 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_TLS1_PRF>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF1>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_PBKDF2>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_ARGON2>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SSH>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_X963>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_BCRYPT>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::KDF_SP_800_108>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTP>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<std::__1::array<cryptofuzz::Buffer, 3ul>, cryptofuzz::operation::KDF_SRTCP>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_PrivateToPublic>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Line | Count | Source | 2719 | 1.31k | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { | 2720 | 1.31k | typename ExecutorBase<ResultType, OperationType>::ResultSet results; | 2721 | | | 2722 | 1.31k | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; | 2723 | | | 2724 | 2.51k | do { | 2725 | 2.51k | auto op = getOp(&parentDs, data, size); | 2726 | 2.51k | auto module = getModule(parentDs); | 2727 | 2.51k | if ( module == nullptr ) { | 2728 | 1.02k | continue; | 2729 | 1.02k | } | 2730 | | | 2731 | 1.49k | operations.push_back( {module, op} ); | 2732 | | | 2733 | | /* Limit number of operations per run to prevent time-outs */ | 2734 | 1.49k | if ( operations.size() == OperationType::MaxOperations() ) { | 2735 | 18 | break; | 2736 | 18 | } | 2737 | 2.49k | } while ( parentDs.Get<bool>() == true ); | 2738 | | | 2739 | 1.31k | if ( operations.empty() == true ) { | 2740 | 122 | return; | 2741 | 122 | } | 2742 | | | 2743 | | /* Enable this to run every operation on every loaded module */ | 2744 | 1.19k | #if 1 | 2745 | 1.19k | { | 2746 | 1.19k | std::set<uint64_t> moduleIDs; | 2747 | 4.09k | for (const auto& m : modules ) { | 2748 | 4.09k | const auto moduleID = m.first; | 2749 | | | 2750 | | /* Skip if this is a disabled module */ | 2751 | 4.09k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2752 | 0 | continue; | 2753 | 0 | } | 2754 | | | 2755 | 4.09k | moduleIDs.insert(moduleID); | 2756 | 4.09k | } | 2757 | | | 2758 | 1.19k | std::set<uint64_t> operationModuleIDs; | 2759 | 1.31k | for (const auto& op : operations) { | 2760 | 1.31k | operationModuleIDs.insert(op.first->ID); | 2761 | 1.31k | } | 2762 | | | 2763 | 1.19k | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); | 2764 | 1.19k | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); | 2765 | 1.19k | addModuleIDs.resize(it - addModuleIDs.begin()); | 2766 | | | 2767 | 3.04k | for (const auto& id : addModuleIDs) { | 2768 | 3.04k | operations.push_back({ modules.at(id), operations[0].second}); | 2769 | 3.04k | } | 2770 | 1.19k | } | 2771 | 1.19k | #endif | 2772 | | | 2773 | 1.19k | if ( operations.size() < options.minModules ) { | 2774 | 0 | return; | 2775 | 0 | } | 2776 | | | 2777 | 1.19k | if ( options.debug == true && !operations.empty() ) { | 2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); | 2779 | 0 | } | 2780 | 5.54k | for (size_t i = 0; i < operations.size(); i++) { | 2781 | 4.35k | auto& operation = operations[i]; | 2782 | | | 2783 | 4.35k | auto& module = operation.first; | 2784 | 4.35k | auto& op = operation.second; | 2785 | | | 2786 | 4.35k | if ( i > 0 ) { | 2787 | 3.33k | auto& prevModule = operations[i-1].first; | 2788 | 3.33k | auto& prevOp = operations[i].second; | 2789 | | | 2790 | 3.33k | if ( prevModule == module && prevOp.modifier == op.modifier ) { | 2791 | 259 | auto& curModifier = op.modifier.GetVectorPtr(); | 2792 | 259 | if ( curModifier.size() == 0 ) { | 2793 | 10.7k | for (size_t j = 0; j < 512; j++) { | 2794 | 10.7k | curModifier.push_back(1); | 2795 | 10.7k | } | 2796 | 238 | } else { | 2797 | 25.8k | for (auto& c : curModifier) { | 2798 | 25.8k | c++; | 2799 | 25.8k | } | 2800 | 238 | } | 2801 | 259 | } | 2802 | 3.33k | } | 2803 | | | 2804 | 4.35k | if ( options.debug == true ) { | 2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); | 2806 | 0 | } | 2807 | | | 2808 | 4.35k | results.push_back( {module, std::move(callModule(module, op))} ); | 2809 | | | 2810 | 4.35k | const auto& result = results.back(); | 2811 | | | 2812 | 4.35k | if ( result.second != std::nullopt ) { | 2813 | 2.65k | if ( options.jsonDumpFP != std::nullopt ) { | 2814 | 0 | nlohmann::json j; | 2815 | 0 | j["operation"] = op.ToJSON(); | 2816 | 0 | j["result"] = util::ToJSON(*result.second); | 2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); | 2818 | 0 | } | 2819 | 2.65k | } | 2820 | | | 2821 | 4.35k | if ( options.debug == true ) { | 2822 | 0 | printf("Module %s result:\n\n%s\n\n", | 2823 | 0 | result.first->name.c_str(), | 2824 | 0 | result.second == std::nullopt ? | 2825 | 0 | "(empty)" : | 2826 | 0 | util::ToString(*result.second).c_str()); | 2827 | 0 | } | 2828 | | | 2829 | 4.35k | if ( options.disableTests == false ) { | 2830 | 4.35k | tests::test(op, result.second); | 2831 | 4.35k | } | 2832 | | | 2833 | 4.35k | postprocess(module, op, result); | 2834 | 4.35k | } | 2835 | | | 2836 | 1.19k | if ( options.noCompare == false ) { | 2837 | 1.02k | compare(operations, results, data, size); | 2838 | 1.02k | } | 2839 | 1.19k | } |
cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_ValidatePubkey>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Line | Count | Source | 2719 | 626 | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { | 2720 | 626 | typename ExecutorBase<ResultType, OperationType>::ResultSet results; | 2721 | | | 2722 | 626 | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; | 2723 | | | 2724 | 1.47k | do { | 2725 | 1.47k | auto op = getOp(&parentDs, data, size); | 2726 | 1.47k | auto module = getModule(parentDs); | 2727 | 1.47k | if ( module == nullptr ) { | 2728 | 746 | continue; | 2729 | 746 | } | 2730 | | | 2731 | 724 | operations.push_back( {module, op} ); | 2732 | | | 2733 | | /* Limit number of operations per run to prevent time-outs */ | 2734 | 724 | if ( operations.size() == OperationType::MaxOperations() ) { | 2735 | 12 | break; | 2736 | 12 | } | 2737 | 1.45k | } while ( parentDs.Get<bool>() == true ); | 2738 | | | 2739 | 626 | if ( operations.empty() == true ) { | 2740 | 123 | return; | 2741 | 123 | } | 2742 | | | 2743 | | /* Enable this to run every operation on every loaded module */ | 2744 | 503 | #if 1 | 2745 | 503 | { | 2746 | 503 | std::set<uint64_t> moduleIDs; | 2747 | 1.48k | for (const auto& m : modules ) { | 2748 | 1.48k | const auto moduleID = m.first; | 2749 | | | 2750 | | /* Skip if this is a disabled module */ | 2751 | 1.48k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2752 | 0 | continue; | 2753 | 0 | } | 2754 | | | 2755 | 1.48k | moduleIDs.insert(moduleID); | 2756 | 1.48k | } | 2757 | | | 2758 | 503 | std::set<uint64_t> operationModuleIDs; | 2759 | 589 | for (const auto& op : operations) { | 2760 | 589 | operationModuleIDs.insert(op.first->ID); | 2761 | 589 | } | 2762 | | | 2763 | 503 | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); | 2764 | 503 | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); | 2765 | 503 | addModuleIDs.resize(it - addModuleIDs.begin()); | 2766 | | | 2767 | 1.09k | for (const auto& id : addModuleIDs) { | 2768 | 1.09k | operations.push_back({ modules.at(id), operations[0].second}); | 2769 | 1.09k | } | 2770 | 503 | } | 2771 | 503 | #endif | 2772 | | | 2773 | 503 | if ( operations.size() < options.minModules ) { | 2774 | 0 | return; | 2775 | 0 | } | 2776 | | | 2777 | 503 | if ( options.debug == true && !operations.empty() ) { | 2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); | 2779 | 0 | } | 2780 | 2.18k | for (size_t i = 0; i < operations.size(); i++) { | 2781 | 1.68k | auto& operation = operations[i]; | 2782 | | | 2783 | 1.68k | auto& module = operation.first; | 2784 | 1.68k | auto& op = operation.second; | 2785 | | | 2786 | 1.68k | if ( i > 0 ) { | 2787 | 1.31k | auto& prevModule = operations[i-1].first; | 2788 | 1.31k | auto& prevOp = operations[i].second; | 2789 | | | 2790 | 1.31k | if ( prevModule == module && prevOp.modifier == op.modifier ) { | 2791 | 205 | auto& curModifier = op.modifier.GetVectorPtr(); | 2792 | 205 | if ( curModifier.size() == 0 ) { | 2793 | 12.8k | for (size_t j = 0; j < 512; j++) { | 2794 | 12.8k | curModifier.push_back(1); | 2795 | 12.8k | } | 2796 | 180 | } else { | 2797 | 26.1k | for (auto& c : curModifier) { | 2798 | 26.1k | c++; | 2799 | 26.1k | } | 2800 | 180 | } | 2801 | 205 | } | 2802 | 1.31k | } | 2803 | | | 2804 | 1.68k | if ( options.debug == true ) { | 2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); | 2806 | 0 | } | 2807 | | | 2808 | 1.68k | results.push_back( {module, std::move(callModule(module, op))} ); | 2809 | | | 2810 | 1.68k | const auto& result = results.back(); | 2811 | | | 2812 | 1.68k | if ( result.second != std::nullopt ) { | 2813 | 727 | if ( options.jsonDumpFP != std::nullopt ) { | 2814 | 0 | nlohmann::json j; | 2815 | 0 | j["operation"] = op.ToJSON(); | 2816 | 0 | j["result"] = util::ToJSON(*result.second); | 2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); | 2818 | 0 | } | 2819 | 727 | } | 2820 | | | 2821 | 1.68k | if ( options.debug == true ) { | 2822 | 0 | printf("Module %s result:\n\n%s\n\n", | 2823 | 0 | result.first->name.c_str(), | 2824 | 0 | result.second == std::nullopt ? | 2825 | 0 | "(empty)" : | 2826 | 0 | util::ToString(*result.second).c_str()); | 2827 | 0 | } | 2828 | | | 2829 | 1.68k | if ( options.disableTests == false ) { | 2830 | 1.68k | tests::test(op, result.second); | 2831 | 1.68k | } | 2832 | | | 2833 | 1.68k | postprocess(module, op, result); | 2834 | 1.68k | } | 2835 | | | 2836 | 503 | if ( options.noCompare == false ) { | 2837 | 370 | compare(operations, results, data, size); | 2838 | 370 | } | 2839 | 503 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECC_KeyPair, cryptofuzz::operation::ECC_GenerateKeyPair>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECCSI_Signature, cryptofuzz::operation::ECCSI_Sign>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECDSA_Sign>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Line | Count | Source | 2719 | 2.91k | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { | 2720 | 2.91k | typename ExecutorBase<ResultType, OperationType>::ResultSet results; | 2721 | | | 2722 | 2.91k | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; | 2723 | | | 2724 | 4.95k | do { | 2725 | 4.95k | auto op = getOp(&parentDs, data, size); | 2726 | 4.95k | auto module = getModule(parentDs); | 2727 | 4.95k | if ( module == nullptr ) { | 2728 | 1.42k | continue; | 2729 | 1.42k | } | 2730 | | | 2731 | 3.53k | operations.push_back( {module, op} ); | 2732 | | | 2733 | | /* Limit number of operations per run to prevent time-outs */ | 2734 | 3.53k | if ( operations.size() == OperationType::MaxOperations() ) { | 2735 | 38 | break; | 2736 | 38 | } | 2737 | 4.92k | } while ( parentDs.Get<bool>() == true ); | 2738 | | | 2739 | 2.91k | if ( operations.empty() == true ) { | 2740 | 143 | return; | 2741 | 143 | } | 2742 | | | 2743 | | /* Enable this to run every operation on every loaded module */ | 2744 | 2.77k | #if 1 | 2745 | 2.77k | { | 2746 | 2.77k | std::set<uint64_t> moduleIDs; | 2747 | 10.6k | for (const auto& m : modules ) { | 2748 | 10.6k | const auto moduleID = m.first; | 2749 | | | 2750 | | /* Skip if this is a disabled module */ | 2751 | 10.6k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2752 | 0 | continue; | 2753 | 0 | } | 2754 | | | 2755 | 10.6k | moduleIDs.insert(moduleID); | 2756 | 10.6k | } | 2757 | | | 2758 | 2.77k | std::set<uint64_t> operationModuleIDs; | 2759 | 3.38k | for (const auto& op : operations) { | 2760 | 3.38k | operationModuleIDs.insert(op.first->ID); | 2761 | 3.38k | } | 2762 | | | 2763 | 2.77k | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); | 2764 | 2.77k | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); | 2765 | 2.77k | addModuleIDs.resize(it - addModuleIDs.begin()); | 2766 | | | 2767 | 7.98k | for (const auto& id : addModuleIDs) { | 2768 | 7.98k | operations.push_back({ modules.at(id), operations[0].second}); | 2769 | 7.98k | } | 2770 | 2.77k | } | 2771 | 2.77k | #endif | 2772 | | | 2773 | 2.77k | if ( operations.size() < options.minModules ) { | 2774 | 0 | return; | 2775 | 0 | } | 2776 | | | 2777 | 2.77k | if ( options.debug == true && !operations.empty() ) { | 2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); | 2779 | 0 | } | 2780 | 14.1k | for (size_t i = 0; i < operations.size(); i++) { | 2781 | 11.3k | auto& operation = operations[i]; | 2782 | | | 2783 | 11.3k | auto& module = operation.first; | 2784 | 11.3k | auto& op = operation.second; | 2785 | | | 2786 | 11.3k | if ( i > 0 ) { | 2787 | 8.69k | auto& prevModule = operations[i-1].first; | 2788 | 8.69k | auto& prevOp = operations[i].second; | 2789 | | | 2790 | 8.69k | if ( prevModule == module && prevOp.modifier == op.modifier ) { | 2791 | 696 | auto& curModifier = op.modifier.GetVectorPtr(); | 2792 | 696 | if ( curModifier.size() == 0 ) { | 2793 | 6.66k | for (size_t j = 0; j < 512; j++) { | 2794 | 6.65k | curModifier.push_back(1); | 2795 | 6.65k | } | 2796 | 683 | } else { | 2797 | 205k | for (auto& c : curModifier) { | 2798 | 205k | c++; | 2799 | 205k | } | 2800 | 683 | } | 2801 | 696 | } | 2802 | 8.69k | } | 2803 | | | 2804 | 11.3k | if ( options.debug == true ) { | 2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); | 2806 | 0 | } | 2807 | | | 2808 | 11.3k | results.push_back( {module, std::move(callModule(module, op))} ); | 2809 | | | 2810 | 11.3k | const auto& result = results.back(); | 2811 | | | 2812 | 11.3k | if ( result.second != std::nullopt ) { | 2813 | 4.84k | if ( options.jsonDumpFP != std::nullopt ) { | 2814 | 0 | nlohmann::json j; | 2815 | 0 | j["operation"] = op.ToJSON(); | 2816 | 0 | j["result"] = util::ToJSON(*result.second); | 2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); | 2818 | 0 | } | 2819 | 4.84k | } | 2820 | | | 2821 | 11.3k | if ( options.debug == true ) { | 2822 | 0 | printf("Module %s result:\n\n%s\n\n", | 2823 | 0 | result.first->name.c_str(), | 2824 | 0 | result.second == std::nullopt ? | 2825 | 0 | "(empty)" : | 2826 | 0 | util::ToString(*result.second).c_str()); | 2827 | 0 | } | 2828 | | | 2829 | 11.3k | if ( options.disableTests == false ) { | 2830 | 11.3k | tests::test(op, result.second); | 2831 | 11.3k | } | 2832 | | | 2833 | 11.3k | postprocess(module, op, result); | 2834 | 11.3k | } | 2835 | | | 2836 | 2.77k | if ( options.noCompare == false ) { | 2837 | 2.66k | compare(operations, results, data, size); | 2838 | 2.66k | } | 2839 | 2.77k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECGDSA_Sign>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::ECRDSA_Sign>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::component::ECDSA_Signature, cryptofuzz::operation::Schnorr_Sign>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Line | Count | Source | 2719 | 1.42k | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { | 2720 | 1.42k | typename ExecutorBase<ResultType, OperationType>::ResultSet results; | 2721 | | | 2722 | 1.42k | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; | 2723 | | | 2724 | 2.54k | do { | 2725 | 2.54k | auto op = getOp(&parentDs, data, size); | 2726 | 2.54k | auto module = getModule(parentDs); | 2727 | 2.54k | if ( module == nullptr ) { | 2728 | 1.01k | continue; | 2729 | 1.01k | } | 2730 | | | 2731 | 1.53k | operations.push_back( {module, op} ); | 2732 | | | 2733 | | /* Limit number of operations per run to prevent time-outs */ | 2734 | 1.53k | if ( operations.size() == OperationType::MaxOperations() ) { | 2735 | 12 | break; | 2736 | 12 | } | 2737 | 2.53k | } while ( parentDs.Get<bool>() == true ); | 2738 | | | 2739 | 1.42k | if ( operations.empty() == true ) { | 2740 | 144 | return; | 2741 | 144 | } | 2742 | | | 2743 | | /* Enable this to run every operation on every loaded module */ | 2744 | 1.28k | #if 1 | 2745 | 1.28k | { | 2746 | 1.28k | std::set<uint64_t> moduleIDs; | 2747 | 4.70k | for (const auto& m : modules ) { | 2748 | 4.70k | const auto moduleID = m.first; | 2749 | | | 2750 | | /* Skip if this is a disabled module */ | 2751 | 4.70k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2752 | 0 | continue; | 2753 | 0 | } | 2754 | | | 2755 | 4.70k | moduleIDs.insert(moduleID); | 2756 | 4.70k | } | 2757 | | | 2758 | 1.28k | std::set<uint64_t> operationModuleIDs; | 2759 | 1.40k | for (const auto& op : operations) { | 2760 | 1.40k | operationModuleIDs.insert(op.first->ID); | 2761 | 1.40k | } | 2762 | | | 2763 | 1.28k | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); | 2764 | 1.28k | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); | 2765 | 1.28k | addModuleIDs.resize(it - addModuleIDs.begin()); | 2766 | | | 2767 | 3.50k | for (const auto& id : addModuleIDs) { | 2768 | 3.50k | operations.push_back({ modules.at(id), operations[0].second}); | 2769 | 3.50k | } | 2770 | 1.28k | } | 2771 | 1.28k | #endif | 2772 | | | 2773 | 1.28k | if ( operations.size() < options.minModules ) { | 2774 | 0 | return; | 2775 | 0 | } | 2776 | | | 2777 | 1.28k | if ( options.debug == true && !operations.empty() ) { | 2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); | 2779 | 0 | } | 2780 | 6.19k | for (size_t i = 0; i < operations.size(); i++) { | 2781 | 4.91k | auto& operation = operations[i]; | 2782 | | | 2783 | 4.91k | auto& module = operation.first; | 2784 | 4.91k | auto& op = operation.second; | 2785 | | | 2786 | 4.91k | if ( i > 0 ) { | 2787 | 3.73k | auto& prevModule = operations[i-1].first; | 2788 | 3.73k | auto& prevOp = operations[i].second; | 2789 | | | 2790 | 3.73k | if ( prevModule == module && prevOp.modifier == op.modifier ) { | 2791 | 207 | auto& curModifier = op.modifier.GetVectorPtr(); | 2792 | 207 | if ( curModifier.size() == 0 ) { | 2793 | 6.66k | for (size_t j = 0; j < 512; j++) { | 2794 | 6.65k | curModifier.push_back(1); | 2795 | 6.65k | } | 2796 | 194 | } else { | 2797 | 21.5k | for (auto& c : curModifier) { | 2798 | 21.5k | c++; | 2799 | 21.5k | } | 2800 | 194 | } | 2801 | 207 | } | 2802 | 3.73k | } | 2803 | | | 2804 | 4.91k | if ( options.debug == true ) { | 2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); | 2806 | 0 | } | 2807 | | | 2808 | 4.91k | results.push_back( {module, std::move(callModule(module, op))} ); | 2809 | | | 2810 | 4.91k | const auto& result = results.back(); | 2811 | | | 2812 | 4.91k | if ( result.second != std::nullopt ) { | 2813 | 1.09k | if ( options.jsonDumpFP != std::nullopt ) { | 2814 | 0 | nlohmann::json j; | 2815 | 0 | j["operation"] = op.ToJSON(); | 2816 | 0 | j["result"] = util::ToJSON(*result.second); | 2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); | 2818 | 0 | } | 2819 | 1.09k | } | 2820 | | | 2821 | 4.91k | if ( options.debug == true ) { | 2822 | 0 | printf("Module %s result:\n\n%s\n\n", | 2823 | 0 | result.first->name.c_str(), | 2824 | 0 | result.second == std::nullopt ? | 2825 | 0 | "(empty)" : | 2826 | 0 | util::ToString(*result.second).c_str()); | 2827 | 0 | } | 2828 | | | 2829 | 4.91k | if ( options.disableTests == false ) { | 2830 | 4.91k | tests::test(op, result.second); | 2831 | 4.91k | } | 2832 | | | 2833 | 4.91k | postprocess(module, op, result); | 2834 | 4.91k | } | 2835 | | | 2836 | 1.28k | if ( options.noCompare == false ) { | 2837 | 1.17k | compare(operations, results, data, size); | 2838 | 1.17k | } | 2839 | 1.28k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECCSI_Verify>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECDSA_Verify>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Line | Count | Source | 2719 | 828 | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { | 2720 | 828 | typename ExecutorBase<ResultType, OperationType>::ResultSet results; | 2721 | | | 2722 | 828 | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; | 2723 | | | 2724 | 1.94k | do { | 2725 | 1.94k | auto op = getOp(&parentDs, data, size); | 2726 | 1.94k | auto module = getModule(parentDs); | 2727 | 1.94k | if ( module == nullptr ) { | 2728 | 947 | continue; | 2729 | 947 | } | 2730 | | | 2731 | 996 | operations.push_back( {module, op} ); | 2732 | | | 2733 | | /* Limit number of operations per run to prevent time-outs */ | 2734 | 996 | if ( operations.size() == OperationType::MaxOperations() ) { | 2735 | 5 | break; | 2736 | 5 | } | 2737 | 1.93k | } while ( parentDs.Get<bool>() == true ); | 2738 | | | 2739 | 828 | if ( operations.empty() == true ) { | 2740 | 104 | return; | 2741 | 104 | } | 2742 | | | 2743 | | /* Enable this to run every operation on every loaded module */ | 2744 | 724 | #if 1 | 2745 | 724 | { | 2746 | 724 | std::set<uint64_t> moduleIDs; | 2747 | 2.41k | for (const auto& m : modules ) { | 2748 | 2.41k | const auto moduleID = m.first; | 2749 | | | 2750 | | /* Skip if this is a disabled module */ | 2751 | 2.41k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2752 | 0 | continue; | 2753 | 0 | } | 2754 | | | 2755 | 2.41k | moduleIDs.insert(moduleID); | 2756 | 2.41k | } | 2757 | | | 2758 | 724 | std::set<uint64_t> operationModuleIDs; | 2759 | 847 | for (const auto& op : operations) { | 2760 | 847 | operationModuleIDs.insert(op.first->ID); | 2761 | 847 | } | 2762 | | | 2763 | 724 | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); | 2764 | 724 | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); | 2765 | 724 | addModuleIDs.resize(it - addModuleIDs.begin()); | 2766 | | | 2767 | 1.79k | for (const auto& id : addModuleIDs) { | 2768 | 1.79k | operations.push_back({ modules.at(id), operations[0].second}); | 2769 | 1.79k | } | 2770 | 724 | } | 2771 | 724 | #endif | 2772 | | | 2773 | 724 | if ( operations.size() < options.minModules ) { | 2774 | 0 | return; | 2775 | 0 | } | 2776 | | | 2777 | 724 | if ( options.debug == true && !operations.empty() ) { | 2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); | 2779 | 0 | } | 2780 | 3.36k | for (size_t i = 0; i < operations.size(); i++) { | 2781 | 2.63k | auto& operation = operations[i]; | 2782 | | | 2783 | 2.63k | auto& module = operation.first; | 2784 | 2.63k | auto& op = operation.second; | 2785 | | | 2786 | 2.63k | if ( i > 0 ) { | 2787 | 2.03k | auto& prevModule = operations[i-1].first; | 2788 | 2.03k | auto& prevOp = operations[i].second; | 2789 | | | 2790 | 2.03k | if ( prevModule == module && prevOp.modifier == op.modifier ) { | 2791 | 226 | auto& curModifier = op.modifier.GetVectorPtr(); | 2792 | 226 | if ( curModifier.size() == 0 ) { | 2793 | 2.56k | for (size_t j = 0; j < 512; j++) { | 2794 | 2.56k | curModifier.push_back(1); | 2795 | 2.56k | } | 2796 | 221 | } else { | 2797 | 122k | for (auto& c : curModifier) { | 2798 | 122k | c++; | 2799 | 122k | } | 2800 | 221 | } | 2801 | 226 | } | 2802 | 2.03k | } | 2803 | | | 2804 | 2.63k | if ( options.debug == true ) { | 2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); | 2806 | 0 | } | 2807 | | | 2808 | 2.63k | results.push_back( {module, std::move(callModule(module, op))} ); | 2809 | | | 2810 | 2.63k | const auto& result = results.back(); | 2811 | | | 2812 | 2.63k | if ( result.second != std::nullopt ) { | 2813 | 1.52k | if ( options.jsonDumpFP != std::nullopt ) { | 2814 | 0 | nlohmann::json j; | 2815 | 0 | j["operation"] = op.ToJSON(); | 2816 | 0 | j["result"] = util::ToJSON(*result.second); | 2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); | 2818 | 0 | } | 2819 | 1.52k | } | 2820 | | | 2821 | 2.63k | if ( options.debug == true ) { | 2822 | 0 | printf("Module %s result:\n\n%s\n\n", | 2823 | 0 | result.first->name.c_str(), | 2824 | 0 | result.second == std::nullopt ? | 2825 | 0 | "(empty)" : | 2826 | 0 | util::ToString(*result.second).c_str()); | 2827 | 0 | } | 2828 | | | 2829 | 2.63k | if ( options.disableTests == false ) { | 2830 | 2.63k | tests::test(op, result.second); | 2831 | 2.63k | } | 2832 | | | 2833 | 2.63k | postprocess(module, op, result); | 2834 | 2.63k | } | 2835 | | | 2836 | 724 | if ( options.noCompare == false ) { | 2837 | 603 | compare(operations, results, data, size); | 2838 | 603 | } | 2839 | 724 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECGDSA_Verify>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECRDSA_Verify>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::Schnorr_Verify>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Line | Count | Source | 2719 | 785 | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { | 2720 | 785 | typename ExecutorBase<ResultType, OperationType>::ResultSet results; | 2721 | | | 2722 | 785 | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; | 2723 | | | 2724 | 1.55k | do { | 2725 | 1.55k | auto op = getOp(&parentDs, data, size); | 2726 | 1.55k | auto module = getModule(parentDs); | 2727 | 1.55k | if ( module == nullptr ) { | 2728 | 680 | continue; | 2729 | 680 | } | 2730 | | | 2731 | 871 | operations.push_back( {module, op} ); | 2732 | | | 2733 | | /* Limit number of operations per run to prevent time-outs */ | 2734 | 871 | if ( operations.size() == OperationType::MaxOperations() ) { | 2735 | 7 | break; | 2736 | 7 | } | 2737 | 1.54k | } while ( parentDs.Get<bool>() == true ); | 2738 | | | 2739 | 785 | if ( operations.empty() == true ) { | 2740 | 98 | return; | 2741 | 98 | } | 2742 | | | 2743 | | /* Enable this to run every operation on every loaded module */ | 2744 | 687 | #if 1 | 2745 | 687 | { | 2746 | 687 | std::set<uint64_t> moduleIDs; | 2747 | 2.33k | for (const auto& m : modules ) { | 2748 | 2.33k | const auto moduleID = m.first; | 2749 | | | 2750 | | /* Skip if this is a disabled module */ | 2751 | 2.33k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2752 | 0 | continue; | 2753 | 0 | } | 2754 | | | 2755 | 2.33k | moduleIDs.insert(moduleID); | 2756 | 2.33k | } | 2757 | | | 2758 | 687 | std::set<uint64_t> operationModuleIDs; | 2759 | 737 | for (const auto& op : operations) { | 2760 | 737 | operationModuleIDs.insert(op.first->ID); | 2761 | 737 | } | 2762 | | | 2763 | 687 | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); | 2764 | 687 | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); | 2765 | 687 | addModuleIDs.resize(it - addModuleIDs.begin()); | 2766 | | | 2767 | 1.73k | for (const auto& id : addModuleIDs) { | 2768 | 1.73k | operations.push_back({ modules.at(id), operations[0].second}); | 2769 | 1.73k | } | 2770 | 687 | } | 2771 | 687 | #endif | 2772 | | | 2773 | 687 | if ( operations.size() < options.minModules ) { | 2774 | 0 | return; | 2775 | 0 | } | 2776 | | | 2777 | 687 | if ( options.debug == true && !operations.empty() ) { | 2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); | 2779 | 0 | } | 2780 | 3.15k | for (size_t i = 0; i < operations.size(); i++) { | 2781 | 2.46k | auto& operation = operations[i]; | 2782 | | | 2783 | 2.46k | auto& module = operation.first; | 2784 | 2.46k | auto& op = operation.second; | 2785 | | | 2786 | 2.46k | if ( i > 0 ) { | 2787 | 1.88k | auto& prevModule = operations[i-1].first; | 2788 | 1.88k | auto& prevOp = operations[i].second; | 2789 | | | 2790 | 1.88k | if ( prevModule == module && prevOp.modifier == op.modifier ) { | 2791 | 133 | auto& curModifier = op.modifier.GetVectorPtr(); | 2792 | 133 | if ( curModifier.size() == 0 ) { | 2793 | 2.05k | for (size_t j = 0; j < 512; j++) { | 2794 | 2.04k | curModifier.push_back(1); | 2795 | 2.04k | } | 2796 | 129 | } else { | 2797 | 26.3k | for (auto& c : curModifier) { | 2798 | 26.3k | c++; | 2799 | 26.3k | } | 2800 | 129 | } | 2801 | 133 | } | 2802 | 1.88k | } | 2803 | | | 2804 | 2.46k | if ( options.debug == true ) { | 2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); | 2806 | 0 | } | 2807 | | | 2808 | 2.46k | results.push_back( {module, std::move(callModule(module, op))} ); | 2809 | | | 2810 | 2.46k | const auto& result = results.back(); | 2811 | | | 2812 | 2.46k | if ( result.second != std::nullopt ) { | 2813 | 544 | if ( options.jsonDumpFP != std::nullopt ) { | 2814 | 0 | nlohmann::json j; | 2815 | 0 | j["operation"] = op.ToJSON(); | 2816 | 0 | j["result"] = util::ToJSON(*result.second); | 2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); | 2818 | 0 | } | 2819 | 544 | } | 2820 | | | 2821 | 2.46k | if ( options.debug == true ) { | 2822 | 0 | printf("Module %s result:\n\n%s\n\n", | 2823 | 0 | result.first->name.c_str(), | 2824 | 0 | result.second == std::nullopt ? | 2825 | 0 | "(empty)" : | 2826 | 0 | util::ToString(*result.second).c_str()); | 2827 | 0 | } | 2828 | | | 2829 | 2.46k | if ( options.disableTests == false ) { | 2830 | 2.46k | tests::test(op, result.second); | 2831 | 2.46k | } | 2832 | | | 2833 | 2.46k | postprocess(module, op, result); | 2834 | 2.46k | } | 2835 | | | 2836 | 687 | if ( options.noCompare == false ) { | 2837 | 584 | compare(operations, results, data, size); | 2838 | 584 | } | 2839 | 687 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECDSA_Recover>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Line | Count | Source | 2719 | 1.92k | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { | 2720 | 1.92k | typename ExecutorBase<ResultType, OperationType>::ResultSet results; | 2721 | | | 2722 | 1.92k | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; | 2723 | | | 2724 | 3.22k | do { | 2725 | 3.22k | auto op = getOp(&parentDs, data, size); | 2726 | 3.22k | auto module = getModule(parentDs); | 2727 | 3.22k | if ( module == nullptr ) { | 2728 | 898 | continue; | 2729 | 898 | } | 2730 | | | 2731 | 2.33k | operations.push_back( {module, op} ); | 2732 | | | 2733 | | /* Limit number of operations per run to prevent time-outs */ | 2734 | 2.33k | if ( operations.size() == OperationType::MaxOperations() ) { | 2735 | 22 | break; | 2736 | 22 | } | 2737 | 3.20k | } while ( parentDs.Get<bool>() == true ); | 2738 | | | 2739 | 1.92k | if ( operations.empty() == true ) { | 2740 | 70 | return; | 2741 | 70 | } | 2742 | | | 2743 | | /* Enable this to run every operation on every loaded module */ | 2744 | 1.85k | #if 1 | 2745 | 1.85k | { | 2746 | 1.85k | std::set<uint64_t> moduleIDs; | 2747 | 7.10k | for (const auto& m : modules ) { | 2748 | 7.10k | const auto moduleID = m.first; | 2749 | | | 2750 | | /* Skip if this is a disabled module */ | 2751 | 7.10k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2752 | 0 | continue; | 2753 | 0 | } | 2754 | | | 2755 | 7.10k | moduleIDs.insert(moduleID); | 2756 | 7.10k | } | 2757 | | | 2758 | 1.85k | std::set<uint64_t> operationModuleIDs; | 2759 | 2.21k | for (const auto& op : operations) { | 2760 | 2.21k | operationModuleIDs.insert(op.first->ID); | 2761 | 2.21k | } | 2762 | | | 2763 | 1.85k | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); | 2764 | 1.85k | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); | 2765 | 1.85k | addModuleIDs.resize(it - addModuleIDs.begin()); | 2766 | | | 2767 | 5.31k | for (const auto& id : addModuleIDs) { | 2768 | 5.31k | operations.push_back({ modules.at(id), operations[0].second}); | 2769 | 5.31k | } | 2770 | 1.85k | } | 2771 | 1.85k | #endif | 2772 | | | 2773 | 1.85k | if ( operations.size() < options.minModules ) { | 2774 | 0 | return; | 2775 | 0 | } | 2776 | | | 2777 | 1.85k | if ( options.debug == true && !operations.empty() ) { | 2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); | 2779 | 0 | } | 2780 | 9.38k | for (size_t i = 0; i < operations.size(); i++) { | 2781 | 7.52k | auto& operation = operations[i]; | 2782 | | | 2783 | 7.52k | auto& module = operation.first; | 2784 | 7.52k | auto& op = operation.second; | 2785 | | | 2786 | 7.52k | if ( i > 0 ) { | 2787 | 5.75k | auto& prevModule = operations[i-1].first; | 2788 | 5.75k | auto& prevOp = operations[i].second; | 2789 | | | 2790 | 5.75k | if ( prevModule == module && prevOp.modifier == op.modifier ) { | 2791 | 418 | auto& curModifier = op.modifier.GetVectorPtr(); | 2792 | 418 | if ( curModifier.size() == 0 ) { | 2793 | 15.3k | for (size_t j = 0; j < 512; j++) { | 2794 | 15.3k | curModifier.push_back(1); | 2795 | 15.3k | } | 2796 | 388 | } else { | 2797 | 145k | for (auto& c : curModifier) { | 2798 | 145k | c++; | 2799 | 145k | } | 2800 | 388 | } | 2801 | 418 | } | 2802 | 5.75k | } | 2803 | | | 2804 | 7.52k | if ( options.debug == true ) { | 2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); | 2806 | 0 | } | 2807 | | | 2808 | 7.52k | results.push_back( {module, std::move(callModule(module, op))} ); | 2809 | | | 2810 | 7.52k | const auto& result = results.back(); | 2811 | | | 2812 | 7.52k | if ( result.second != std::nullopt ) { | 2813 | 2.62k | if ( options.jsonDumpFP != std::nullopt ) { | 2814 | 0 | nlohmann::json j; | 2815 | 0 | j["operation"] = op.ToJSON(); | 2816 | 0 | j["result"] = util::ToJSON(*result.second); | 2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); | 2818 | 0 | } | 2819 | 2.62k | } | 2820 | | | 2821 | 7.52k | if ( options.debug == true ) { | 2822 | 0 | printf("Module %s result:\n\n%s\n\n", | 2823 | 0 | result.first->name.c_str(), | 2824 | 0 | result.second == std::nullopt ? | 2825 | 0 | "(empty)" : | 2826 | 0 | util::ToString(*result.second).c_str()); | 2827 | 0 | } | 2828 | | | 2829 | 7.52k | if ( options.disableTests == false ) { | 2830 | 7.52k | tests::test(op, result.second); | 2831 | 7.52k | } | 2832 | | | 2833 | 7.52k | postprocess(module, op, result); | 2834 | 7.52k | } | 2835 | | | 2836 | 1.85k | if ( options.noCompare == false ) { | 2837 | 1.77k | compare(operations, results, data, size); | 2838 | 1.77k | } | 2839 | 1.85k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::DSA_Verify>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::DSA_Signature, cryptofuzz::operation::DSA_Sign>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::DSA_Parameters, cryptofuzz::operation::DSA_GenerateParameters>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DSA_PrivateToPublic>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::DSA_GenerateKeyPair>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECDH_Derive>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Line | Count | Source | 2719 | 952 | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { | 2720 | 952 | typename ExecutorBase<ResultType, OperationType>::ResultSet results; | 2721 | | | 2722 | 952 | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; | 2723 | | | 2724 | 1.92k | do { | 2725 | 1.92k | auto op = getOp(&parentDs, data, size); | 2726 | 1.92k | auto module = getModule(parentDs); | 2727 | 1.92k | if ( module == nullptr ) { | 2728 | 933 | continue; | 2729 | 933 | } | 2730 | | | 2731 | 987 | operations.push_back( {module, op} ); | 2732 | | | 2733 | | /* Limit number of operations per run to prevent time-outs */ | 2734 | 987 | if ( operations.size() == OperationType::MaxOperations() ) { | 2735 | 4 | break; | 2736 | 4 | } | 2737 | 1.91k | } while ( parentDs.Get<bool>() == true ); | 2738 | | | 2739 | 952 | if ( operations.empty() == true ) { | 2740 | 159 | return; | 2741 | 159 | } | 2742 | | | 2743 | | /* Enable this to run every operation on every loaded module */ | 2744 | 793 | #if 1 | 2745 | 793 | { | 2746 | 793 | std::set<uint64_t> moduleIDs; | 2747 | 2.60k | for (const auto& m : modules ) { | 2748 | 2.60k | const auto moduleID = m.first; | 2749 | | | 2750 | | /* Skip if this is a disabled module */ | 2751 | 2.60k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2752 | 0 | continue; | 2753 | 0 | } | 2754 | | | 2755 | 2.60k | moduleIDs.insert(moduleID); | 2756 | 2.60k | } | 2757 | | | 2758 | 793 | std::set<uint64_t> operationModuleIDs; | 2759 | 833 | for (const auto& op : operations) { | 2760 | 833 | operationModuleIDs.insert(op.first->ID); | 2761 | 833 | } | 2762 | | | 2763 | 793 | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); | 2764 | 793 | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); | 2765 | 793 | addModuleIDs.resize(it - addModuleIDs.begin()); | 2766 | | | 2767 | 1.93k | for (const auto& id : addModuleIDs) { | 2768 | 1.93k | operations.push_back({ modules.at(id), operations[0].second}); | 2769 | 1.93k | } | 2770 | 793 | } | 2771 | 793 | #endif | 2772 | | | 2773 | 793 | if ( operations.size() < options.minModules ) { | 2774 | 0 | return; | 2775 | 0 | } | 2776 | | | 2777 | 793 | if ( options.debug == true && !operations.empty() ) { | 2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); | 2779 | 0 | } | 2780 | 3.56k | for (size_t i = 0; i < operations.size(); i++) { | 2781 | 2.77k | auto& operation = operations[i]; | 2782 | | | 2783 | 2.77k | auto& module = operation.first; | 2784 | 2.77k | auto& op = operation.second; | 2785 | | | 2786 | 2.77k | if ( i > 0 ) { | 2787 | 2.12k | auto& prevModule = operations[i-1].first; | 2788 | 2.12k | auto& prevOp = operations[i].second; | 2789 | | | 2790 | 2.12k | if ( prevModule == module && prevOp.modifier == op.modifier ) { | 2791 | 170 | auto& curModifier = op.modifier.GetVectorPtr(); | 2792 | 170 | if ( curModifier.size() == 0 ) { | 2793 | 2.56k | for (size_t j = 0; j < 512; j++) { | 2794 | 2.56k | curModifier.push_back(1); | 2795 | 2.56k | } | 2796 | 165 | } else { | 2797 | 25.8k | for (auto& c : curModifier) { | 2798 | 25.8k | c++; | 2799 | 25.8k | } | 2800 | 165 | } | 2801 | 170 | } | 2802 | 2.12k | } | 2803 | | | 2804 | 2.77k | if ( options.debug == true ) { | 2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); | 2806 | 0 | } | 2807 | | | 2808 | 2.77k | results.push_back( {module, std::move(callModule(module, op))} ); | 2809 | | | 2810 | 2.77k | const auto& result = results.back(); | 2811 | | | 2812 | 2.77k | if ( result.second != std::nullopt ) { | 2813 | 943 | if ( options.jsonDumpFP != std::nullopt ) { | 2814 | 0 | nlohmann::json j; | 2815 | 0 | j["operation"] = op.ToJSON(); | 2816 | 0 | j["result"] = util::ToJSON(*result.second); | 2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); | 2818 | 0 | } | 2819 | 943 | } | 2820 | | | 2821 | 2.77k | if ( options.debug == true ) { | 2822 | 0 | printf("Module %s result:\n\n%s\n\n", | 2823 | 0 | result.first->name.c_str(), | 2824 | 0 | result.second == std::nullopt ? | 2825 | 0 | "(empty)" : | 2826 | 0 | util::ToString(*result.second).c_str()); | 2827 | 0 | } | 2828 | | | 2829 | 2.77k | if ( options.disableTests == false ) { | 2830 | 2.77k | tests::test(op, result.second); | 2831 | 2.77k | } | 2832 | | | 2833 | 2.77k | postprocess(module, op, result); | 2834 | 2.77k | } | 2835 | | | 2836 | 793 | if ( options.noCompare == false ) { | 2837 | 650 | compare(operations, results, data, size); | 2838 | 650 | } | 2839 | 793 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Ciphertext, cryptofuzz::operation::ECIES_Encrypt>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::ECIES_Decrypt>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Add>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Line | Count | Source | 2719 | 526 | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { | 2720 | 526 | typename ExecutorBase<ResultType, OperationType>::ResultSet results; | 2721 | | | 2722 | 526 | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; | 2723 | | | 2724 | 1.33k | do { | 2725 | 1.33k | auto op = getOp(&parentDs, data, size); | 2726 | 1.33k | auto module = getModule(parentDs); | 2727 | 1.33k | if ( module == nullptr ) { | 2728 | 649 | continue; | 2729 | 649 | } | 2730 | | | 2731 | 690 | operations.push_back( {module, op} ); | 2732 | | | 2733 | | /* Limit number of operations per run to prevent time-outs */ | 2734 | 690 | if ( operations.size() == OperationType::MaxOperations() ) { | 2735 | 9 | break; | 2736 | 9 | } | 2737 | 1.33k | } while ( parentDs.Get<bool>() == true ); | 2738 | | | 2739 | 526 | if ( operations.empty() == true ) { | 2740 | 81 | return; | 2741 | 81 | } | 2742 | | | 2743 | | /* Enable this to run every operation on every loaded module */ | 2744 | 445 | #if 1 | 2745 | 445 | { | 2746 | 445 | std::set<uint64_t> moduleIDs; | 2747 | 1.41k | for (const auto& m : modules ) { | 2748 | 1.41k | const auto moduleID = m.first; | 2749 | | | 2750 | | /* Skip if this is a disabled module */ | 2751 | 1.41k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2752 | 0 | continue; | 2753 | 0 | } | 2754 | | | 2755 | 1.41k | moduleIDs.insert(moduleID); | 2756 | 1.41k | } | 2757 | | | 2758 | 445 | std::set<uint64_t> operationModuleIDs; | 2759 | 577 | for (const auto& op : operations) { | 2760 | 577 | operationModuleIDs.insert(op.first->ID); | 2761 | 577 | } | 2762 | | | 2763 | 445 | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); | 2764 | 445 | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); | 2765 | 445 | addModuleIDs.resize(it - addModuleIDs.begin()); | 2766 | | | 2767 | 1.04k | for (const auto& id : addModuleIDs) { | 2768 | 1.04k | operations.push_back({ modules.at(id), operations[0].second}); | 2769 | 1.04k | } | 2770 | 445 | } | 2771 | 445 | #endif | 2772 | | | 2773 | 445 | if ( operations.size() < options.minModules ) { | 2774 | 0 | return; | 2775 | 0 | } | 2776 | | | 2777 | 445 | if ( options.debug == true && !operations.empty() ) { | 2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); | 2779 | 0 | } | 2780 | 2.07k | for (size_t i = 0; i < operations.size(); i++) { | 2781 | 1.62k | auto& operation = operations[i]; | 2782 | | | 2783 | 1.62k | auto& module = operation.first; | 2784 | 1.62k | auto& op = operation.second; | 2785 | | | 2786 | 1.62k | if ( i > 0 ) { | 2787 | 1.27k | auto& prevModule = operations[i-1].first; | 2788 | 1.27k | auto& prevOp = operations[i].second; | 2789 | | | 2790 | 1.27k | if ( prevModule == module && prevOp.modifier == op.modifier ) { | 2791 | 203 | auto& curModifier = op.modifier.GetVectorPtr(); | 2792 | 203 | if ( curModifier.size() == 0 ) { | 2793 | 19.4k | for (size_t j = 0; j < 512; j++) { | 2794 | 19.4k | curModifier.push_back(1); | 2795 | 19.4k | } | 2796 | 165 | } else { | 2797 | 80.6k | for (auto& c : curModifier) { | 2798 | 80.6k | c++; | 2799 | 80.6k | } | 2800 | 165 | } | 2801 | 203 | } | 2802 | 1.27k | } | 2803 | | | 2804 | 1.62k | if ( options.debug == true ) { | 2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); | 2806 | 0 | } | 2807 | | | 2808 | 1.62k | results.push_back( {module, std::move(callModule(module, op))} ); | 2809 | | | 2810 | 1.62k | const auto& result = results.back(); | 2811 | | | 2812 | 1.62k | if ( result.second != std::nullopt ) { | 2813 | 450 | if ( options.jsonDumpFP != std::nullopt ) { | 2814 | 0 | nlohmann::json j; | 2815 | 0 | j["operation"] = op.ToJSON(); | 2816 | 0 | j["result"] = util::ToJSON(*result.second); | 2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); | 2818 | 0 | } | 2819 | 450 | } | 2820 | | | 2821 | 1.62k | if ( options.debug == true ) { | 2822 | 0 | printf("Module %s result:\n\n%s\n\n", | 2823 | 0 | result.first->name.c_str(), | 2824 | 0 | result.second == std::nullopt ? | 2825 | 0 | "(empty)" : | 2826 | 0 | util::ToString(*result.second).c_str()); | 2827 | 0 | } | 2828 | | | 2829 | 1.62k | if ( options.disableTests == false ) { | 2830 | 1.62k | tests::test(op, result.second); | 2831 | 1.62k | } | 2832 | | | 2833 | 1.62k | postprocess(module, op, result); | 2834 | 1.62k | } | 2835 | | | 2836 | 445 | if ( options.noCompare == false ) { | 2837 | 354 | compare(operations, results, data, size); | 2838 | 354 | } | 2839 | 445 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Sub>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Mul>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Line | Count | Source | 2719 | 2.22k | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { | 2720 | 2.22k | typename ExecutorBase<ResultType, OperationType>::ResultSet results; | 2721 | | | 2722 | 2.22k | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; | 2723 | | | 2724 | 3.83k | do { | 2725 | 3.83k | auto op = getOp(&parentDs, data, size); | 2726 | 3.83k | auto module = getModule(parentDs); | 2727 | 3.83k | if ( module == nullptr ) { | 2728 | 1.35k | continue; | 2729 | 1.35k | } | 2730 | | | 2731 | 2.48k | operations.push_back( {module, op} ); | 2732 | | | 2733 | | /* Limit number of operations per run to prevent time-outs */ | 2734 | 2.48k | if ( operations.size() == OperationType::MaxOperations() ) { | 2735 | 16 | break; | 2736 | 16 | } | 2737 | 3.81k | } while ( parentDs.Get<bool>() == true ); | 2738 | | | 2739 | 2.22k | if ( operations.empty() == true ) { | 2740 | 165 | return; | 2741 | 165 | } | 2742 | | | 2743 | | /* Enable this to run every operation on every loaded module */ | 2744 | 2.05k | #if 1 | 2745 | 2.05k | { | 2746 | 2.05k | std::set<uint64_t> moduleIDs; | 2747 | 7.72k | for (const auto& m : modules ) { | 2748 | 7.72k | const auto moduleID = m.first; | 2749 | | | 2750 | | /* Skip if this is a disabled module */ | 2751 | 7.72k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2752 | 0 | continue; | 2753 | 0 | } | 2754 | | | 2755 | 7.72k | moduleIDs.insert(moduleID); | 2756 | 7.72k | } | 2757 | | | 2758 | 2.05k | std::set<uint64_t> operationModuleIDs; | 2759 | 2.32k | for (const auto& op : operations) { | 2760 | 2.32k | operationModuleIDs.insert(op.first->ID); | 2761 | 2.32k | } | 2762 | | | 2763 | 2.05k | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); | 2764 | 2.05k | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); | 2765 | 2.05k | addModuleIDs.resize(it - addModuleIDs.begin()); | 2766 | | | 2767 | 5.77k | for (const auto& id : addModuleIDs) { | 2768 | 5.77k | operations.push_back({ modules.at(id), operations[0].second}); | 2769 | 5.77k | } | 2770 | 2.05k | } | 2771 | 2.05k | #endif | 2772 | | | 2773 | 2.05k | if ( operations.size() < options.minModules ) { | 2774 | 0 | return; | 2775 | 0 | } | 2776 | | | 2777 | 2.05k | if ( options.debug == true && !operations.empty() ) { | 2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); | 2779 | 0 | } | 2780 | 10.1k | for (size_t i = 0; i < operations.size(); i++) { | 2781 | 8.09k | auto& operation = operations[i]; | 2782 | | | 2783 | 8.09k | auto& module = operation.first; | 2784 | 8.09k | auto& op = operation.second; | 2785 | | | 2786 | 8.09k | if ( i > 0 ) { | 2787 | 6.16k | auto& prevModule = operations[i-1].first; | 2788 | 6.16k | auto& prevOp = operations[i].second; | 2789 | | | 2790 | 6.16k | if ( prevModule == module && prevOp.modifier == op.modifier ) { | 2791 | 372 | auto& curModifier = op.modifier.GetVectorPtr(); | 2792 | 372 | if ( curModifier.size() == 0 ) { | 2793 | 6.15k | for (size_t j = 0; j < 512; j++) { | 2794 | 6.14k | curModifier.push_back(1); | 2795 | 6.14k | } | 2796 | 360 | } else { | 2797 | 44.0k | for (auto& c : curModifier) { | 2798 | 44.0k | c++; | 2799 | 44.0k | } | 2800 | 360 | } | 2801 | 372 | } | 2802 | 6.16k | } | 2803 | | | 2804 | 8.09k | if ( options.debug == true ) { | 2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); | 2806 | 0 | } | 2807 | | | 2808 | 8.09k | results.push_back( {module, std::move(callModule(module, op))} ); | 2809 | | | 2810 | 8.09k | const auto& result = results.back(); | 2811 | | | 2812 | 8.09k | if ( result.second != std::nullopt ) { | 2813 | 5.22k | if ( options.jsonDumpFP != std::nullopt ) { | 2814 | 0 | nlohmann::json j; | 2815 | 0 | j["operation"] = op.ToJSON(); | 2816 | 0 | j["result"] = util::ToJSON(*result.second); | 2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); | 2818 | 0 | } | 2819 | 5.22k | } | 2820 | | | 2821 | 8.09k | if ( options.debug == true ) { | 2822 | 0 | printf("Module %s result:\n\n%s\n\n", | 2823 | 0 | result.first->name.c_str(), | 2824 | 0 | result.second == std::nullopt ? | 2825 | 0 | "(empty)" : | 2826 | 0 | util::ToString(*result.second).c_str()); | 2827 | 0 | } | 2828 | | | 2829 | 8.09k | if ( options.disableTests == false ) { | 2830 | 8.09k | tests::test(op, result.second); | 2831 | 8.09k | } | 2832 | | | 2833 | 8.09k | postprocess(module, op, result); | 2834 | 8.09k | } | 2835 | | | 2836 | 2.05k | if ( options.noCompare == false ) { | 2837 | 1.93k | compare(operations, results, data, size); | 2838 | 1.93k | } | 2839 | 2.05k | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Neg>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Line | Count | Source | 2719 | 379 | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { | 2720 | 379 | typename ExecutorBase<ResultType, OperationType>::ResultSet results; | 2721 | | | 2722 | 379 | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; | 2723 | | | 2724 | 1.33k | do { | 2725 | 1.33k | auto op = getOp(&parentDs, data, size); | 2726 | 1.33k | auto module = getModule(parentDs); | 2727 | 1.33k | if ( module == nullptr ) { | 2728 | 791 | continue; | 2729 | 791 | } | 2730 | | | 2731 | 547 | operations.push_back( {module, op} ); | 2732 | | | 2733 | | /* Limit number of operations per run to prevent time-outs */ | 2734 | 547 | if ( operations.size() == OperationType::MaxOperations() ) { | 2735 | 13 | break; | 2736 | 13 | } | 2737 | 1.32k | } while ( parentDs.Get<bool>() == true ); | 2738 | | | 2739 | 379 | if ( operations.empty() == true ) { | 2740 | 40 | return; | 2741 | 40 | } | 2742 | | | 2743 | | /* Enable this to run every operation on every loaded module */ | 2744 | 339 | #if 1 | 2745 | 339 | { | 2746 | 339 | std::set<uint64_t> moduleIDs; | 2747 | 1.04k | for (const auto& m : modules ) { | 2748 | 1.04k | const auto moduleID = m.first; | 2749 | | | 2750 | | /* Skip if this is a disabled module */ | 2751 | 1.04k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2752 | 0 | continue; | 2753 | 0 | } | 2754 | | | 2755 | 1.04k | moduleIDs.insert(moduleID); | 2756 | 1.04k | } | 2757 | | | 2758 | 339 | std::set<uint64_t> operationModuleIDs; | 2759 | 451 | for (const auto& op : operations) { | 2760 | 451 | operationModuleIDs.insert(op.first->ID); | 2761 | 451 | } | 2762 | | | 2763 | 339 | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); | 2764 | 339 | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); | 2765 | 339 | addModuleIDs.resize(it - addModuleIDs.begin()); | 2766 | | | 2767 | 772 | for (const auto& id : addModuleIDs) { | 2768 | 772 | operations.push_back({ modules.at(id), operations[0].second}); | 2769 | 772 | } | 2770 | 339 | } | 2771 | 339 | #endif | 2772 | | | 2773 | 339 | if ( operations.size() < options.minModules ) { | 2774 | 0 | return; | 2775 | 0 | } | 2776 | | | 2777 | 339 | if ( options.debug == true && !operations.empty() ) { | 2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); | 2779 | 0 | } | 2780 | 1.56k | for (size_t i = 0; i < operations.size(); i++) { | 2781 | 1.22k | auto& operation = operations[i]; | 2782 | | | 2783 | 1.22k | auto& module = operation.first; | 2784 | 1.22k | auto& op = operation.second; | 2785 | | | 2786 | 1.22k | if ( i > 0 ) { | 2787 | 962 | auto& prevModule = operations[i-1].first; | 2788 | 962 | auto& prevOp = operations[i].second; | 2789 | | | 2790 | 962 | if ( prevModule == module && prevOp.modifier == op.modifier ) { | 2791 | 178 | auto& curModifier = op.modifier.GetVectorPtr(); | 2792 | 178 | if ( curModifier.size() == 0 ) { | 2793 | 9.74k | for (size_t j = 0; j < 512; j++) { | 2794 | 9.72k | curModifier.push_back(1); | 2795 | 9.72k | } | 2796 | 159 | } else { | 2797 | 24.4k | for (auto& c : curModifier) { | 2798 | 24.4k | c++; | 2799 | 24.4k | } | 2800 | 159 | } | 2801 | 178 | } | 2802 | 962 | } | 2803 | | | 2804 | 1.22k | if ( options.debug == true ) { | 2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); | 2806 | 0 | } | 2807 | | | 2808 | 1.22k | results.push_back( {module, std::move(callModule(module, op))} ); | 2809 | | | 2810 | 1.22k | const auto& result = results.back(); | 2811 | | | 2812 | 1.22k | if ( result.second != std::nullopt ) { | 2813 | 141 | if ( options.jsonDumpFP != std::nullopt ) { | 2814 | 0 | nlohmann::json j; | 2815 | 0 | j["operation"] = op.ToJSON(); | 2816 | 0 | j["result"] = util::ToJSON(*result.second); | 2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); | 2818 | 0 | } | 2819 | 141 | } | 2820 | | | 2821 | 1.22k | if ( options.debug == true ) { | 2822 | 0 | printf("Module %s result:\n\n%s\n\n", | 2823 | 0 | result.first->name.c_str(), | 2824 | 0 | result.second == std::nullopt ? | 2825 | 0 | "(empty)" : | 2826 | 0 | util::ToString(*result.second).c_str()); | 2827 | 0 | } | 2828 | | | 2829 | 1.22k | if ( options.disableTests == false ) { | 2830 | 1.22k | tests::test(op, result.second); | 2831 | 1.22k | } | 2832 | | | 2833 | 1.22k | postprocess(module, op, result); | 2834 | 1.22k | } | 2835 | | | 2836 | 339 | if ( options.noCompare == false ) { | 2837 | 261 | compare(operations, results, data, size); | 2838 | 261 | } | 2839 | 339 | } |
cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::ECC_Point_Dbl>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Line | Count | Source | 2719 | 666 | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { | 2720 | 666 | typename ExecutorBase<ResultType, OperationType>::ResultSet results; | 2721 | | | 2722 | 666 | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; | 2723 | | | 2724 | 1.59k | do { | 2725 | 1.59k | auto op = getOp(&parentDs, data, size); | 2726 | 1.59k | auto module = getModule(parentDs); | 2727 | 1.59k | if ( module == nullptr ) { | 2728 | 825 | continue; | 2729 | 825 | } | 2730 | | | 2731 | 766 | operations.push_back( {module, op} ); | 2732 | | | 2733 | | /* Limit number of operations per run to prevent time-outs */ | 2734 | 766 | if ( operations.size() == OperationType::MaxOperations() ) { | 2735 | 8 | break; | 2736 | 8 | } | 2737 | 1.58k | } while ( parentDs.Get<bool>() == true ); | 2738 | | | 2739 | 666 | if ( operations.empty() == true ) { | 2740 | 137 | return; | 2741 | 137 | } | 2742 | | | 2743 | | /* Enable this to run every operation on every loaded module */ | 2744 | 529 | #if 1 | 2745 | 529 | { | 2746 | 529 | std::set<uint64_t> moduleIDs; | 2747 | 1.58k | for (const auto& m : modules ) { | 2748 | 1.58k | const auto moduleID = m.first; | 2749 | | | 2750 | | /* Skip if this is a disabled module */ | 2751 | 1.58k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2752 | 0 | continue; | 2753 | 0 | } | 2754 | | | 2755 | 1.58k | moduleIDs.insert(moduleID); | 2756 | 1.58k | } | 2757 | | | 2758 | 529 | std::set<uint64_t> operationModuleIDs; | 2759 | 601 | for (const auto& op : operations) { | 2760 | 601 | operationModuleIDs.insert(op.first->ID); | 2761 | 601 | } | 2762 | | | 2763 | 529 | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); | 2764 | 529 | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); | 2765 | 529 | addModuleIDs.resize(it - addModuleIDs.begin()); | 2766 | | | 2767 | 1.17k | for (const auto& id : addModuleIDs) { | 2768 | 1.17k | operations.push_back({ modules.at(id), operations[0].second}); | 2769 | 1.17k | } | 2770 | 529 | } | 2771 | 529 | #endif | 2772 | | | 2773 | 529 | if ( operations.size() < options.minModules ) { | 2774 | 0 | return; | 2775 | 0 | } | 2776 | | | 2777 | 529 | if ( options.debug == true && !operations.empty() ) { | 2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); | 2779 | 0 | } | 2780 | 2.30k | for (size_t i = 0; i < operations.size(); i++) { | 2781 | 1.77k | auto& operation = operations[i]; | 2782 | | | 2783 | 1.77k | auto& module = operation.first; | 2784 | 1.77k | auto& op = operation.second; | 2785 | | | 2786 | 1.77k | if ( i > 0 ) { | 2787 | 1.37k | auto& prevModule = operations[i-1].first; | 2788 | 1.37k | auto& prevOp = operations[i].second; | 2789 | | | 2790 | 1.37k | if ( prevModule == module && prevOp.modifier == op.modifier ) { | 2791 | 191 | auto& curModifier = op.modifier.GetVectorPtr(); | 2792 | 191 | if ( curModifier.size() == 0 ) { | 2793 | 4.10k | for (size_t j = 0; j < 512; j++) { | 2794 | 4.09k | curModifier.push_back(1); | 2795 | 4.09k | } | 2796 | 183 | } else { | 2797 | 37.1k | for (auto& c : curModifier) { | 2798 | 37.1k | c++; | 2799 | 37.1k | } | 2800 | 183 | } | 2801 | 191 | } | 2802 | 1.37k | } | 2803 | | | 2804 | 1.77k | if ( options.debug == true ) { | 2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); | 2806 | 0 | } | 2807 | | | 2808 | 1.77k | results.push_back( {module, std::move(callModule(module, op))} ); | 2809 | | | 2810 | 1.77k | const auto& result = results.back(); | 2811 | | | 2812 | 1.77k | if ( result.second != std::nullopt ) { | 2813 | 563 | if ( options.jsonDumpFP != std::nullopt ) { | 2814 | 0 | nlohmann::json j; | 2815 | 0 | j["operation"] = op.ToJSON(); | 2816 | 0 | j["result"] = util::ToJSON(*result.second); | 2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); | 2818 | 0 | } | 2819 | 563 | } | 2820 | | | 2821 | 1.77k | if ( options.debug == true ) { | 2822 | 0 | printf("Module %s result:\n\n%s\n\n", | 2823 | 0 | result.first->name.c_str(), | 2824 | 0 | result.second == std::nullopt ? | 2825 | 0 | "(empty)" : | 2826 | 0 | util::ToString(*result.second).c_str()); | 2827 | 0 | } | 2828 | | | 2829 | 1.77k | if ( options.disableTests == false ) { | 2830 | 1.77k | tests::test(op, result.second); | 2831 | 1.77k | } | 2832 | | | 2833 | 1.77k | postprocess(module, op, result); | 2834 | 1.77k | } | 2835 | | | 2836 | 529 | if ( options.noCompare == false ) { | 2837 | 396 | compare(operations, results, data, size); | 2838 | 396 | } | 2839 | 529 | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::ECC_Point_Cmp>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::DH_GenerateKeyPair>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::DH_Derive>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BignumCalc>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Line | Count | Source | 2719 | 3.05k | void ExecutorBase<ResultType, OperationType>::Run(Datasource& parentDs, const uint8_t* data, const size_t size) const { | 2720 | 3.05k | typename ExecutorBase<ResultType, OperationType>::ResultSet results; | 2721 | | | 2722 | 3.05k | std::vector< std::pair<std::shared_ptr<Module>, OperationType> > operations; | 2723 | | | 2724 | 5.63k | do { | 2725 | 5.63k | auto op = getOp(&parentDs, data, size); | 2726 | 5.63k | auto module = getModule(parentDs); | 2727 | 5.63k | if ( module == nullptr ) { | 2728 | 1.98k | continue; | 2729 | 1.98k | } | 2730 | | | 2731 | 3.65k | operations.push_back( {module, op} ); | 2732 | | | 2733 | | /* Limit number of operations per run to prevent time-outs */ | 2734 | 3.65k | if ( operations.size() == OperationType::MaxOperations() ) { | 2735 | 31 | break; | 2736 | 31 | } | 2737 | 5.60k | } while ( parentDs.Get<bool>() == true ); | 2738 | | | 2739 | 3.05k | if ( operations.empty() == true ) { | 2740 | 147 | return; | 2741 | 147 | } | 2742 | | | 2743 | | /* Enable this to run every operation on every loaded module */ | 2744 | 2.90k | #if 1 | 2745 | 2.90k | { | 2746 | 2.90k | std::set<uint64_t> moduleIDs; | 2747 | 11.1k | for (const auto& m : modules ) { | 2748 | 11.1k | const auto moduleID = m.first; | 2749 | | | 2750 | | /* Skip if this is a disabled module */ | 2751 | 11.1k | if ( options.disableModules.HaveExplicit(moduleID) ) { | 2752 | 0 | continue; | 2753 | 0 | } | 2754 | | | 2755 | 11.1k | moduleIDs.insert(moduleID); | 2756 | 11.1k | } | 2757 | | | 2758 | 2.90k | std::set<uint64_t> operationModuleIDs; | 2759 | 3.49k | for (const auto& op : operations) { | 2760 | 3.49k | operationModuleIDs.insert(op.first->ID); | 2761 | 3.49k | } | 2762 | | | 2763 | 2.90k | std::vector<uint64_t> addModuleIDs(moduleIDs.size()); | 2764 | 2.90k | auto it = std::set_difference(moduleIDs.begin(), moduleIDs.end(), operationModuleIDs.begin(), operationModuleIDs.end(), addModuleIDs.begin()); | 2765 | 2.90k | addModuleIDs.resize(it - addModuleIDs.begin()); | 2766 | | | 2767 | 8.34k | for (const auto& id : addModuleIDs) { | 2768 | 8.34k | operations.push_back({ modules.at(id), operations[0].second}); | 2769 | 8.34k | } | 2770 | 2.90k | } | 2771 | 2.90k | #endif | 2772 | | | 2773 | 2.90k | if ( operations.size() < options.minModules ) { | 2774 | 0 | return; | 2775 | 0 | } | 2776 | | | 2777 | 2.90k | if ( options.debug == true && !operations.empty() ) { | 2778 | 0 | printf("Running:\n%s\n", operations[0].second.ToString().c_str()); | 2779 | 0 | } | 2780 | 14.7k | for (size_t i = 0; i < operations.size(); i++) { | 2781 | 11.8k | auto& operation = operations[i]; | 2782 | | | 2783 | 11.8k | auto& module = operation.first; | 2784 | 11.8k | auto& op = operation.second; | 2785 | | | 2786 | 11.8k | if ( i > 0 ) { | 2787 | 9.04k | auto& prevModule = operations[i-1].first; | 2788 | 9.04k | auto& prevOp = operations[i].second; | 2789 | | | 2790 | 9.04k | if ( prevModule == module && prevOp.modifier == op.modifier ) { | 2791 | 678 | auto& curModifier = op.modifier.GetVectorPtr(); | 2792 | 678 | if ( curModifier.size() == 0 ) { | 2793 | 5.64k | for (size_t j = 0; j < 512; j++) { | 2794 | 5.63k | curModifier.push_back(1); | 2795 | 5.63k | } | 2796 | 667 | } else { | 2797 | 342k | for (auto& c : curModifier) { | 2798 | 342k | c++; | 2799 | 342k | } | 2800 | 667 | } | 2801 | 678 | } | 2802 | 9.04k | } | 2803 | | | 2804 | 11.8k | if ( options.debug == true ) { | 2805 | 0 | printf("modifier: %s\n", util::HexDump(op.modifier.Get()).c_str()); | 2806 | 0 | } | 2807 | | | 2808 | 11.8k | results.push_back( {module, std::move(callModule(module, op))} ); | 2809 | | | 2810 | 11.8k | const auto& result = results.back(); | 2811 | | | 2812 | 11.8k | if ( result.second != std::nullopt ) { | 2813 | 4.38k | if ( options.jsonDumpFP != std::nullopt ) { | 2814 | 0 | nlohmann::json j; | 2815 | 0 | j["operation"] = op.ToJSON(); | 2816 | 0 | j["result"] = util::ToJSON(*result.second); | 2817 | 0 | fprintf(*options.jsonDumpFP, "%s\n", j.dump().c_str()); | 2818 | 0 | } | 2819 | 4.38k | } | 2820 | | | 2821 | 11.8k | if ( options.debug == true ) { | 2822 | 0 | printf("Module %s result:\n\n%s\n\n", | 2823 | 0 | result.first->name.c_str(), | 2824 | 0 | result.second == std::nullopt ? | 2825 | 0 | "(empty)" : | 2826 | 0 | util::ToString(*result.second).c_str()); | 2827 | 0 | } | 2828 | | | 2829 | 11.8k | if ( options.disableTests == false ) { | 2830 | 11.8k | tests::test(op, result.second); | 2831 | 11.8k | } | 2832 | | | 2833 | 11.8k | postprocess(module, op, result); | 2834 | 11.8k | } | 2835 | | | 2836 | 2.90k | if ( options.noCompare == false ) { | 2837 | 2.79k | compare(operations, results, data, size); | 2838 | 2.79k | } | 2839 | 2.90k | } |
Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BignumCalc_Fp2>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BignumCalc_Fp12>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_PrivateToPublic>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_PrivateToPublic_G2>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_Signature, cryptofuzz::operation::BLS_Sign>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_Verify>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_BatchSignature, cryptofuzz::operation::BLS_BatchSign>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_BatchVerify>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Aggregate_G1>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Aggregate_G2>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_Pairing>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_MillerLoop>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::Fp12, cryptofuzz::operation::BLS_FinalExp>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_HashToG1>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_HashToG2>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_MapToG1>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_MapToG2>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG1OnCurve>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_IsG2OnCurve>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BLS_KeyPair, cryptofuzz::operation::BLS_GenerateKeyPair>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Decompress_G1>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Bignum, cryptofuzz::operation::BLS_Compress_G1>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_Decompress_G2>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_Compress_G2>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Add>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Mul>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G1_IsEq>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_Neg>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Add>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Mul>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::BLS_G2_IsEq>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::G2, cryptofuzz::operation::BLS_G2_Neg>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::component::BignumPair, cryptofuzz::operation::BLS_G1_MultiExp>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<cryptofuzz::Buffer, cryptofuzz::operation::Misc>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const Unexecuted instantiation: cryptofuzz::ExecutorBase<bool, cryptofuzz::operation::SR25519_Verify>::Run(fuzzing::datasource::Datasource&, unsigned char const*, unsigned long) const |
2840 | | |
2841 | | /* Explicit template instantiation */ |
2842 | | template class ExecutorBase<component::Digest, operation::Digest>; |
2843 | | template class ExecutorBase<component::MAC, operation::HMAC>; |
2844 | | template class ExecutorBase<component::MAC, operation::UMAC>; |
2845 | | template class ExecutorBase<component::MAC, operation::CMAC>; |
2846 | | template class ExecutorBase<component::Ciphertext, operation::SymmetricEncrypt>; |
2847 | | template class ExecutorBase<component::Cleartext, operation::SymmetricDecrypt>; |
2848 | | template class ExecutorBase<component::Key, operation::KDF_SCRYPT>; |
2849 | | template class ExecutorBase<component::Key, operation::KDF_HKDF>; |
2850 | | template class ExecutorBase<component::Key, operation::KDF_TLS1_PRF>; |
2851 | | template class ExecutorBase<component::Key, operation::KDF_PBKDF>; |
2852 | | template class ExecutorBase<component::Key, operation::KDF_PBKDF1>; |
2853 | | template class ExecutorBase<component::Key, operation::KDF_PBKDF2>; |
2854 | | template class ExecutorBase<component::Key, operation::KDF_ARGON2>; |
2855 | | template class ExecutorBase<component::Key, operation::KDF_SSH>; |
2856 | | template class ExecutorBase<component::Key, operation::KDF_X963>; |
2857 | | template class ExecutorBase<component::Key, operation::KDF_BCRYPT>; |
2858 | | template class ExecutorBase<component::Key, operation::KDF_SP_800_108>; |
2859 | | template class ExecutorBase<component::Key3, operation::KDF_SRTP>; |
2860 | | template class ExecutorBase<component::Key3, operation::KDF_SRTCP>; |
2861 | | template class ExecutorBase<component::ECC_PublicKey, operation::ECC_PrivateToPublic>; |
2862 | | template class ExecutorBase<bool, operation::ECC_ValidatePubkey>; |
2863 | | template class ExecutorBase<component::ECC_KeyPair, operation::ECC_GenerateKeyPair>; |
2864 | | template class ExecutorBase<component::ECCSI_Signature, operation::ECCSI_Sign>; |
2865 | | template class ExecutorBase<component::ECDSA_Signature, operation::ECDSA_Sign>; |
2866 | | template class ExecutorBase<component::ECGDSA_Signature, operation::ECGDSA_Sign>; |
2867 | | template class ExecutorBase<component::ECRDSA_Signature, operation::ECRDSA_Sign>; |
2868 | | template class ExecutorBase<component::Schnorr_Signature, operation::Schnorr_Sign>; |
2869 | | template class ExecutorBase<bool, operation::ECCSI_Verify>; |
2870 | | template class ExecutorBase<bool, operation::ECDSA_Verify>; |
2871 | | template class ExecutorBase<bool, operation::ECGDSA_Verify>; |
2872 | | template class ExecutorBase<bool, operation::ECRDSA_Verify>; |
2873 | | template class ExecutorBase<bool, operation::Schnorr_Verify>; |
2874 | | template class ExecutorBase<component::ECC_PublicKey, operation::ECDSA_Recover>; |
2875 | | template class ExecutorBase<bool, operation::DSA_Verify>; |
2876 | | template class ExecutorBase<component::DSA_Signature, operation::DSA_Sign>; |
2877 | | template class ExecutorBase<component::DSA_Parameters, operation::DSA_GenerateParameters>; |
2878 | | template class ExecutorBase<component::Bignum, operation::DSA_PrivateToPublic>; |
2879 | | template class ExecutorBase<component::DSA_KeyPair, operation::DSA_GenerateKeyPair>; |
2880 | | template class ExecutorBase<component::Secret, operation::ECDH_Derive>; |
2881 | | template class ExecutorBase<component::Ciphertext, operation::ECIES_Encrypt>; |
2882 | | template class ExecutorBase<component::Cleartext, operation::ECIES_Decrypt>; |
2883 | | template class ExecutorBase<component::ECC_Point, operation::ECC_Point_Add>; |
2884 | | template class ExecutorBase<component::ECC_Point, operation::ECC_Point_Sub>; |
2885 | | template class ExecutorBase<component::ECC_Point, operation::ECC_Point_Mul>; |
2886 | | template class ExecutorBase<component::ECC_Point, operation::ECC_Point_Neg>; |
2887 | | template class ExecutorBase<component::ECC_Point, operation::ECC_Point_Dbl>; |
2888 | | template class ExecutorBase<bool, operation::ECC_Point_Cmp>; |
2889 | | template class ExecutorBase<component::DH_KeyPair, operation::DH_GenerateKeyPair>; |
2890 | | template class ExecutorBase<component::Bignum, operation::DH_Derive>; |
2891 | | template class ExecutorBase<component::Bignum, operation::BignumCalc>; |
2892 | | template class ExecutorBase<component::Fp2, operation::BignumCalc_Fp2>; |
2893 | | template class ExecutorBase<component::Fp12, operation::BignumCalc_Fp12>; |
2894 | | template class ExecutorBase<component::BLS_PublicKey, operation::BLS_PrivateToPublic>; |
2895 | | template class ExecutorBase<component::G2, operation::BLS_PrivateToPublic_G2>; |
2896 | | template class ExecutorBase<component::BLS_Signature, operation::BLS_Sign>; |
2897 | | template class ExecutorBase<bool, operation::BLS_Verify>; |
2898 | | template class ExecutorBase<component::BLS_BatchSignature, operation::BLS_BatchSign>; |
2899 | | template class ExecutorBase<bool, operation::BLS_BatchVerify>; |
2900 | | template class ExecutorBase<component::G1, operation::BLS_Aggregate_G1>; |
2901 | | template class ExecutorBase<component::G2, operation::BLS_Aggregate_G2>; |
2902 | | template class ExecutorBase<component::Fp12, operation::BLS_Pairing>; |
2903 | | template class ExecutorBase<component::Fp12, operation::BLS_MillerLoop>; |
2904 | | template class ExecutorBase<component::Fp12, operation::BLS_FinalExp>; |
2905 | | template class ExecutorBase<component::G1, operation::BLS_HashToG1>; |
2906 | | template class ExecutorBase<component::G2, operation::BLS_HashToG2>; |
2907 | | template class ExecutorBase<component::G1, operation::BLS_MapToG1>; |
2908 | | template class ExecutorBase<component::G2, operation::BLS_MapToG2>; |
2909 | | template class ExecutorBase<bool, operation::BLS_IsG1OnCurve>; |
2910 | | template class ExecutorBase<bool, operation::BLS_IsG2OnCurve>; |
2911 | | template class ExecutorBase<component::BLS_KeyPair, operation::BLS_GenerateKeyPair>; |
2912 | | template class ExecutorBase<component::G1, operation::BLS_Decompress_G1>; |
2913 | | template class ExecutorBase<component::Bignum, operation::BLS_Compress_G1>; |
2914 | | template class ExecutorBase<component::G2, operation::BLS_Decompress_G2>; |
2915 | | template class ExecutorBase<component::G1, operation::BLS_Compress_G2>; |
2916 | | template class ExecutorBase<component::G1, operation::BLS_G1_Add>; |
2917 | | template class ExecutorBase<component::G1, operation::BLS_G1_Mul>; |
2918 | | template class ExecutorBase<bool, operation::BLS_G1_IsEq>; |
2919 | | template class ExecutorBase<component::G1, operation::BLS_G1_Neg>; |
2920 | | template class ExecutorBase<component::G2, operation::BLS_G2_Add>; |
2921 | | template class ExecutorBase<component::G2, operation::BLS_G2_Mul>; |
2922 | | template class ExecutorBase<bool, operation::BLS_G2_IsEq>; |
2923 | | template class ExecutorBase<component::G2, operation::BLS_G2_Neg>; |
2924 | | template class ExecutorBase<component::G1, operation::BLS_G1_MultiExp>; |
2925 | | template class ExecutorBase<Buffer, operation::Misc>; |
2926 | | template class ExecutorBase<bool, operation::SR25519_Verify>; |
2927 | | |
2928 | | } /* namespace cryptofuzz */ |