5 <title>WebCrypto Test Suite
</title>
6 <meta http-equiv=
"Content-Type" content=
"text/html;charset=utf-8" />
7 <link rel=
"stylesheet" href=
"./test_WebCrypto.css"/>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <!-- General testing framework -->
11 <script src=
"./test-array.js"></script>
13 <script>/* <![CDATA[*/
16 // -----------------------------------------------------------------------------
18 "Import a key that is too long.",
20 var k
= new Uint8Array(0x20000010);
21 window
.crypto
.subtle
.importKey("raw", k
, "AES-GCM", true, ["encrypt", "decrypt"]).then(key
=> {
22 return window
.crypto
.subtle
.encrypt(
23 { name
: "AES-GCM", iv
: new ArrayBuffer(96 / 8) },
24 key
, new Uint8Array(32));
25 }).then(error(this), complete(this))
38 <div id=
"start" onclick=
"start();">RUN ALL
</div>
40 <div id=
"resultDiv" class=
"content">
42 <span class=
"pass"><span id=
"passN">0</span> passed,
</span>
43 <span class=
"fail"><span id=
"failN">0</span> failed,
</span>
44 <span class=
"pending"><span id=
"pendingN">0</span> pending.
</span>