alder32 top-level constant

HashBase<HashDigestSink> const alder32

Adler-32 is composed of two sums accumulated per byte.

According to RFC-1950, the algorithm is described as follows:

  • a is the sum of all bytes, b is the sum of all a values. Both sums are done modulo 65521.
  • a is initialized to 1, b to 0.
  • Final output is b * 65536 + a

WARNING: It should not be used for cryptographic purposes.

Implementation

const HashBase alder32 = _Alder32();