bkcrack: MultTab Class Reference

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

MultTab Class Reference

Lookup tables for multiplication related computations. More...

`#include <bkcrack/MultTab.hpp>`

## Static Public Member Functions
static auto | getMsbProdFiber2 (std::uint8_t msbprodinv) -> const std::vector< std::uint8_t > &
static auto | getMsbProdFiber3 (std::uint8_t msbprodinv) -> const std::vector< std::uint8_t > &

## Static Public Attributes
static constexpr std::uint32_t | mult = 0x08088405
| Multiplicative constant used in traditional PKWARE encryption.
static constexpr std::uint32_t | multInv = 0xd94fa8cd
| Multiplicative inverse of mult modulo 2^32.

## Detailed Description

Lookup tables for multiplication related computations.

## Member Function Documentation

## ◆ getMsbProdFiber2()

auto MultTab::getMsbProdFiber2 | ( | std::uint8_t | msbprodinv | ) | -> const std::vector< std::uint8_t > &
| inlinestatic

Returns
  a vector of bytes x such that msb(x*mult^-1) is equal to msbprod or msbprod-1

## ◆ getMsbProdFiber3()

auto MultTab::getMsbProdFiber3 | ( | std::uint8_t | msbprodinv | ) | -> const std::vector< std::uint8_t > &
| inlinestatic

Returns
  a vector of bytes x such that msb(x*mult^-1) is equal to msbprod, msbprod-1 or msbprod+1

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

- include/bkcrack/MultTab.hpp