Provides a basic and primitive hmac. From wikipedia: "In cryptography, HMAC (Hash-based Message Authentication Code) is a specific construction for calculating a message authentication code (MAC) involving a cryptographic hash function in combination with a secret key."
Contact me at email@example.com.
- hmac key digest-primitive #!optional (result-form 'string)procedure
Takes key and digest-primitive and returns a function that takes message and produces an hmac.
The result-form parameter may be used to change the format of the resulting hash, please refer to the message-digest documentation for more informations.
- hmac-primitive key digest-primitiveprocedure
Takes key and digest-primitive and returns a message-digest-primitive that calculates the HMAC with the parameters given.
(import hmac sha1) ((hmac "secret-key" (sha1-primitive)) "message")
Rewritten as a message-digest primitive. Removed the block-size parameter as that's something specified by the hashing algorithm chosen.
The hmac procedure no longer destroys the input. Code cleanup and miscellaneous fixes.
Removed dependency on srfi-4-utils as it is GPL and hmac is BSD.
Fixed egg category (was cryptography, now crypt)
Forgot to update .setup to match version in .release-info
Fixed install dependency bug