rfc2104

Homepage: https://www.gnu.org/software/emacs

Author: Simon Josefsson

Summary

RFC2104 Hashed Message Authentication Codes

Commentary

This is a high performance implementation of RFC2104.

Example:

(rfc2104-hash 'md5 64 16 "Jefe" "what do ya want for nothing?")
"750c783e6ab0b503eaa86e310a5db738"

(rfc2104-hash 'sha1 64 20 "Jefe" "what do ya want for nothing?")
"effcdf6ae5eb2fa2d27416d5f184df9c259a7c79"

64 is block length of hash function (64 for MD5 and SHA), 16 is
resulting hash length (16 for MD5, 20 for SHA).

Test case reference: RFC 2202.

Dependencies

Reverse dependencies