bkcrack 1.7.1
Crack legacy zip encryption with Biham and Kocher's known plaintext attack.
Attack.hpp File Reference
#include "Data.hpp"
#include "Keys.hpp"
#include "Progress.hpp"
#include "types.hpp"
#include <mutex>

Go to the source code of this file.

Classes

class  Attack
 Class to carry out the attack for a given Z[2,32) value. More...

Functions

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.

Function Documentation

◆ 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
dataData used to carry out the attack
zi_2_32_vectorZi[2,32) candidates
startStarting index of Zi[2,32) candidates in zi_2_32_vector to try. Also used as an output parameter to tell where to restart.
indexIndex of the Zi[2,32) values relative to keystream
jobsNumber of threads to use
exhaustiveTrue to try and find all valid keys, false to stop searching after the first one is found
progressObject to report progress