Skip to content

Commit

Permalink
Back out workaround for issue #375.
Browse files Browse the repository at this point in the history
  • Loading branch information
robdockins committed Aug 1, 2017
1 parent 771d07f commit dcc143e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/SIV-rfc5297.md
Original file line number Diff line number Diff line change
Expand Up @@ -554,14 +554,14 @@ ctr32 : {n} (2^^39 - 128 >= n) => Key -> [128] -> [n] -> [n]
ctr32 k iv pt = pt ^ take stream
where
stream = join [E(k,v) | v <- ivs]
ivs = [take `{96} iv # cnt + i | i <- [0...]]
ivs = [take `{96} iv # cnt + i | i <- [0,1..]]
cnt = drop `{back=32} iv
ctr64 : {n} (2^^71 - 128 >= n) => Key -> [128] -> [n] -> [n]
ctr64 k iv pt = pt ^ take stream
where
stream = join [E(k,v) | v <- ivs]
ivs = [take `{64} iv # cnt + i | i <- [0...]]
ivs = [take `{64} iv # cnt + i | i <- [0,1..]]
cnt = drop `{back=64} iv
```

Expand Down

0 comments on commit dcc143e

Please sign in to comment.