Skip to content

Commit

Permalink
Replace usage of zipWith (^) with (^) in a book example.
Browse files Browse the repository at this point in the history
Fixes #803.
  • Loading branch information
Brian Huffman committed Sep 23, 2020
1 parent 2f91929 commit ca6ac40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ProgrammingCryptol/crashCourse/CrashCourse.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3346,8 +3346,8 @@ \section{Program structure with modules}
hmac : {keySize, msgSize} (fin keySize, fin msgSize) => [keySize] -> [msgSize] -> [512]
hmac k m = sha3 (ko # sha3 (ki # m))
where ko = zipWith (^) kFull (join (repeat 0x5c))
ki = zipWith (^) kFull (join (repeat 0x36))
where ko = kFull ^ join (repeat 0x5c)
ki = kFull ^ join (repeat 0x36)
kFull = if `keySize == blocksize
then take (k#zero)
else sha3 k
Expand Down

0 comments on commit ca6ac40

Please sign in to comment.