Hash family

Panama hash

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

broken 2 variants FSE 1998 paper

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

Variants in NextSSL

2
AlgorithmTierSizes (bytes)StandardsAPI
Panama-BE
panama-be
broken out 32 Panama hash (Daemen, Clapp, FSE 1998), big-endian varia… root
Panama-LE
panama-le
broken out 32 Panama hash (Daemen, Clapp, FSE 1998), little-endian va… root

Frequently 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.