bkcrack: Attack Class Reference

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

Attack Class Reference

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

`#include <bkcrack/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.

## Static Public Attributes
static constexpr std::size_t | contiguousSize = 8
| Number of contiguous known plaintext bytes required by the attack.
static constexpr std::size_t | attackSize = 12
| Total number of known plaintext bytes required by the attack.

## Detailed Description

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

## Constructor & Destructor Documentation

## ◆ Attack()

Attack::Attack | ( | const Data & | data,
|  | std::size_t | index,
|  | std::vector< Keys > & | solutions,
|  | std::mutex & | solutionsMutex,
|  | bool | exhaustive,
|  | Progress & | progress )

Constructor.

Parameters

  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

The documentation for this class was generated from the following file:

- include/bkcrack/Attack.hpp