Skip to content

Commit 696b345

Browse files
authored
Argon2: Check that a whole number of bytes is requested (#54)
In the Argon2 derive bits operation, throw an `OperationError` if a number of bits that's not a multiple of 8 is requested.
1 parent b501060 commit 696b345

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎index.html‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6882,7 +6882,8 @@ <h5>Derive Bits</h5>
68826882
<ol>
68836883
<li>
68846884
<p>
6885-
If |length| is null, or is less than 32 (4*8), then [= exception/throw =] an {{OperationError}}.
6885+
If |length| is null, or is less than 32 (4*8), or is not a multiple of 8,
6886+
then [= exception/throw =] an {{OperationError}}.
68866887
</p>
68876888
</li>
68886889
<li>

0 commit comments

Comments
 (0)