-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Add Ed448 support in WebCryptoAPI
Add full support for Ed448 and import relevant tests.
- Loading branch information
Showing
15 changed files
with
1,521 additions
and
7 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
391 changes: 391 additions & 0 deletions
391
Tests/LibWeb/Text/expected/wpt-import/WebCryptoAPI/generateKey/failures_Ed448.https.any.txt
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
Tests/LibWeb/Text/expected/wpt-import/WebCryptoAPI/generateKey/successes_Ed448.https.any.txt
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Harness status: OK | ||
|
||
Found 18 tests | ||
|
||
18 Pass | ||
Pass Success: generateKey({name: ED448}, false, [sign]) | ||
Pass Success: generateKey({name: ED448}, true, [sign]) | ||
Pass Success: generateKey({name: ED448}, false, [verify, sign]) | ||
Pass Success: generateKey({name: ED448}, true, [verify, sign]) | ||
Pass Success: generateKey({name: ED448}, false, [sign, verify, sign, sign, verify]) | ||
Pass Success: generateKey({name: ED448}, true, [sign, verify, sign, sign, verify]) | ||
Pass Success: generateKey({name: ed448}, false, [sign]) | ||
Pass Success: generateKey({name: ed448}, true, [sign]) | ||
Pass Success: generateKey({name: ed448}, false, [verify, sign]) | ||
Pass Success: generateKey({name: ed448}, true, [verify, sign]) | ||
Pass Success: generateKey({name: ed448}, false, [sign, verify, sign, sign, verify]) | ||
Pass Success: generateKey({name: ed448}, true, [sign, verify, sign, sign, verify]) | ||
Pass Success: generateKey({name: Ed448}, false, [sign]) | ||
Pass Success: generateKey({name: Ed448}, true, [sign]) | ||
Pass Success: generateKey({name: Ed448}, false, [verify, sign]) | ||
Pass Success: generateKey({name: Ed448}, true, [verify, sign]) | ||
Pass Success: generateKey({name: Ed448}, false, [sign, verify, sign, sign, verify]) | ||
Pass Success: generateKey({name: Ed448}, true, [sign, verify, sign, sign, verify]) |
18 changes: 18 additions & 0 deletions
18
Tests/LibWeb/Text/expected/wpt-import/WebCryptoAPI/sign_verify/eddsa_curve448.https.any.txt
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Harness status: OK | ||
|
||
Found 13 tests | ||
|
||
13 Pass | ||
Pass EdDSA Ed448 verification | ||
Pass EdDSA Ed448 verification with altered signature after call | ||
Pass EdDSA Ed448 with altered data after call | ||
Pass EdDSA Ed448 using privateKey to verify | ||
Pass EdDSA Ed448 using publicKey to sign | ||
Pass EdDSA Ed448 no verify usage | ||
Pass EdDSA Ed448 round trip | ||
Pass EdDSA Ed448 signing with wrong algorithm name | ||
Pass EdDSA Ed448 verifying with wrong algorithm name | ||
Pass EdDSA Ed448 verification failure due to altered signature | ||
Pass EdDSA Ed448 verification failure due to shortened signature | ||
Pass EdDSA Ed448 verification failure due to altered data | ||
Pass Sign and verify using generated Ed448 keys. |
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
17 changes: 17 additions & 0 deletions
17
Tests/LibWeb/Text/input/wpt-import/WebCryptoAPI/generateKey/failures_Ed448.https.any.html
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!doctype html> | ||
<meta charset=utf-8> | ||
<title>WebCryptoAPI: generateKey() for Failures</title> | ||
<meta name="timeout" content="long"> | ||
<script> | ||
self.GLOBAL = { | ||
isWindow: function() { return true; }, | ||
isWorker: function() { return false; }, | ||
isShadowRealm: function() { return false; }, | ||
}; | ||
</script> | ||
<script src="../../resources/testharness.js"></script> | ||
<script src="../../resources/testharnessreport.js"></script> | ||
<script src="../util/helpers.js"></script> | ||
<script src="failures.js"></script> | ||
<div id=log></div> | ||
<script src="../../WebCryptoAPI/generateKey/failures_Ed448.https.any.js"></script> |
5 changes: 5 additions & 0 deletions
5
Tests/LibWeb/Text/input/wpt-import/WebCryptoAPI/generateKey/failures_Ed448.https.any.js
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// META: title=WebCryptoAPI: generateKey() for Failures | ||
// META: timeout=long | ||
// META: script=../util/helpers.js | ||
// META: script=failures.js | ||
run_test(["Ed448"]); |
18 changes: 18 additions & 0 deletions
18
Tests/LibWeb/Text/input/wpt-import/WebCryptoAPI/generateKey/successes_Ed448.https.any.html
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!doctype html> | ||
<meta charset=utf-8> | ||
<title>WebCryptoAPI: generateKey() Successful Calls</title> | ||
<meta name="timeout" content="long"> | ||
<script> | ||
self.GLOBAL = { | ||
isWindow: function() { return true; }, | ||
isWorker: function() { return false; }, | ||
isShadowRealm: function() { return false; }, | ||
}; | ||
</script> | ||
<script src="../../resources/testharness.js"></script> | ||
<script src="../../resources/testharnessreport.js"></script> | ||
<script src="../util/helpers.js"></script> | ||
<script src="../../common/subset-tests.js"></script> | ||
<script src="successes.js"></script> | ||
<div id=log></div> | ||
<script src="../../WebCryptoAPI/generateKey/successes_Ed448.https.any.js"></script> |
6 changes: 6 additions & 0 deletions
6
Tests/LibWeb/Text/input/wpt-import/WebCryptoAPI/generateKey/successes_Ed448.https.any.js
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// META: title=WebCryptoAPI: generateKey() Successful Calls | ||
// META: timeout=long | ||
// META: script=../util/helpers.js | ||
// META: script=/common/subset-tests.js | ||
// META: script=successes.js | ||
run_test(["Ed448"]); |
Oops, something went wrong.