New hash API: Update

Johannes Pfau nospam at example.com
Sun Jun 24 09:25:38 PDT 2012


Am Sun, 24 Jun 2012 18:07:53 +0200
schrieb Piotr Szturmaj <bncrbme at jadamspam.pl>:

> Johannes Pfau wrote:
> > I'm mostly finished with my hash API proposal. I also ported the
> > existing crc, md5 and the proposed sha1 hash to this new API.
> >
> > I changed the namespace to std.util.digest. Andrei once said he
> > thinks std.digest/std.hash is a too narrow package and someone else
> > said putting crc into std.crypto.digest is ridiculous. So I did
> > what tango and other libraries do and created a std.util module.
> >
> > I think std.uuid would also fit well into std.util so it'd become
> > std.util.uuid.
> 
> I vote for std.crypto.hash and std.uuid. CRC, Adler and others could
> fit in std.checksum.

We could do this as well. Then we also have to decide whether we want
to have a common API for std.checksum and std.crypto.hash. And we have
to decide where to put the common parts, those that are in
std.util.digest.digest right now.


More information about the Digitalmars-d mailing list