Index: LayoutTests/crypto/jwk-import-use-values-expected.txt |
diff --git a/LayoutTests/crypto/jwk-import-use-values-expected.txt b/LayoutTests/crypto/jwk-import-use-values-expected.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2c7a4e437831b394b784c69584b500c6daf99ce7 |
--- /dev/null |
+++ b/LayoutTests/crypto/jwk-import-use-values-expected.txt |
@@ -0,0 +1,85 @@ |
+Test importing keys with various uses from JWK. |
+ |
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
+ |
+ |
+ |
+{"key_ops":["encrypt","encrypt"]}: |
+PASS key.usages is ["encrypt"] |
+ |
+{"key_ops":["encrypt"]}: |
+PASS key.usages is ["encrypt"] |
+ |
+{"key_ops":["encrypt"]}: |
+Failed importing with decrypt: DataError: The JWK "key_ops" property was inconsistent with that specified by the Web Crypto call. The JWK usage must be a superset of those requested |
+{"key_ops":["decrypt"]}: |
+PASS key.usages is ["decrypt"] |
+ |
+{"key_ops":["decrypt"]}: |
+Failed importing with encrypt: DataError: The JWK "key_ops" property was inconsistent with that specified by the Web Crypto call. The JWK usage must be a superset of those requested |
+{"key_ops":["encrypt","decrypt"]}: |
+PASS key.usages is ["encrypt","decrypt"] |
+ |
+{"key_ops":["encrypt","decrypt"]}: |
+PASS key.usages is ["encrypt"] |
+ |
+{"key_ops":["encrypt","decrypt"]}: |
+Failed importing with unwrapKey: DataError: The JWK "key_ops" property was inconsistent with that specified by the Web Crypto call. The JWK usage must be a superset of those requested |
+{"key_ops":["wrapKey"]}: |
+PASS key.usages is ["wrapKey"] |
+ |
+{"key_ops":["wrapKey"]}: |
+Failed importing with unwrapKey: DataError: The JWK "key_ops" property was inconsistent with that specified by the Web Crypto call. The JWK usage must be a superset of those requested |
+{"key_ops":["unwrapKey"]}: |
+PASS key.usages is ["unwrapKey"] |
+ |
+{"key_ops":["wrapKey","unwrapKey"]}: |
+PASS key.usages is ["wrapKey","unwrapKey"] |
+ |
+{"key_ops":["encrypt","decrypt","wrapKey"]}: |
+PASS key.usages is ["encrypt","decrypt","wrapKey"] |
+ |
+{"use":"enc"}: |
+PASS key.usages is ["encrypt","decrypt","wrapKey","unwrapKey"] |
+ |
+{"use":"enc"}: |
+PASS key.usages is ["encrypt","decrypt","unwrapKey"] |
+ |
+{"use":"enc"}: |
+PASS key.usages is ["encrypt","decrypt","unwrapKey"] |
+ |
+{"key_ops":["sign"]}: |
+PASS key.usages is ["sign"] |
+ |
+{"key_ops":["sign"]}: |
+Failed importing with verify: DataError: The JWK "key_ops" property was inconsistent with that specified by the Web Crypto call. The JWK usage must be a superset of those requested |
+{"key_ops":["verify"]}: |
+PASS key.usages is ["verify"] |
+ |
+{"key_ops":["verify"]}: |
+Failed importing with sign: DataError: The JWK "key_ops" property was inconsistent with that specified by the Web Crypto call. The JWK usage must be a superset of those requested |
+{"use":"sig"}: |
+PASS key.usages is ["sign","verify"] |
+ |
+{"use":"sig"}: |
+PASS key.usages is ["sign"] |
+ |
+{"key_ops":["'encrypt'","decrypt"]}: |
+PASS key.usages is ["decrypt"] |
+ |
+{"key_ops":["encrypt ","foo","decrypt"]}: |
+PASS key.usages is ["decrypt"] |
+ |
+{"key_ops":["Encrypt","decrypt"]}: |
+PASS key.usages is ["decrypt"] |
+ |
+{"key_ops":["'encrypt'","decrypt"]}: |
+Failed importing with encrypt: DataError: The JWK "key_ops" property was inconsistent with that specified by the Web Crypto call. The JWK usage must be a superset of those requested |
+{"key_ops":["encrypt "]}: |
+Failed importing with encrypt: DataError: The JWK "key_ops" property was inconsistent with that specified by the Web Crypto call. The JWK usage must be a superset of those requested |
+{"key_ops":["Encrypt"]}: |
+Failed importing with encrypt: DataError: The JWK "key_ops" property was inconsistent with that specified by the Web Crypto call. The JWK usage must be a superset of those requested |
+PASS successfullyParsed is true |
+ |
+TEST COMPLETE |
+ |