-
Notifications
You must be signed in to change notification settings - Fork 2k
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 DONTBUILD 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
3b71eca
commit 51dc067
Showing
6 changed files
with
46 additions
and
86 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 |