The Hasty Pudding Cipher -- Test Directory

These tests are for the UNTWEAKED version of HPC, distributed before May 1, 1999. I've since defined a one line tweak to fix the equivalent key problem that David Wagner found. New test files should be available soon.

FTP note: If the server refuses FTP access, you can have files emailed to you with FTPMAIL. Send the message "help" to ftpmail@cs.arizona.edu for instructions.

These files contain various test results from running the Hasty Pudding Cipher.
The Monte Carlo tests are explained in ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct-test.
The NIST tests are explained on the NIST AES web page http://www.nist.gov/aes/katmct/katmct.htm.
The other tests and the intermediate values (trace) results are explained in ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/README2.

Note on the .gz extension: A .gz extension indicates that the file is compressed with gzip. Some of the test files expand to several megabytes, so it's better to transfer them compressed. If your browser doesn't automatically uncompress a .gz file, you can request the same URL minus the .gz extension. My server will automatically uncompress the file and send it to you.


Four tests of Key Expansion:

Explanation and Results of Key Expansion tests (19KB) ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/kxexampl
Explanation and Results of Key Expansion tests (gzip 11KB) ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/kxexampl.gz

Test Data for Key Expansion tests
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/abc
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/alpha
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/alpha10k.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/alpha50

Trace of internal state for one Key Expansion (gzip 187KB) ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/trace-hpcksu.gz

Results of one encryption for each blocksize 1-1200 (gzip 119KB) ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/len-scan-1200.gz


Monte Carlo tests for variable block lengths:

Explanation of Monte Carlo tests ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct-test

Results of Monte Carlo tests.
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct1.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct10.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct11.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct12.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct13.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct14.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct15.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct16.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct17.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct18.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct2.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct3.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct4.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct5.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct6.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct7.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct8.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/mct9.gz

Traces of the internal workings of the Hasty Pudding Cipher, for various blocksizes.

ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr1024e.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr127e.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr128e.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr129e.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr15e.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr16e.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr1e.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr2e.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr35e.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr36e.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr3e.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr4e.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr512e.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr513e.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr5e.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr64e.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr65e.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr6e.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/tr7e.gz

NIST required tests: Known Answer Tests and Monte Carlo Tests

ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/cbc_d_m.txt.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/cbc_e_m.txt.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/ecb_d_m.txt.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/ecb_e_m.txt.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/ecb_tbl.txt.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/ecb_vk.txt.gz
ftp://ftp.cs.arizona.edu/xkernel/rcs/hpc/test/ecb_vt.txt.gz