Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.44 KB

README.md

File metadata and controls

56 lines (40 loc) · 1.44 KB

Compilation

On a Debian testing/unstable:

git clone https://github.com/ph4r05/Whitebox-crypto-AES.git
apt-get install libntl-dev libboost-iostreams1.62-dev libboost-program-options1.62-dev libboost-random1.62-dev libboost-serialization1.62-dev
cd Whitebox-crypto-AES
# git checkout bc52b32
./build-release.sh

You'll find here the result of the Release compilation.

You can find also versions compiled with Boost 1.62 and 1.74.

Usage

By defaut it generates tables then encrypts input.
We can also separate both steps, which is more representative of a whitebox and its generator.

Generating tables (optionally with a specific key --use-key ...):

./main --create-table tables_karroumi_noextenc.tbl

Using the white-box:

./main --load-tables tables_karroumi_noextenc.tbl --input-files <(echo 6bc1bee22e409f96e93d7e117393172a|xxd -r -p) --out-file >(xxd -p)
3ad77bb40d7a3660a89ecaf32466ef97

Variant with external encodings:

./main --create-table tables_karroumi_extenc.tbl --extEnc=1

Using the white-box:

./main --load-tables tables_karroumi_extenc.tbl --extEnc=1 --input-files <(echo 6bc1bee22e409f96e93d7e117393172a|xxd -r -p) --out-file >(xxd -p)
3ad77bb40d7a3660a89ecaf32466ef97

Solution

echo 6bc1bee22e409f96e93d7e117393172a|xxd -r -p|openssl enc -e -aes-128-ecb -nopad -K 2b7e151628aed2a6abf7158809cf4f3c |xxd -p
3ad77bb40d7a3660a89ecaf32466ef97