bkcrack 1.7.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 <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
dataData used to carry out the attack
indexIndex of Z[2,32) values passed to carry out the attack
solutionsShared output vector for valid keys
solutionsMutexMutex to protect solutions from concurrent access
exhaustiveTrue to try and find all valid keys, false to stop searching after the first one is found
progressObject to report progress

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