| <script src="../../resources/js-test-pre.js"></script> |
| <script src="../resources/common.js"></script> |
| description("Test importing a JWK AES-KW key with legnth 128"); |
| k: "YWJjZGVmZ2gxMjM0NTY3OA", |
| debug("Importing a key..."); |
| crypto.subtle.importKey("jwk", jwkKey, "aes-kw", extractable, ["wrapKey", "unwrapKey"]).then(function(result) { |
| shouldBe("key.type", "'secret'"); |
| shouldBe("key.extractable", "true"); |
| shouldBe("key.algorithm.name", "'AES-KW'"); |
| shouldBe("key.algorithm.length", "128"); |
| shouldBe("key.usages", "['unwrapKey', 'wrapKey']"); |
| <script src="../../resources/js-test-post.js"></script> |