Revert "Fix for timing attacks on MAC verification."

This reverts commit 32a5c80cb85e0a322202561f00fa4692fe6d7c94.
Revert "Changed underlying HMAC algo. to sha512."

This reverts commit fd9b45182a63878af0ee23d95d47ef15bec0ad95.
revert test changes