Hasty Pudding Cipher with variable bit-level block sizes (0-137 billion bits). AES candidate featuring 5 sub-ciphers optimized for different block size ranges and tweakable encryption.
| Property | Value |
|---|---|
| Category | Block Ciphers |
| Sub-category | Block Cipher |
| Security status | π Educational Only |
| Complexity | Expert |
| Inventor | Rich Schroeppel |
| Year | 1998 |
| Origin | πΊπΈ United States |
| Source | algorithms/block/hpc.js |
| Parameter | Supported values |
|---|---|
| Key sizes | 16 bytes (128 bits) to 256 bytes (2048 bits) |
| Block sizes | 1 byte (8 bits) to 8192 bytes (65536 bits) |
Status: π Educational Only
No vulnerabilities are recorded for this implementation.
5 vectors ship with this algorithm and run in the test suite. Byte values are hexadecimal.
Vector 1 β HPC-Tiny 15-bit with Wagner fix (1999) - Test #0
| Field | Value |
|---|---|
key |
00000000000000000000000000000000 |
blockSizeBits |
15 |
input |
0000 |
expected |
1b41 |
Vector 2 β HPC-Tiny 15-bit with Wagner fix (1999) - Test #1
| Field | Value |
|---|---|
key |
00000000000000000000000000000000 |
blockSizeBits |
15 |
input |
0100 |
expected |
5c41 |
Vector 3 β HPC-Short 64-bit with Wagner fix (1999) - Test #0
| Field | Value |
|---|---|
key |
00000000000000000000000000000000 |
input |
0000000000000000 |
expected |
0da29b76a1616de1 |
Vector 4 β HPC-Short 64-bit with Wagner fix (1999) - Test #1
| Field | Value |
|---|---|
key |
00000000000000000000000000000000 |
input |
0100000000000000 |
expected |
99ecc89522c69080 |
Vector 5 β HPC-Short 64-bit with Wagner fix (1999) - Test #2
| Field | Value |
|---|---|
key |
00000000000000000000000000000000 |
input |
0200000000000000 |
expected |
92e8afd44c695afd |