| OLD | NEW |
| (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 Failed importing with encrypt: DataError: The "key_ops" member of the JWK dictio
nary contains duplicate usages. | |
| 9 {"key_ops":["encrypt"]}: | |
| 10 PASS key.usages is ["encrypt"] | |
| 11 | |
| 12 {"key_ops":["encrypt"]}: | |
| 13 Failed importing with decrypt: DataError: The JWK "key_ops" member was inconsist
ent with that specified by the Web Crypto call. The JWK usage must be a superset
of those requested | |
| 14 {"key_ops":["decrypt"]}: | |
| 15 PASS key.usages is ["decrypt"] | |
| 16 | |
| 17 {"key_ops":["decrypt"]}: | |
| 18 Failed importing with encrypt: DataError: The JWK "key_ops" member was inconsist
ent with that specified by the Web Crypto call. The JWK usage must be a superset
of those requested | |
| 19 {"key_ops":["encrypt","decrypt"]}: | |
| 20 PASS key.usages is ["encrypt","decrypt"] | |
| 21 | |
| 22 {"key_ops":["encrypt","decrypt"]}: | |
| 23 PASS key.usages is ["encrypt"] | |
| 24 | |
| 25 {"key_ops":["encrypt","decrypt"]}: | |
| 26 Failed importing with unwrapKey: DataError: The JWK "key_ops" member was inconsi
stent with that specified by the Web Crypto call. The JWK usage must be a supers
et of those requested | |
| 27 {"key_ops":["wrapKey"]}: | |
| 28 PASS key.usages is ["wrapKey"] | |
| 29 | |
| 30 {"key_ops":["wrapKey"]}: | |
| 31 Failed importing with unwrapKey: DataError: The JWK "key_ops" member was inconsi
stent with that specified by the Web Crypto call. The JWK usage must be a supers
et of those requested | |
| 32 {"key_ops":["unwrapKey"]}: | |
| 33 PASS key.usages is ["unwrapKey"] | |
| 34 | |
| 35 {"key_ops":["wrapKey","unwrapKey"]}: | |
| 36 PASS key.usages is ["wrapKey","unwrapKey"] | |
| 37 | |
| 38 {"key_ops":["encrypt","decrypt","wrapKey"]}: | |
| 39 PASS key.usages is ["encrypt","decrypt","wrapKey"] | |
| 40 | |
| 41 {"use":"enc"}: | |
| 42 PASS key.usages is ["encrypt","decrypt","wrapKey","unwrapKey"] | |
| 43 | |
| 44 {"use":"enc"}: | |
| 45 PASS key.usages is ["encrypt","decrypt","unwrapKey"] | |
| 46 | |
| 47 {"use":"enc"}: | |
| 48 PASS key.usages is ["encrypt","decrypt","unwrapKey"] | |
| 49 | |
| 50 {"key_ops":["sign"]}: | |
| 51 PASS key.usages is ["sign"] | |
| 52 | |
| 53 {"key_ops":["sign"]}: | |
| 54 Failed importing with verify: DataError: The JWK "key_ops" member was inconsiste
nt with that specified by the Web Crypto call. The JWK usage must be a superset
of those requested | |
| 55 {"key_ops":["verify"]}: | |
| 56 PASS key.usages is ["verify"] | |
| 57 | |
| 58 {"key_ops":["verify"]}: | |
| 59 Failed importing with sign: DataError: The JWK "key_ops" member was inconsistent
with that specified by the Web Crypto call. The JWK usage must be a superset of
those requested | |
| 60 {"use":"sig"}: | |
| 61 PASS key.usages is ["sign","verify"] | |
| 62 | |
| 63 {"use":"sig"}: | |
| 64 PASS key.usages is ["sign"] | |
| 65 | |
| 66 {"key_ops":["'encrypt'","decrypt"]}: | |
| 67 PASS key.usages is ["decrypt"] | |
| 68 | |
| 69 {"key_ops":["encrypt ","foo","decrypt"]}: | |
| 70 PASS key.usages is ["decrypt"] | |
| 71 | |
| 72 {"key_ops":["Encrypt","decrypt"]}: | |
| 73 PASS key.usages is ["decrypt"] | |
| 74 | |
| 75 {"key_ops":["'encrypt'","decrypt"]}: | |
| 76 Failed importing with encrypt: DataError: The JWK "key_ops" member was inconsist
ent with that specified by the Web Crypto call. The JWK usage must be a superset
of those requested | |
| 77 {"key_ops":["encrypt "]}: | |
| 78 Failed importing with encrypt: DataError: The JWK "key_ops" member was inconsist
ent with that specified by the Web Crypto call. The JWK usage must be a superset
of those requested | |
| 79 {"key_ops":["Encrypt"]}: | |
| 80 Failed importing with encrypt: DataError: The JWK "key_ops" member was inconsist
ent with that specified by the Web Crypto call. The JWK usage must be a superset
of those requested | |
| 81 PASS successfullyParsed is true | |
| 82 | |
| 83 TEST COMPLETE | |
| 84 | |
| OLD | NEW |