adding support for SHA512