Added hex string function and hmac functions.