Skip to content

Commit d2b4d2b

Browse files
committed
Throw in AES-CBC decrypt operation for odd ciphertext lengths
If the ciphertext is not a positive multiple of 16 bytes, return an OperationError.
1 parent d68a54a commit d2b4d2b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/Overview.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10662,6 +10662,12 @@ <h4>Operations</h4>
1066210662
{{OperationError}}.
1066310663
</p>
1066410664
</li>
10665+
<li>
10666+
<p>
10667+
If the length of |ciphertext| is zero or is not a multiple
10668+
of 16 bytes, then [= exception/throw =] an {{OperationError}}.
10669+
</p>
10670+
</li>
1066510671
<li>
1066610672
<p>
1066710673
Let |paddedPlaintext| be the result of performing the CBC Decryption

0 commit comments

Comments
 (0)