add SHA512 for signing
check the return value of the signing operation