Commit graph

12 commits

Author SHA1 Message Date
Alex Rønne Petersen
c642ad4d4e Merge pull request #1256 from redstar/digestcleanup
Cleanup digest source.
2013-04-13 10:19:51 -07:00
kai
81244a242d Fix endian-dependent unit test.
The input to the digest tests is not endian-neutral. This is now
considered. The big endian values were derived by writing the data
into a file and running md5sum and sha1sum with the file as input.
2013-04-13 16:33:43 +02:00
kai
f41c576e09 Cleanup digest source.
Removes an unnecessary cast and variable initialization.
2013-04-13 13:22:09 +02:00
kai
3bbe15507c Fix big endian version of MD5 and RipeMD160.
Obviously the code has never been run on a big endian architecuture.
With these changes the unit tests passes on Linux/PPC64.
2013-04-06 13:40:44 +02:00
kai
fa96ff8f1f Fix documentation of std.digest.ripemd
Fixes the broken link to the source file and beautifies the reference list.
2013-04-05 13:10:51 +02:00
kai
fa98c6cff5 Fix big endian version of ripemd.
The upper bound of the array index is obviously wrong.
2013-03-31 01:10:57 +01:00
Martin Nowak
4a6af4e42e workaround Bug 9378
- SHA1 asm is broken for PIC
2013-01-24 03:16:26 +01:00
kai
4592361e06 Add SSSE3 implementation to SHA1 digest. 2012-11-21 19:44:01 +01:00
k-hara
28dedee456 Issue 7444 - Require [] for array copies too 2012-11-20 17:55:21 +09:00
kai
71f7a9a903 Initial implementation of RIPEMD160. 2012-10-20 21:34:33 +02:00
Kai Nacke
9dc61f6734 Add SHA-1 message digest
SHA-1 is an important message digest. E.g. it is used by git. This implementation features:
- optimized standard implementation. E.g. if compiled with -O -inline -release then there is not single function call or loop.
2012-09-16 12:25:43 +02:00
Johannes Pfau
6ff6adc5bf Add new hash API
* adds the new API used for hashes/digests
* adds new crc & md modules using this API
* deprecate std.md5 & crc32
* update std.stream to use new hash API
2012-09-16 12:25:43 +02:00