emacs-hmac implements a Hash-Based Message Authentication Code
around Emacs's built-in secure-hash function.
-
(hmac ALGORITHM KEY MESSAGE &optional BINARY)ALGORITHMis the hash algorithm to use; it must be one of the symbols supported bysecure-hash, that is:md5,sha1,sha224,sha256,sha384, orsha512.KEYis the private key to sign with, andMESSAGEis the message to sign.BINARYis a flag which indicates whether to return a binary or hexadecimal string.Note that while
secure-hashsupports passing a buffer object as itsMESSAGEargument,hmacdoes not.