Panama-BE
Panama: a 1998 hash function with a shift-register state, classed as broken and kept for legacy use
Practical attacks exist. Present for compatibility and research only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About Panama-BE
Panama-BE is one of 2 Panama hash variants in the NextSSL registry, a cryptographic hash function. It produces a 32-byte (256-bit) output. Its registry entry cites Panama hash (Daemen, Clapp, FSE 1998), big-endian variant, Crypto++ implementation. NextSSL lists it in the broken tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 32 | Output |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'broken' is reachable from the root API only
digest = root.call("hash_with", "panama-be", None, b"abc")[0]
nextssl_root_hash_with("panama-be", NULL, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let digest = reg::hash_in(reg::all(), Policy::Any, "panama-be", &Params::new(), b"abc")?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other Panama hash variants
1More hash functions
All 424Frequently asked questions
What is Panama-BE?
Panama-BE is a hash in the Panama hash family. Panama is a hash function proposed by Joan Daemen and Craig Clapp in 1998, using a shift register and a large state.
What are the Panama-BE sizes?
In NextSSL, Panama-BE uses: output 32 bytes.
Who designed Panama-BE and when?
Panama-BE belongs to the Panama hash family, first published in 1998 by Joan Daemen, Craig Clapp. Its origin: FSE 1998 paper.
Which standards define Panama-BE?
Panama-BE is referenced by Panama hash (Daemen, Clapp, FSE 1998), big-endian variant, Crypto++ implementation.
Is Panama-BE safe to use?
Panama-BE is in the broken tier. Practical attacks exist. Present for compatibility and research only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).
What other Panama hash variants are there?
NextSSL also registers panama-le in the Panama hash family.
Related families
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