minix/crypto/external/bsd/openssl/dist/crypto/ripemd
Lionel Sambuc 0a6a1f1d05 NetBSD re-synchronization of the source tree
This brings our tree to NetBSD 7.0, as found on -current on the
10-10-2015.

This updates:
 - LLVM to 3.6.1
 - GCC to GCC 5.1
 - Replace minix/commands/zdump with usr.bin/zdump
 - external/bsd/libelf has moved to /external/bsd/elftoolchain/
 - Import ctwm
 - Drop sprintf from libminc

Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
2016-01-13 20:32:14 +01:00
..
asm Importing crypto libraries 2015-10-07 23:37:12 +02:00
Makefile NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
README Importing crypto libraries 2015-10-07 23:37:12 +02:00
ripemd.h NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
rmd_dgst.c NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
rmd_locl.h NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
rmd_one.c NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
rmd160.c NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
rmdconst.h NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
rmdtest.c NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00

RIPEMD-160
http://www.esat.kuleuven.ac.be/~bosselae/ripemd160.html

This is my implementation of RIPEMD-160.  The pentium assember is a little
off the pace since I only get 1050 cycles, while the best is 1013.
I have a few ideas for how to get another 20 or so cycles, but at
this point I will not bother right now.  I believe the trick will be
to remove my 'copy X array onto stack' until inside the RIP1() finctions the
first time round.  To do this I need another register and will only have one
temporary one.  A bit tricky....  I can also cleanup the saving of the 5 words
after the first half of the calculation.  I should read the origional
value, add then write.  Currently I just save the new and read the origioal.
I then read both at the end.  Bad.

eric (20-Jan-1998)