bkcrack: KeystreamTab Class Reference

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

KeystreamTab Class Reference

Lookup tables for keystream related computations. More...

`#include <bkcrack/KeystreamTab.hpp>`

## Static Public Member Functions
static auto | getByte (std::uint32_t zi) -> std::uint8_t
static auto | getZi_2_16_vector (std::uint8_t ki, std::uint32_t zi_10_16) -> const std::vector< std::uint32_t > &
static auto | hasZi_2_16 (std::uint8_t ki, std::uint32_t zi_10_16) -> bool

## Detailed Description

Lookup tables for keystream related computations.

## Member Function Documentation

## ◆ getByte()

auto KeystreamTab::getByte | ( | std::uint32_t | zi | ) | -> std::uint8_t
| inlinestatic

Returns
  the keystream byte ki associated to a Zi value

Note
  Only Zi[2,16) is used

## ◆ getZi_2_16_vector()

auto KeystreamTab::getZi_2_16_vector | ( | std::uint8_t | ki,
|  | std::uint32_t | zi_10_16 ) -> const std::vector< std::uint32_t > &
| inlinestatic

Returns
  a vector of Zi[2,16) values having given [10,16) bits such that getByte(zi) is equal to ki

Note
  the vector contains one element on average

## ◆ hasZi_2_16()

auto KeystreamTab::hasZi_2_16 | ( | std::uint8_t | ki,
|  | std::uint32_t | zi_10_16 ) -> bool
| inlinestatic

Returns
  true if the vector returned by getZi_2_16_vector is not empty, false otherwise

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

- include/bkcrack/KeystreamTab.hpp