| <script src="../../resources/js-test-pre.js"></script> |
| <script src="../resources/common.js"></script> |
| description("Test exporting a 256 bits AES-CFB key with raw format"); |
| debug("Generating a key..."); |
| crypto.subtle.generateKey({name: "aes-cfb-8", length: 256}, extractable, ["encrypt", "decrypt", "wrapKey", "unwrapKey"]).then(function(key) { |
| debug("Exporting a key..."); |
| return crypto.subtle.exportKey("raw", key); |
| }).then(function(result) { |
| shouldBe("key.byteLength", "32"); |
| <script src="../../resources/js-test-post.js"></script> |