alder32 top-level constant
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 alla
values. Both sums are done modulo65521
.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();