The review of std.hash package
RivenTheMage
riven-mage at id.ru
Wed Aug 15 01:49:26 PDT 2012
On Wednesday, 8 August 2012 at 16:47:35 UTC, Johannes Pfau wrote:
> std.hash.digest doesn't sound too bad. We could have
> std.hash.func (or
> a better named module ;-) for general hash functions later.
Three basic types of hash functions are:
1) Hash - for fast searching and indexing in data structures
2) Checksum - detects the accidental errors in files, archives,
streams
3) Message digest code - prevents the intentional modification of
data
They should not be mixed IMHO.
1) should go into std.container or (maybe) std.algorithm
2) std.checksum
3) std.crypto.mdc or std.crypto.digest
More information about the Digitalmars-d
mailing list