summaryrefslogtreecommitdiff
path: root/hmac.rkt
diff options
context:
space:
mode:
authorcode <code@mail.matthias.benkard.de>2014-11-10 22:04:35 +0100
committercode <code@mail.matthias.benkard.de>2014-11-10 22:04:35 +0100
commit7a00f761db31ada5098d3e4a2ce995fa775c47c9 (patch)
tree7fe39513703860694d4ed435f3e00b1b6a87481c /hmac.rkt
parent5b1507b89b3c688cf92a6c303ec0bf7d5648309a (diff)
Update for Racket 6.1.HEADmaster
Diffstat (limited to 'hmac.rkt')
-rw-r--r--hmac.rkt7
1 files changed, 7 insertions, 0 deletions
diff --git a/hmac.rkt b/hmac.rkt
index b618537..3a23119 100644
--- a/hmac.rkt
+++ b/hmac.rkt
@@ -31,6 +31,13 @@
;;
;; (hmac whirlpool 64 64 #"<secret key>" #"hello")
;;
+(: hmac ((Bytes -> Exact-Nonnegative-Integer)
+ Exact-Nonnegative-Integer
+ Exact-Nonnegative-Integer
+ Bytes
+ Bytes
+ ->
+ Exact-Nonnegative-Integer))
(define (hmac hashfn blocksize hashsize key msg)
(let ([opad (make-bytes blocksize #x5c)]
[ipad (make-bytes blocksize #x36)]