See forthcoming: https://github.com/w3c/webcrypto/pull/132 Once/if that is merged to master, match the order in Chromium.
Landed in spec: https://github.com/w3c/webcrypto/commit/ccd586cc2cf0c7fe8db524622dd35b1fa39fe7c4
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/523dbeff770eac1be9c6eb8b5efe41be71a2d628 commit 523dbeff770eac1be9c6eb8b5efe41be71a2d628 Author: eroman <eroman@chromium.org> Date: Wed Sep 07 18:48:01 2016 Copy data bytes in Web Crypto's importKey() and verify() operations BEFORE normalizing the algorithm. This matches the change in the spec: https://github.com/w3c/webcrypto/commit/ccd586cc2cf0c7fe8db524622dd35b1fa39fe7c4 The motivation is consistency with other functions. Algorithm normalization might modify the data buffer. BUG= 641494 Review-Url: https://codereview.chromium.org/2316633003 Cr-Commit-Position: refs/heads/master@{#417010} [add] https://crrev.com/523dbeff770eac1be9c6eb8b5efe41be71a2d628/third_party/WebKit/LayoutTests/crypto/subtle/modify-importKey-data-during-normalization-expected.txt [add] https://crrev.com/523dbeff770eac1be9c6eb8b5efe41be71a2d628/third_party/WebKit/LayoutTests/crypto/subtle/modify-importKey-data-during-normalization.html [add] https://crrev.com/523dbeff770eac1be9c6eb8b5efe41be71a2d628/third_party/WebKit/LayoutTests/crypto/subtle/modify-verify-data-during-normalization-expected.txt [add] https://crrev.com/523dbeff770eac1be9c6eb8b5efe41be71a2d628/third_party/WebKit/LayoutTests/crypto/subtle/modify-verify-data-during-normalization.html [modify] https://crrev.com/523dbeff770eac1be9c6eb8b5efe41be71a2d628/third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp
Comment 1 by eroman@chromium.org
, Sep 6 2016Status: Assigned (was: Available)