From: Andreas L. <ale...@ra...> - 2008-03-28 10:21:53
|
On Wed, 2008-03-26 at 18:22 +0000, Howard Thomson wrote: > Hi Andreas, > > Well I would wrap C routines for either MD5 or SHA1, which I have been > intending to complete Real-Soon-Now for sometime. > > Only four C calls are needed: > > sha1.initialize > sha1.process (address: POINTER; count: INTEGER) > sha1.finalize > signature := sha1.result_as_string > > or something like that ... > > I will send you a couple of Eiffel files that will need adapting; they were > last used with SmartEiffel and the result_as_string routine will need to be > adapted to Gobo's string and character routines. > > See md5deep.sourceforge.net > > If you get it working, I would be obliged if you would return the working > classes ... Hi Howard, many thanks for your code. Sorry for not getting back earlier. Stefan Mori was really excited by the idea of implementing the Whirlpool algorithm and has already finished it by now. If you are interested you can grab it from http://svn.origo.ethz.ch/wsvn/eiffelstudio/branches/eth/cdd/Eiffel_61/Src/Eiffel/cdd/support/#_branches_eth_cdd_Eiffel_61_Src_Eiffel_cdd_support_ Andreas |