-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1793429 - Make the deriveBits's length argument Nullable r=keeler…
…,webidl,smaug The PR#345 [1] of the WebCrypto API specification changed the type of the deriveBits's length argument to become 'optional' and with 'null' as default value. The affected WebCrypto algorithms (HKDF, PBKDF2, ECDH and X25519) will be adapted to handle the case of a null length properly. [1] w3c/webcrypto#345 Differential Revision: https://phabricator.services.mozilla.com/D217532
- Loading branch information
1 parent
5f39be1
commit 4fb1410
Showing
7 changed files
with
50 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 0 additions & 48 deletions
48
testing/web-platform/meta/WebCryptoAPI/derive_bits_keys/derived_bits_length.https.any.js.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,14 @@ | ||
[derived_bits_length.https.any.html] | ||
[HKDF derivation with omitted as 'length' parameter] | ||
expected: FAIL | ||
|
||
[PBKDF2 derivation with omitted as 'length' parameter] | ||
expected: FAIL | ||
|
||
[ECDH derivation with 0 as 'length' parameter] | ||
expected: FAIL | ||
|
||
[ECDH derivation with null as 'length' parameter] | ||
expected: FAIL | ||
|
||
[ECDH derivation with undefined as 'length' parameter] | ||
expected: FAIL | ||
|
||
[ECDH derivation with omitted as 'length' parameter] | ||
expected: FAIL | ||
|
||
[X25519 derivation with 0 as 'length' parameter] | ||
expected: FAIL | ||
|
||
[X25519 derivation with null as 'length' parameter] | ||
expected: FAIL | ||
|
||
[X25519 derivation with undefined as 'length' parameter] | ||
expected: FAIL | ||
|
||
[X25519 derivation with omitted as 'length' parameter] | ||
expected: FAIL | ||
|
||
|
||
[derived_bits_length.https.any.worker.html] | ||
[HKDF derivation with omitted as 'length' parameter] | ||
expected: FAIL | ||
|
||
[PBKDF2 derivation with omitted as 'length' parameter] | ||
expected: FAIL | ||
|
||
[ECDH derivation with 0 as 'length' parameter] | ||
expected: FAIL | ||
|
||
[ECDH derivation with null as 'length' parameter] | ||
expected: FAIL | ||
|
||
[ECDH derivation with undefined as 'length' parameter] | ||
expected: FAIL | ||
|
||
[ECDH derivation with omitted as 'length' parameter] | ||
expected: FAIL | ||
|
||
[X25519 derivation with 0 as 'length' parameter] | ||
expected: FAIL | ||
|
||
[X25519 derivation with null as 'length' parameter] | ||
expected: FAIL | ||
|
||
[X25519 derivation with undefined as 'length' parameter] | ||
expected: FAIL | ||
|
||
[X25519 derivation with omitted as 'length' parameter] | ||
expected: FAIL |
5 changes: 0 additions & 5 deletions
5
testing/web-platform/meta/WebCryptoAPI/idlharness.https.any.js.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
[idlharness.https.any.worker.html] | ||
expected: | ||
if (os == "android") and fission: [OK, TIMEOUT] | ||
[SubtleCrypto interface: operation deriveBits(AlgorithmIdentifier, CryptoKey, optional unsigned long?)] | ||
expected: FAIL | ||
|
||
|
||
[idlharness.https.any.html] | ||
expected: | ||
if (os == "android") and fission: [OK, TIMEOUT] | ||
[SubtleCrypto interface: operation deriveBits(AlgorithmIdentifier, CryptoKey, optional unsigned long?)] | ||
expected: FAIL |