Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. - if SSSE3 support is detected then a special assembler function is used. This gives a speedup of 1.4 on 32 bit and about 1.8 on 64 bit The 64 bit implementation is a bit clumsy because of some issues with the dmd compiler (issues 6459 and 5355). Supports 32 bit Windows and 32 bit and 64 Linux. MacOS X, FreeBSD are untested.
- Loading branch information
4592a4b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! I do think it's silly, though, to put sha1 and md5 in separate modules, especially in the top level std package. I think we should schedule std.md5 for deprecation and do one of the following: