forked from LadybirdBrowser/ladybird
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Support
RSASSA-PKCS1-v1_5
in WebCryptoAPI
Adds ~400 WPT test passes!
- Loading branch information
Showing
10 changed files
with
1,094 additions
and
315 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
579 changes: 289 additions & 290 deletions
579
Tests/LibWeb/Text/expected/wpt-import/WebCryptoAPI/import_export/rsa_importKey.https.any.txt
Large diffs are not rendered by default.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
Tests/LibWeb/Text/expected/wpt-import/WebCryptoAPI/sign_verify/rsa_pkcs.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,51 @@ | ||
Harness status: OK | ||
|
||
Found 45 tests | ||
|
||
39 Pass | ||
6 Fail | ||
Pass setup | ||
Fail RSASSA-PKCS1-v1_5 with SHA-1 verification | ||
Pass RSASSA-PKCS1-v1_5 with SHA-256 verification | ||
Pass RSASSA-PKCS1-v1_5 with SHA-384 verification | ||
Pass RSASSA-PKCS1-v1_5 with SHA-512 verification | ||
Fail RSASSA-PKCS1-v1_5 with SHA-1 verification with altered signature after call | ||
Pass RSASSA-PKCS1-v1_5 with SHA-256 verification with altered signature after call | ||
Pass RSASSA-PKCS1-v1_5 with SHA-384 verification with altered signature after call | ||
Pass RSASSA-PKCS1-v1_5 with SHA-512 verification with altered signature after call | ||
Fail RSASSA-PKCS1-v1_5 with SHA-1 with altered plaintext after call | ||
Pass RSASSA-PKCS1-v1_5 with SHA-256 with altered plaintext after call | ||
Pass RSASSA-PKCS1-v1_5 with SHA-384 with altered plaintext after call | ||
Pass RSASSA-PKCS1-v1_5 with SHA-512 with altered plaintext after call | ||
Pass RSASSA-PKCS1-v1_5 with SHA-1 using privateKey to verify | ||
Pass RSASSA-PKCS1-v1_5 with SHA-256 using privateKey to verify | ||
Pass RSASSA-PKCS1-v1_5 with SHA-384 using privateKey to verify | ||
Pass RSASSA-PKCS1-v1_5 with SHA-512 using privateKey to verify | ||
Pass RSASSA-PKCS1-v1_5 with SHA-1 using publicKey to sign | ||
Pass RSASSA-PKCS1-v1_5 with SHA-256 using publicKey to sign | ||
Pass RSASSA-PKCS1-v1_5 with SHA-384 using publicKey to sign | ||
Pass RSASSA-PKCS1-v1_5 with SHA-512 using publicKey to sign | ||
Pass RSASSA-PKCS1-v1_5 with SHA-1 no verify usage | ||
Pass RSASSA-PKCS1-v1_5 with SHA-256 no verify usage | ||
Pass RSASSA-PKCS1-v1_5 with SHA-384 no verify usage | ||
Pass RSASSA-PKCS1-v1_5 with SHA-512 no verify usage | ||
Fail RSASSA-PKCS1-v1_5 with SHA-1 round trip | ||
Pass RSASSA-PKCS1-v1_5 with SHA-256 round trip | ||
Pass RSASSA-PKCS1-v1_5 with SHA-384 round trip | ||
Pass RSASSA-PKCS1-v1_5 with SHA-512 round trip | ||
Pass RSASSA-PKCS1-v1_5 with SHA-1 signing with wrong algorithm name | ||
Pass RSASSA-PKCS1-v1_5 with SHA-256 signing with wrong algorithm name | ||
Pass RSASSA-PKCS1-v1_5 with SHA-384 signing with wrong algorithm name | ||
Pass RSASSA-PKCS1-v1_5 with SHA-512 signing with wrong algorithm name | ||
Pass RSASSA-PKCS1-v1_5 with SHA-1 verification with wrong algorithm name | ||
Pass RSASSA-PKCS1-v1_5 with SHA-256 verification with wrong algorithm name | ||
Pass RSASSA-PKCS1-v1_5 with SHA-384 verification with wrong algorithm name | ||
Pass RSASSA-PKCS1-v1_5 with SHA-512 verification with wrong algorithm name | ||
Fail RSASSA-PKCS1-v1_5 with SHA-1 verification failure with altered signature | ||
Pass RSASSA-PKCS1-v1_5 with SHA-256 verification failure with altered signature | ||
Pass RSASSA-PKCS1-v1_5 with SHA-384 verification failure with altered signature | ||
Pass RSASSA-PKCS1-v1_5 with SHA-512 verification failure with altered signature | ||
Fail RSASSA-PKCS1-v1_5 with SHA-1 verification failure with altered plaintext | ||
Pass RSASSA-PKCS1-v1_5 with SHA-256 verification failure with altered plaintext | ||
Pass RSASSA-PKCS1-v1_5 with SHA-384 verification failure with altered plaintext | ||
Pass RSASSA-PKCS1-v1_5 with SHA-512 verification failure with altered plaintext |
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
17 changes: 17 additions & 0 deletions
17
Tests/LibWeb/Text/input/wpt-import/WebCryptoAPI/sign_verify/rsa_pkcs.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: sign() and verify() Using RSASSA-PKCS1-v1_5</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="rsa_pkcs_vectors.js"></script> | ||
<script src="rsa.js"></script> | ||
<div id=log></div> | ||
<script src="../../WebCryptoAPI/sign_verify/rsa_pkcs.https.any.js"></script> |
6 changes: 6 additions & 0 deletions
6
Tests/LibWeb/Text/input/wpt-import/WebCryptoAPI/sign_verify/rsa_pkcs.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: sign() and verify() Using RSASSA-PKCS1-v1_5 | ||
// META: script=rsa_pkcs_vectors.js | ||
// META: script=rsa.js | ||
// META: timeout=long | ||
|
||
run_test(); |
Oops, something went wrong.