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

Side by Side Diff: LayoutTests/crypto/jwk-import-use-values-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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/crypto/jwk-import-use-values.html ('k') | LayoutTests/crypto/resources/common.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Test importing keys with various uses from JWK.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6
7 {"key_ops":["encrypt","encrypt"]}:
8 PASS key.usages is ["encrypt"]
9
10 {"key_ops":["encrypt"]}:
11 PASS key.usages is ["encrypt"]
12
13 {"key_ops":["encrypt"]}:
14 Failed importing with decrypt: DataError: The JWK "key_ops" property was inconsi stent with that specified by the Web Crypto call. The JWK usage must be a supers et of those requested
15 {"key_ops":["decrypt"]}:
16 PASS key.usages is ["decrypt"]
17
18 {"key_ops":["decrypt"]}:
19 Failed importing with encrypt: DataError: The JWK "key_ops" property was inconsi stent with that specified by the Web Crypto call. The JWK usage must be a supers et of those requested
20 {"key_ops":["encrypt","decrypt"]}:
21 PASS key.usages is ["encrypt","decrypt"]
22
23 {"key_ops":["encrypt","decrypt"]}:
24 PASS key.usages is ["encrypt"]
25
26 {"key_ops":["encrypt","decrypt"]}:
27 Failed importing with unwrapKey: DataError: The JWK "key_ops" property was incon sistent with that specified by the Web Crypto call. The JWK usage must be a supe rset of those requested
28 {"key_ops":["wrapKey"]}:
29 PASS key.usages is ["wrapKey"]
30
31 {"key_ops":["wrapKey"]}:
32 Failed importing with unwrapKey: DataError: The JWK "key_ops" property was incon sistent with that specified by the Web Crypto call. The JWK usage must be a supe rset of those requested
33 {"key_ops":["unwrapKey"]}:
34 PASS key.usages is ["unwrapKey"]
35
36 {"key_ops":["wrapKey","unwrapKey"]}:
37 PASS key.usages is ["wrapKey","unwrapKey"]
38
39 {"key_ops":["encrypt","decrypt","wrapKey"]}:
40 PASS key.usages is ["encrypt","decrypt","wrapKey"]
41
42 {"use":"enc"}:
43 PASS key.usages is ["encrypt","decrypt","wrapKey","unwrapKey"]
44
45 {"use":"enc"}:
46 PASS key.usages is ["encrypt","decrypt","unwrapKey"]
47
48 {"use":"enc"}:
49 PASS key.usages is ["encrypt","decrypt","unwrapKey"]
50
51 {"key_ops":["sign"]}:
52 PASS key.usages is ["sign"]
53
54 {"key_ops":["sign"]}:
55 Failed importing with verify: DataError: The JWK "key_ops" property was inconsis tent with that specified by the Web Crypto call. The JWK usage must be a superse t of those requested
56 {"key_ops":["verify"]}:
57 PASS key.usages is ["verify"]
58
59 {"key_ops":["verify"]}:
60 Failed importing with sign: DataError: The JWK "key_ops" property was inconsiste nt with that specified by the Web Crypto call. The JWK usage must be a superset of those requested
61 {"use":"sig"}:
62 PASS key.usages is ["sign","verify"]
63
64 {"use":"sig"}:
65 PASS key.usages is ["sign"]
66
67 {"key_ops":["'encrypt'","decrypt"]}:
68 PASS key.usages is ["decrypt"]
69
70 {"key_ops":["encrypt ","foo","decrypt"]}:
71 PASS key.usages is ["decrypt"]
72
73 {"key_ops":["Encrypt","decrypt"]}:
74 PASS key.usages is ["decrypt"]
75
76 {"key_ops":["'encrypt'","decrypt"]}:
77 Failed importing with encrypt: DataError: The JWK "key_ops" property was inconsi stent with that specified by the Web Crypto call. The JWK usage must be a supers et of those requested
78 {"key_ops":["encrypt "]}:
79 Failed importing with encrypt: DataError: The JWK "key_ops" property was inconsi stent with that specified by the Web Crypto call. The JWK usage must be a supers et of those requested
80 {"key_ops":["Encrypt"]}:
81 Failed importing with encrypt: DataError: The JWK "key_ops" property was inconsi stent with that specified by the Web Crypto call. The JWK usage must be a supers et of those requested
82 PASS successfullyParsed is true
83
84 TEST COMPLETE
85
OLDNEW
« no previous file with comments | « LayoutTests/crypto/jwk-import-use-values.html ('k') | LayoutTests/crypto/resources/common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698