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.
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.