Added HMAC code from TLS project