Hash functions

Panama-LE

Panama: a 1998 hash function with a shift-register state, classed as broken and kept for legacy use

broken Root API only
Broken tier.

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-LE

Panama-LE 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), little-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–1998
  1. Panama hash published by Joan Daemen, Craig Clapp

How it works

  1. The message is padded and split into words.
  2. The words are fed through a shift register and mixing steps that update the state.
  3. 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

Legacy compatibility onlyHistorical study of 1990s hash designsNot recommended for any new use

Sizes

FieldBytesMeaning
out32Output

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-le", None, b"abc")[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Other Panama hash variants

1

Frequently asked questions

What is Panama-LE?

Panama-LE 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-LE sizes?

In NextSSL, Panama-LE uses: output 32 bytes.

Who designed Panama-LE and when?

Panama-LE belongs to the Panama hash family, first published in 1998 by Joan Daemen, Craig Clapp. Its origin: FSE 1998 paper.

Which standards define Panama-LE?

Panama-LE is referenced by Panama hash (Daemen, Clapp, FSE 1998), little-endian variant, Crypto++ implementation.

Is Panama-LE safe to use?

Panama-LE 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-be in the Panama hash family.