bkcrack: Zreduction Class Reference

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

Zreduction Class Reference

Generate and reduce Z values. More...

`#include <bkcrack/Zreduction.hpp>`

## Public Member Functions
| Zreduction (const std::vector< std::uint8_t > &keystream)
| Constructor generating Zi[10,32) values from the last keystream byte.
void | reduce (Progress &progress)
| Reduce Zi[10,32) number using extra contiguous keystream.
void | generate ()
| Extend Zi[10,32) values into Zi[2,32) values using keystream.
auto | getCandidates () const -> const std::vector< std::uint32_t > &
auto | getIndex () const -> std::size_t

## Detailed Description

Generate and reduce Z values.

## Member Function Documentation

## ◆ getCandidates()

auto Zreduction::getCandidates | ( |  | ) | const -> const std::vector< std::uint32_t > &

Returns
  the generated Zi[2,32) values

## ◆ getIndex()

auto Zreduction::getIndex | ( |  | ) | const -> std::size_t

Returns
  the index of the Zi[2,32) values relative to keystream

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

- include/bkcrack/Zreduction.hpp