diff options
author | code <code@mail.matthias.benkard.de> | 2014-11-10 22:04:35 +0100 |
---|---|---|
committer | code <code@mail.matthias.benkard.de> | 2014-11-10 22:04:35 +0100 |
commit | 7a00f761db31ada5098d3e4a2ce995fa775c47c9 (patch) | |
tree | 7fe39513703860694d4ed435f3e00b1b6a87481c /hmac.rkt | |
parent | 5b1507b89b3c688cf92a6c303ec0bf7d5648309a (diff) |
Diffstat (limited to 'hmac.rkt')
-rw-r--r-- | hmac.rkt | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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)] |