Horizon Official Technical Documentation
|
|
#include <DES.hpp>
Public Member Functions | |
void | decryptBlock (BIT64 *block) |
void | decrypt (unsigned char *data, size_t size) |
void | roundFunction (BIT64 *src) |
DES round function. XORs src[0..3] with TP(SBOX(E(src[4..7]))). More... | |
void | SBOX (BIT64 *src) |
void | E (BIT64 *src) |
Expansion (E). Expands upper four 8-bits (32b) into eight 6-bits (48b). More... | |
void | TP (BIT64 *src) |
Transposition (P-BOX). More... | |
void | IP (BIT64 *src) |
Initial permutation (IP). More... | |
void | FP (BIT64 *src) |
Final permutation (IP^-1). More... | |
void DES::decrypt | ( | unsigned char * | data, |
size_t | size | ||
) |
References decryptBlock().
void DES::decryptBlock | ( | BIT64 * | block | ) |
References FP(), IP(), and roundFunction().
Referenced by GRF::decodeFull(), GRF::decodeHeader(), and decrypt().
void DES::E | ( | BIT64 * | src | ) |
Expansion (E). Expands upper four 8-bits (32b) into eight 6-bits (48b).
References BIT64::b.
Referenced by roundFunction().
void DES::FP | ( | BIT64 * | src | ) |
Final permutation (IP^-1).
References BIT64::b, and mask.
Referenced by decryptBlock().
void DES::IP | ( | BIT64 * | src | ) |
Initial permutation (IP).
References BIT64::b, and mask.
Referenced by decryptBlock().
void DES::roundFunction | ( | BIT64 * | src | ) |
DES round function. XORs src[0..3] with TP(SBOX(E(src[4..7]))).
References BIT64::b, E(), SBOX(), and TP().
Referenced by decryptBlock().
void DES::SBOX | ( | BIT64 * | src | ) |
References BIT64::b.
Referenced by roundFunction().
void DES::TP | ( | BIT64 * | src | ) |
Transposition (P-BOX).
References BIT64::b, and mask.
Referenced by roundFunction().