hmac function

compute a hash-based message authentication code