bkcrack 1.7.1
Crack legacy zip encryption with Biham and Kocher's known plaintext attack.
|
Class to carry out the attack for a given Z[2,32) value. More...
#include <Attack.hpp>
Public Member Functions | |
Attack (const Data &data, std::size_t index, std::vector< Keys > &solutions, std::mutex &solutionsMutex, bool exhaustive, Progress &progress) | |
Constructor. | |
void | carryout (std::uint32_t z7_2_32) |
Carry out the attack for the given Z[2,32) value. |
Class to carry out the attack for a given Z[2,32) value.
Attack::Attack | ( | const Data & | data, |
std::size_t | index, | ||
std::vector< Keys > & | solutions, | ||
std::mutex & | solutionsMutex, | ||
bool | exhaustive, | ||
Progress & | progress ) |
Constructor.
data | Data used to carry out the attack |
index | Index of Z[2,32) values passed to carry out the attack |
solutions | Shared output vector for valid keys |
solutionsMutex | Mutex to protect solutions from concurrent access |
exhaustive | True to try and find all valid keys, false to stop searching after the first one is found |
progress | Object to report progress |