bkcrack: Crc32Tab Class Reference

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

Crc32Tab Class Reference

Lookup tables for CRC32 related computations. More...

`#include <bkcrack/Crc32Tab.hpp>`

## Static Public Member Functions
static auto | crc32 (std::uint32_t pval, std::uint8_t b) -> std::uint32_t
static auto | crc32inv (std::uint32_t crc, std::uint8_t b) -> std::uint32_t
static auto | getYi_24_32 (std::uint32_t zi, std::uint32_t zim1) -> std::uint32_t
static auto | getZim1_10_32 (std::uint32_t zi_2_32) -> std::uint32_t

## Detailed Description

Lookup tables for CRC32 related computations.

## Member Function Documentation

## ◆ crc32()

auto Crc32Tab::crc32 | ( | std::uint32_t | pval,
|  | std::uint8_t | b ) -> std::uint32_t
| inlinestatic

Returns
  CRC32 using a lookup table

## ◆ crc32inv()

auto Crc32Tab::crc32inv | ( | std::uint32_t | crc,
|  | std::uint8_t | b ) -> std::uint32_t
| inlinestatic

Returns
  CRC32^-1 using a lookup table

## ◆ getYi_24_32()

auto Crc32Tab::getYi_24_32 | ( | std::uint32_t | zi,
|  | std::uint32_t | zim1 ) -> std::uint32_t
| inlinestatic

Returns
  Yi[24,32) from Zi and Z{i-1} using CRC32^-1

## ◆ getZim1_10_32()

auto Crc32Tab::getZim1_10_32 | ( | std::uint32_t | zi_2_32 | ) | -> std::uint32_t
| inlinestatic

Returns
  Z{i-1}[10,32) from Zi[2,32) using CRC32^-1

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

- include/bkcrack/Crc32Tab.hpp