Page 1 of 1

RSA MD5 Implementation Enquiry

Posted: Fri Aug 07, 2009 2:24 pm
by ConvertFromOldNGs
by Tom Livingstone >> Sun, 14 May 2000 4:27:06 GMT

Has anybody implemented an RSA MD5 message digest class in Jade that
they are prepared to share?
Alternatively, do you know of a Windows implementation that can be accessed without the involvement of a C compiler or VB?
If neither, then any suggestions about bit twiddling the Jade
primitives? I have the RSA reference implementation, written in C, but
it involves use of unsigned 32-bit integers, and lots of shift-right, shift-left, rotate-left, none of which appears supported within Jade?

Re: RSA MD5 Implementation Enquiry

Posted: Fri Aug 07, 2009 2:24 pm
by ConvertFromOldNGs
by Wilfred Verkley >> Mon, 15 May 2000 3:11:35 GMT

Use the MS Crypto API. Its a standard API library provided by DLL that most versions of windows have (except possibly the earlier versions of 95). Its not a complicated inteface, so Jade can talk to it directly. We use it to SHA1 hash our passwords.

These are the functions you will need to interface to :

cryptAcquireContext
cryptCreateHash
cryptHashData
cryptGetHashParam
cryptDestroyHash
cryptReleaseContext

There is some other useful stuff in there too (strong random number generators, conventional and public-key encryption, certificates, S/MIME etc).

Regards,

Wilfred.