Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Unified Diff: LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk-expected.txt

Issue 298023002: [webcrypto] Import WebKit's webcrypto tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove FIXME for unrecognized jwk usages (supported now) Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk-expected.txt
diff --git a/LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk-expected.txt b/LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..7786dc291f8b80d01b4f25604cada29c719af37d
--- /dev/null
+++ b/LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk-expected.txt
@@ -0,0 +1,26 @@
+Test importing an RSA key for RSASSA-PKCS1-v1_5.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Importing a public key...
+PASS publicKey.toString() is '[object Key]'
+PASS publicKey.type is 'public'
+PASS publicKey.usages is ['verify']
+PASS publicKey.algorithm.name is 'RSASSA-PKCS1-v1_5'
+PASS publicKey.algorithm.modulusLength is 2048
+PASS bytesToHexString(publicKey.algorithm.publicExponent) is '010001'
+PASS publicKey.algorithm.hash.name is 'SHA-256'
+
+Importing a private key...
+PASS privateKey.toString() is '[object Key]'
+PASS privateKey.type is 'private'
+PASS privateKey.usages is ['sign']
+PASS privateKey.algorithm.name is 'RSASSA-PKCS1-v1_5'
+PASS privateKey.algorithm.modulusLength is 2048
+PASS bytesToHexString(privateKey.algorithm.publicExponent) is '010001'
+PASS privateKey.algorithm.hash.name is 'SHA-256'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk.html ('k') | LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk-small-key.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698