New issue
Advanced search Search tips

Issue 721962 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

wpt/WebCryptoAPI/encrypt_decrypt/test_aes_gcm.https has unexpected failure for tagLength = 256

Project Member Reported by eroman@chromium.org, May 13 2017

Issue description

This test:

https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/external/wpt/WebCryptoAPI/encrypt_decrypt/aes_gcm_vectors.js?q=aes_gcm_vectors.js&dr=C&l=249

Expects AES-GCM to fail with an OperationError when given a tag length of 256.
However in Chrome, it fails with a TypeError.

I believe Chrome's error is the correct one, since:
    [EnforceRange] octet tagLength;

Therefore a tagLength of 256 is outside of the range of octet, and should be an IDL level failure.

Here is what the test currently gives in Chrome:

FAIL AES-GCM 128-bit key, illegal tag length 256-bits assert_equals: Should throw an OperationError instead of AesGcmParams: tagLength: Outside of numeric range expected "OperationError" but got "TypeError"
 
Project Member

Comment 1 by sheriffbot@chromium.org, May 14 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 2 by eroman@chromium.org, May 14 2018

Labels: -Hotlist-Recharge-Cold
Status: Available (was: Untriaged)

Sign in to add a comment