Added code for 32-bit and 64-bit platforms. Added ECDSA implementation (not supported for secp160r1 yet).