EEE (Triple Encrypt) mode applies the underlying block cipher three times in encryption mode with three independent keys (K1, K2, K3). This provides enhanced security through cascade encryption. Can be used with any block cipher to increase effective key length.
| Property | Value |
|---|---|
| Category | Cipher Modes |
| Sub-category | Block Cipher Mode |
| Security status | π Educational Only |
| Complexity | Intermediate |
| Inventor | Generic cascade cipher construction |
| Year | 1978 |
| Origin | πΊπΈ United States |
| Source | algorithms/modes/eee.js |
| Flag | Value |
|---|---|
RequiresIV |
No |
RequiresTripleKey |
Yes |
Status: π Educational Only
| Issue | Description | Mitigation |
|---|---|---|
| Meet-in-the-middle | If attacker can store 2^n encryptions, effective security may be reduced from 3n to 2n bits | β |
| Key scheduling | Poor key scheduling in underlying cipher may reduce effective security | β |
| Related keys | If keys are related, security may be significantly reduced | β |
3 vectors ship with this algorithm and run in the test suite. Byte values are hexadecimal.
Vector 1 β EEE round-trip test - 3-key mode with DES (8-byte block)
| Field | Value |
|---|---|
cipher |
DES |
key |
0123456789abcdef23456789abcdef01456789abcdef0123 |
input |
0123456789abcdef |
expected |
(empty) |
Vector 2 β EEE round-trip test - 3-key mode with DES (16-byte input)
| Field | Value |
|---|---|
cipher |
DES |
key |
0123456789abcdef23456789abcdef01456789abcdef0123 |
input |
54686520717569636b2062726f776e20 |
expected |
(empty) |
Vector 3 β EEE round-trip test - 3-key mode with DES (alternate keys)
| Field | Value |
|---|---|
cipher |
DES |
key |
abcdef0123456789bcdef01234567890cdef012345678901 |
input |
6bc1bee22e409f96e93d7e117393172a |
expected |
(empty) |