Panama-LE MAC using hermetic hash function construction. Key is prepended to message before hashing. Broken by collision attacks on underlying hash - use for legacy compatibility only.
| Property | Value |
|---|---|
| Category | Message Authentication |
| Sub-category | Hermetic MAC |
| Security status | ❌ Broken |
| Complexity | Advanced |
| Inventor | Joan Daemen, Craig Clapp |
| Year | 1998 |
| Origin | 🇧🇪 Belgium |
| Source | algorithms/hash/panama.js |
| Parameter | Supported values |
|---|---|
| MAC sizes | 32 bytes (256 bits) |
| Flag | Value |
|---|---|
NeedsKey |
Yes |
VariableKeyLength |
Yes |
Status: ❌ Broken
No vulnerabilities are recorded for this implementation.
3 vectors ship with this algorithm and run in the test suite. Byte values are hexadecimal.
Vector 1 — Panama-LE-MAC: Empty key, empty message (Crypto++ modified)
| Field | Value |
|---|---|
key |
(empty) |
input |
(empty) |
expected |
aa0cc954d757d7ac7779ca3342334ca471abd47d5952ac91ed837ecd5b16922b |
Vector 2 — Panama-LE-MAC: Empty key, ‘The quick brown fox…’ (Crypto++ modified)
| Field | Value |
|---|---|
key |
(empty) |
input |
54686520717569636b2062726f776e20 666f78206a756d7073206f7665722074 6865206c617a7920646f67 |
expected |
5f5ca355b90ac622b0aa7e654ef5f27e9e75111415b48b8afe3add1c6b89cba1 |
Vector 3 — Panama-LE-MAC: Key ‘The ‘, message ‘quick brown fox…’ (Crypto++ modified)
| Field | Value |
|---|---|
key |
54686520 |
input |
717569636b2062726f776e20666f7820 6a756d7073206f76657220746865206c 617a7920646f67 |
expected |
5f5ca355b90ac622b0aa7e654ef5f27e9e75111415b48b8afe3add1c6b89cba1 |