Skip to content

Commit

Permalink
Merge pull request #116 from haesbaert/blocksz
Browse files Browse the repository at this point in the history
Fix wrong Invalid_argument string.
  • Loading branch information
pqwy committed Oct 1, 2017
2 parents f602615 + 288fafa commit 0478bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cipher_block.ml
Expand Up @@ -284,7 +284,7 @@ module Modes2 = struct

let stream ~key ~ctr ?off n =
if ctr.len <> block then
Raise.invalid "CTR: counter not %d bytes" ctr.len ;
Raise.invalid "CTR: counter not %d bytes" block ;
if n < 0 then
Raise.invalid "CTR: negative size (%d)" n ;
match off with
Expand Down

0 comments on commit 0478bfb

Please sign in to comment.