Hmac changes

Added hmac and hmac' functions and hmac tests.