OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 <script src="resources/common.js"></script> | 5 <script src="../resources/common.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <p id="description"></p> | 8 <p id="description"></p> |
9 <div id="console"></div> | 9 <div id="console"></div> |
10 | 10 |
11 <script> | 11 <script> |
12 description("Test verification using RSA-PSS and salt length of 10."); | 12 description("Test verification using RSA-PSS and salt length of 10."); |
13 | 13 |
14 jsTestIsAsync = true; | 14 jsTestIsAsync = true; |
15 | 15 |
(...skipping 23 matching lines...) Expand all Loading... |
39 debug("\nVerifying a bad signature..."); | 39 debug("\nVerifying a bad signature..."); |
40 return crypto.subtle.verify(verifyAlgorithm, publicKey, new Uint8Array(256),
message); | 40 return crypto.subtle.verify(verifyAlgorithm, publicKey, new Uint8Array(256),
message); |
41 }).then(function(result) { | 41 }).then(function(result) { |
42 verificationResult = result; | 42 verificationResult = result; |
43 shouldBe("verificationResult", "false"); | 43 shouldBe("verificationResult", "false"); |
44 }).then(finishJSTest, failAndFinishJSTest); | 44 }).then(finishJSTest, failAndFinishJSTest); |
45 </script> | 45 </script> |
46 | 46 |
47 </body> | 47 </body> |
48 </html> | 48 </html> |
OLD | NEW |