Align Hash and Hmac to use the same underlying classes and hash algorithms.