bkcrack: include/bkcrack/Attack.hpp File Reference

bkcrack 1.8.1 Crack legacy zip encryption with Biham and Kocher's known plaintext attack.

Attack.hpp File Reference
`#include <bkcrack/Data.hpp>`
`#include <bkcrack/Keys.hpp>`
`#include <bkcrack/Progress.hpp>`
`#include <bkcrack/types.hpp>`
`#include <mutex>`
Include dependency graph for Attack.hpp:

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

  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