Skip to content

Commit 43f2f62

Browse files
authored
Throw in AES-CBC decrypt operation for odd ciphertext lengths (#382)
If the ciphertext is not a positive multiple of 16 bytes, return an OperationError.
1 parent c8b273d commit 43f2f62

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/Overview.html

+6
Original file line numberDiff line numberDiff line change
@@ -12710,6 +12710,12 @@ <h5>Decrypt</h5>
1271012710
{{OperationError}}.
1271112711
</p>
1271212712
</li>
12713+
<li>
12714+
<p>
12715+
If the length of |ciphertext| is zero or is not a multiple
12716+
of 16 bytes, then [= exception/throw =] an {{OperationError}}.
12717+
</p>
12718+
</li>
1271312719
<li>
1271412720
<p>
1271512721
Let |paddedPlaintext| be the result of performing the CBC Decryption

0 commit comments

Comments
 (0)