Fix calculating hash bug in signWithSHA128:error:

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.