#include "Data.hpp"
#include "Keys.hpp"
#include "Progress.hpp"
#include "types.hpp"
#include <mutex>
Go to the source code of this file.
|
class | Attack |
| Class to carry out the attack for a given Z[2,32) value. More...
|
|
|
auto | attack (const Data &data, const std::vector< std::uint32_t > &zi_2_32_vector, int &start, std::size_t index, int jobs, bool exhaustive, Progress &progress) -> std::vector< Keys > |
| Iterate on Zi[2,32) candidates to try and find complete internal keys.
|
|
◆ attack()
auto attack |
( |
const Data & | data, |
|
|
const std::vector< std::uint32_t > & | zi_2_32_vector, |
|
|
int & | start, |
|
|
std::size_t | index, |
|
|
int | jobs, |
|
|
bool | exhaustive, |
|
|
Progress & | progress ) -> std::vector< Keys > |
Iterate on Zi[2,32) candidates to try and find complete internal keys.
- Parameters
-
data | Data used to carry out the attack |
zi_2_32_vector | Zi[2,32) candidates |
start | Starting index of Zi[2,32) candidates in zi_2_32_vector to try. Also used as an output parameter to tell where to restart. |
index | Index of the Zi[2,32) values relative to keystream |
jobs | Number of threads to use |
exhaustive | True to try and find all valid keys, false to stop searching after the first one is found |
progress | Object to report progress |