summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-08-16 00:42:18 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-08-16 00:42:18 +0200
commit21490649347dd7738131635333645926ea49c1d1 (patch)
tree77c68a393811db38f35a7a1788295edcdacb176c
parent34a9c6bef7db450e0d8ea58dbc04740e3b261b12 (diff)
HMAC: Add test data.
-rw-r--r--hmac.rkt9
1 files changed, 8 insertions, 1 deletions
diff --git a/hmac.rkt b/hmac.rkt
index 6ff03cf..b9d012d 100644
--- a/hmac.rkt
+++ b/hmac.rkt
@@ -55,8 +55,15 @@
msg))
hashsize)))))
+;; According to Ironclad:
+;;
+;; CRYPTO[12]> (map nil
+;; (lambda (x) (format t "~x" x))
+;; (hmac-digest (make-hmac "" 'whirlpool)))
+;; 57D73990319055DEFA7739FF7B72406A927BBC54E8FCDC98E145FA4C36CE83
+;; A9CF165AD1E0D1925F93AC1D12B985A26044E9FB1B9CCE24301FAA76EAAB53
+;;
#;
(begin
(require "whirlpool.rkt")
(printf "~x~%" (hmac whirlpool 64 64 #"" #"")))
-