Panama hash
Panama: a 1998 hash function with a shift-register state, classed as broken and kept for legacy use
Overview
Panama is a hash function proposed by Joan Daemen and Craig Clapp in 1998, using a shift register and a large state. NextSSL marks it broken and carries big-endian and little-endian variants from the Crypto++ implementation.
Panama combines a shift register with a set of mixing steps and processes message words in a fixed pattern. The design was proposed in the late 1990s and was studied during the following decade. Entries without a round label are carried as single archived designs, and their provenance is recorded only as far as the source data goes. Each output length is listed separately so that tests can select the exact digest size.
NextSSL carries two variants, panama-be, panama-le, each with 256-bit (32 bytes) output. They differ in byte order, which affects which bytes of the input word are used. The tier is unverified, which means no review of the design, its parameters or its test vectors is recorded. Production code should use SHA-2 or SHA-3 as standardised by NIST, and treat these entries as research material.
The design has known collision attacks, so the registry tier is broken. Do not use Panama for new systems, and keep it only for compatibility or research. Entries without a round label are carried as single archived designs, and their provenance is recorded only as far as the source data goes. Each output length is listed separately so that tests can select the exact digest size.
History
1998–1998Panama hash published by Joan Daemen, Craig Clapp
How it works
- The message is padded and split into words.
- The words are fed through a shift register and mixing steps that update the state.
- The digest is read from the final state in the variant's byte order.
Security notes
Collision attacks on Panama are known, and the registry tier is broken. Do not use it for signatures, integrity checks or password storage.
Typical uses
Variants in NextSSL
2Frequently asked questions
What is Panama hash?
Panama is a hash function proposed by Joan Daemen and Craig Clapp in 1998, using a shift register and a large state.
Is Panama hash secure?
Collision attacks on Panama are known, and the registry tier is broken.
What digest sizes does Panama hash produce?
The archived Panama hash variants are: panama-be gives 256-bit (32 bytes); panama-le gives 256-bit (32 bytes).
Which Panama hash variants does NextSSL include?
NextSSL registers 2 Panama hash variants: panama-be, panama-le.
Families with similar names
Other hash functions
All 424Related
Ron Rivest's message-digest hashes; all three are broken and kept for legacy use
RIPEMDThe European RIPE-project hashes, best known as RIPEMD-160 in Bitcoin addresses
SHA-1 and SHA-0The 160-bit NIST hash with practical collisions since 2017; kept for compatibility
SHA-2The NIST Merkle–Damgård hash family behind most of today's TLS, signatures and software
WhirlpoolA 512-bit hash built on an AES-like block cipher, standardised in ISO/IEC 10118-3