hohl / MIHCrypto

OpenSSL wrapper for Objective-C [cryptography]
MIT License
340 stars 68 forks source link

Fix calculating hash bug in signWithSHA128:error: #13

Closed akhilstanis closed 9 years ago

akhilstanis commented 9 years ago

In my previous commit I used SHA* functions to calculate the SHA128 hash and it is wrong. SHA* functions calculates the SHA-0 which is the direct ancestor of SHA-1 and is an obsolete algorithm. I have changed it to use SHA1_* functions which correctly calculates SHA1 hash.

akhilstanis commented 9 years ago

Hey! Is something wrong with patch?