Checksums and non-cryptographic hashes

Fletcher32

Position-dependent sum checksums from 1982, cheaper than CRCs in software

standard Safe API Not cryptographic

About Fletcher32

Fletcher32 is one of 2 Fletcher checksums variants in the NextSSL registry, a checksum / non-cryptographic hash. It produces a 4-byte (32-bit) output. Its registry entry cites Fletcher 1982. NextSSL lists it in the standard tier and exposes it through the safe API.

Overview

The Fletcher checksum is an error-detecting checksum devised by John G. Fletcher at Lawrence Livermore Laboratory and published in 1982. It improves on a simple sum by also summing the running totals, so it detects reordered data. It provides no security against a deliberate attacker.

Fletcher-16 processes 8-bit words and keeps two sums modulo 255; Fletcher-32 processes 16-bit words with sums modulo 65535. The first sum accumulates data words; the second accumulates the first sum, which makes the checksum sensitive to position. The result concatenates the two sums. It is cheaper to compute than a CRC.

NextSSL includes Fletcher-16 and Fletcher-32. The checksum is used in some network protocols and file systems, and Adler-32 is a variant with a prime modulus. Fletcher-64 also exists. None of this provides security: the function has no secret key, and anyone can compute or deliberately collide its outputs. It has no key.

History

1982–1982
  1. Fletcher checksums published by John G. Fletcher

Security notes

Fletcher checksums are not cryptographic and can be forged trivially. Because of the ones-complement modulus they cannot distinguish all-zero from all-ones words, and their error detection is weaker than a CRC of the same width.

Typical uses

Lightweight error detectionProtocol and file-system checksums

Sizes

FieldBytesMeaning
out4Output

Use it

from nextssl_demo import NextSSL

ns = NextSSL()              # safe API: safe and standard tiers
value = ns.call("checksum", "fletcher32", None, b"123456789")[0]

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

Other Fletcher checksums variants

1

Similar names

Looking for something else?

Frequently asked questions

What is Fletcher32?

Fletcher32 is a checksum in the Fletcher checksums family. The Fletcher checksum is an error-detecting checksum devised by John G. Fletcher at Lawrence Livermore Laboratory and published in 1982.

What are the Fletcher32 sizes?

In NextSSL, Fletcher32 uses: output 4 bytes.

Who designed Fletcher32 and when?

Fletcher32 belongs to the Fletcher checksums family, first published in 1982 by John G. Fletcher. Its origin: Fletcher 1982 (IEEE Transactions on Communications).

Which standards define Fletcher32?

Fletcher32 is referenced by Fletcher 1982.

Is Fletcher32 safe to use?

Fletcher32 is in the standard tier. Standardised and sound. Reachable from the safe API. It can be called from the safe API.

What other Fletcher checksums variants are there?

NextSSL also registers fletcher16 in the Fletcher checksums family.