diff --git a/index.html b/index.html
index 1acedee..5c596d4 100644
--- a/index.html
+++ b/index.html
@@ -124,7 +124,9 @@
Web Cryptography API Live Table
@@ -203,20 +213,24 @@ Web Cryptography API Live Table
//importKey
//jwk
- window.crypto.subtle.importKey("jwk", {
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.importKey("jwk", {
kty: "oct",
k: "KfKY5nueRX7eBrOddn9IerHLv1r-T7qpggaCF3MfSR4",
alg: "A256GCM",
ext: true,
- }, AESGCM, false, ["encrypt", "decrypt"])
+ }, AESGCM, false, ["encrypt", "decrypt"]);
+ })
.then(ok("aes-gcm", "importKey", "jwk-key"))
.catch(err("aes-gcm", "importKey", "jwk-key"));
//raw
- window.crypto.subtle.importKey("raw", new Uint8Array([
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.importKey("raw", new Uint8Array([
122,94,39,230,46,23,151,80,131,230,3,101,80,234,143,9,251,
152,229,228,89,222,31,135,214,104,55,68,67,59,5,51
- ]), AESGCM, false, ["encrypt", "decrypt"])
+ ]), AESGCM, false, ["encrypt", "decrypt"]);
+ })
.then(ok("aes-gcm", "importKey", "raw-key"))
.catch(err("aes-gcm", "importKey", "raw-key"));
@@ -224,7 +238,9 @@ Web Cryptography API Live Table
|
@@ -884,46 +946,54 @@ Web Cryptography API Live Table
//importKey
//jwk
- window.crypto.subtle.importKey("jwk", {
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.importKey("jwk", {
kty: "EC",
crv: "P-256",
x: "A5fQnBdBSgBhTjMr1Atpzvh5SKYQ4aQRJ9WTCG5U4m4",
y: "8YF98byzMljHX3T5ORLYTDbcwG-_eq3f23JtTE6lOe0",
ext: true,
- }, ECDSA, false, ["verify"])
+ }, ECDSA, false, ["verify"]);
+ })
.then(ok("ecdsa", "importKey", "jwk-pub"))
.catch(err("ecdsa", "importKey", "jwk-pub"));
- window.crypto.subtle.importKey("jwk", {
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.importKey("jwk", {
kty: "EC",
crv: "P-256",
x: "A5fQnBdBSgBhTjMr1Atpzvh5SKYQ4aQRJ9WTCG5U4m4",
y: "8YF98byzMljHX3T5ORLYTDbcwG-_eq3f23JtTE6lOe0",
d: "4DvC-hxpv8myZLNeMY-8nq55MhdfA4obM1lGG3hF_yo",
ext: true,
- }, ECDSA, false, ["sign"])
+ }, ECDSA, false, ["sign"]);
+ })
.then(ok("ecdsa", "importKey", "jwk-priv"))
.catch(err("ecdsa", "importKey", "jwk-priv"));
//spki
- window.crypto.subtle.importKey("spki", new Uint8Array([
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.importKey("spki", new Uint8Array([
48,89,48,19,6,7,42,134,72,206,61,2,1,6,8,42,134,72,206,61,3,1,7,3,66,0,4,3,151,
208,156,23,65,74,0,97,78,51,43,212,11,105,206,248,121,72,166,16,225,164,17,39,
213,147,8,110,84,226,110,241,129,125,241,188,179,50,88,199,95,116,249,57,18,216,
76,54,220,192,111,191,122,173,223,219,114,109,76,78,165,57,237
- ]), ECDSA, false, ["verify"])
+ ]), ECDSA, false, ["verify"]);
+ })
.then(ok("ecdsa", "importKey", "spki-pub"))
.catch(err("ecdsa", "importKey", "spki-pub"));
//pkcs8
- window.crypto.subtle.importKey("pkcs8", new Uint8Array([
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.importKey("pkcs8", new Uint8Array([
48,129,135,2,1,0,48,19,6,7,42,134,72,206,61,2,1,6,8,42,134,72,206,61,3,1,7,4,109,48,
107,2,1,1,4,32,224,59,194,250,28,105,191,201,178,100,179,94,49,143,188,158,174,121,50,
23,95,3,138,27,51,89,70,27,120,69,255,42,161,68,3,66,0,4,3,151,208,156,23,65,74,0,97,
78,51,43,212,11,105,206,248,121,72,166,16,225,164,17,39,213,147,8,110,84,226,110,241,
129,125,241,188,179,50,88,199,95,116,249,57,18,216,76,54,220,192,111,191,122,173,223,
219,114,109,76,78,165,57,237
- ]), ECDSA, false, ["sign"])
+ ]), ECDSA, false, ["sign"]);
+ })
.then(ok("ecdsa", "importKey", "pkcs8-priv"))
.catch(err("ecdsa", "importKey", "pkcs8-priv"));
@@ -931,7 +1001,9 @@ Web Cryptography API Live Table
|
@@ -1049,20 +1133,24 @@ Web Cryptography API Live Table
//importKey
//jwk
- window.crypto.subtle.importKey("jwk", {
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.importKey("jwk", {
kty: "oct",
k: "KfKY5nueRX7eBrOddn9IerHLv1r-T7qpggaCF3MfSR4",
alg: "HS256",
ext: true,
- }, HMAC, false, ["sign", "verify"])
+ }, HMAC, false, ["sign", "verify"]);
+ })
.then(ok("hmac", "importKey", "jwk-key"))
.catch(err("hmac", "importKey", "jwk-key"));
//raw
- window.crypto.subtle.importKey("raw", new Uint8Array([
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.importKey("raw", new Uint8Array([
122,94,39,230,46,23,151,80,131,230,3,101,80,234,143,9,251,
152,229,228,89,222,31,135,214,104,55,68,67,59,5,51
- ]), HMAC, false, ["sign", "verify"])
+ ]), HMAC, false, ["sign", "verify"]);
+ })
.then(ok("hmac", "importKey", "raw-key"))
.catch(err("hmac", "importKey", "raw-key"));
@@ -1070,7 +1158,9 @@ Web Cryptography API Live Table
|
@@ -1135,7 +1227,9 @@ Web Cryptography API Live Table
|
@@ -1164,7 +1258,9 @@ Web Cryptography API Live Table
|
@@ -1203,26 +1299,32 @@ Web Cryptography API Live Table
//generateKey
//P-256
- window.crypto.subtle.generateKey({
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.generateKey({
name: "ECDH",
namedCurve: "P-256",
- }, false, ["deriveBits", "deriveKey"])
+ }, false, ["deriveBits", "deriveKey"]);
+ })
.then(ok("ecdh", "generateKey", "P-256"))
.catch(err("ecdh", "generateKey", "P-256"));
//P-384
- window.crypto.subtle.generateKey({
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.generateKey({
name: "ECDH",
namedCurve: "P-384",
- }, false, ["deriveBits", "deriveKey"])
+ }, false, ["deriveBits", "deriveKey"]);
+ })
.then(ok("ecdh", "generateKey", "P-384"))
.catch(err("ecdh", "generateKey", "P-384"));
//P-521
- window.crypto.subtle.generateKey({
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.generateKey({
name: "ECDH",
namedCurve: "P-521",
- }, false, ["deriveBits", "deriveKey"])
+ }, false, ["deriveBits", "deriveKey"]);
+ })
.then(ok("ecdh", "generateKey", "P-521"))
.catch(err("ecdh", "generateKey", "P-521"));
@@ -1230,7 +1332,9 @@ Web Cryptography API Live Table
|
@@ -1327,7 +1443,9 @@ Web Cryptography API Live Table
|
@@ -1532,26 +1656,32 @@ Web Cryptography API Live Table
//generateKey
//128 bits
- window.crypto.subtle.generateKey({
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.generateKey({
name: "AES-KW",
length: 128,
- }, false, ["wrapKey", "unwrapKey"])
+ }, false, ["wrapKey", "unwrapKey"]);
+ })
.then(ok("aes-kw", "generateKey", "128 bits"))
.catch(err("aes-kw", "generateKey", "128 bits"));
//192 bits
- window.crypto.subtle.generateKey({
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.generateKey({
name: "AES-KW",
length: 192,
- }, false, ["wrapKey", "unwrapKey"])
+ }, false, ["wrapKey", "unwrapKey"]);
+ })
.then(ok("aes-kw", "generateKey", "192 bits"))
.catch(err("aes-kw", "generateKey", "192 bits"));
//256 bits
- window.crypto.subtle.generateKey({
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.generateKey({
name: "AES-KW",
length: 256,
- }, false, ["wrapKey", "unwrapKey"])
+ }, false, ["wrapKey", "unwrapKey"]);
+ })
.then(ok("aes-kw", "generateKey", "256 bits"))
.catch(err("aes-kw", "generateKey", "256 bits"));
@@ -1563,20 +1693,24 @@ Web Cryptography API Live Table
//importKey
//jwk
- window.crypto.subtle.importKey("jwk", {
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.importKey("jwk", {
kty: "oct",
k: "KfKY5nueRX7eBrOddn9IerHLv1r-T7qpggaCF3MfSR4",
alg: "A256KW",
ext: true,
- }, AESKW, false, ["wrapKey", "unwrapKey"])
+ }, AESKW, false, ["wrapKey", "unwrapKey"]);
+ })
.then(ok("aes-kw", "importKey", "jwk-key"))
.catch(err("aes-kw", "importKey", "jwk-key"));
//raw
- window.crypto.subtle.importKey("raw", new Uint8Array([
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.importKey("raw", new Uint8Array([
122,94,39,230,46,23,151,80,131,230,3,101,80,234,143,9,251,
152,229,228,89,222,31,135,214,104,55,68,67,59,5,51
- ]), AESKW, false, ["wrapKey", "unwrapKey"])
+ ]), AESKW, false, ["wrapKey", "unwrapKey"]);
+ })
.then(ok("aes-kw", "importKey", "raw-key"))
.catch(err("aes-kw", "importKey", "raw-key"));
@@ -1584,7 +1718,9 @@ Web Cryptography API Live Table
|
@@ -2015,7 +2183,9 @@ Web Cryptography API Live Table
|
@@ -2475,20 +2675,24 @@ Web Cryptography API Live Table
//importKey
//jwk
- window.crypto.subtle.importKey("jwk", {
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.importKey("jwk", {
kty: "oct",
k: "Y0zt37HgOx-BY7SQjYVmrqhPkO44Ii2Jcb9yydUDPfE",
alg: "A256CTR",
ext: true,
- }, AESCTR, false, ["encrypt", "decrypt"])
+ }, AESCTR, false, ["encrypt", "decrypt"]);
+ })
.then(ok("aes-ctr", "importKey", "jwk-key"))
.catch(err("aes-ctr", "importKey", "jwk-key"));
//raw
- window.crypto.subtle.importKey("raw", new Uint8Array([
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.importKey("raw", new Uint8Array([
122,94,39,230,46,23,151,80,131,230,3,101,80,234,143,9,251,
152,229,228,89,222,31,135,214,104,55,68,67,59,5,51
- ]), AESCTR, false, ["encrypt", "decrypt"])
+ ]), AESCTR, false, ["encrypt", "decrypt"]);
+ })
.then(ok("aes-ctr", "importKey", "raw-key"))
.catch(err("aes-ctr", "importKey", "raw-key"));
@@ -2496,7 +2700,9 @@ Web Cryptography API Live Table
|
@@ -3220,20 +3472,24 @@ Web Cryptography API Live Table
//importKey
//jwk
- window.crypto.subtle.importKey("jwk", {
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.importKey("jwk", {
kty: "oct",
k: "KfKY5nueRX7eBrOddn9IerHLv1r-T7qpggaCF3MfSR4",
alg: "A256CBC",
ext: true,
- }, AESCBC, false, ["encrypt", "decrypt"])
+ }, AESCBC, false, ["encrypt", "decrypt"]);
+ })
.then(ok("aes-cbc", "importKey", "jwk-key"))
.catch(err("aes-cbc", "importKey", "jwk-key"));
//raw
- window.crypto.subtle.importKey("raw", new Uint8Array([
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.importKey("raw", new Uint8Array([
122,94,39,230,46,23,151,80,131,230,3,101,80,234,143,9,251,
152,229,228,89,222,31,135,214,104,55,68,67,59,5,51
- ]), AESCBC, false, ["encrypt", "decrypt"])
+ ]), AESCBC, false, ["encrypt", "decrypt"]);
+ })
.then(ok("aes-cbc", "importKey", "raw-key"))
.catch(err("aes-cbc", "importKey", "raw-key"));
@@ -3241,7 +3497,9 @@ Web Cryptography API Live Table
|
@@ -3909,20 +4213,24 @@ Web Cryptography API Live Table
//importKey
//jwk
- window.crypto.subtle.importKey("jwk", {
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.importKey("jwk", {
kty: "oct",
k: "Y0zt37HgOx-BY7SQjYVmrqhPkO44Ii2Jcb9yydUDPfE",
alg: "A256CFB8",
ext: true,
- }, AESCFB, false, ["encrypt", "decrypt"])
+ }, AESCFB, false, ["encrypt", "decrypt"]);
+ })
.then(ok("aes-cfb", "importKey", "jwk-key"))
.catch(err("aes-cfb", "importKey", "jwk-key"));
//raw
- window.crypto.subtle.importKey("raw", new Uint8Array([
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.importKey("raw", new Uint8Array([
122,94,39,230,46,23,151,80,131,230,3,101,80,234,143,9,251,
152,229,228,89,222,31,135,214,104,55,68,67,59,5,51
- ]), AESCFB, false, ["encrypt", "decrypt"])
+ ]), AESCFB, false, ["encrypt", "decrypt"]);
+ })
.then(ok("aes-cfb", "importKey", "raw-key"))
.catch(err("aes-cfb", "importKey", "raw-key"));
@@ -3930,7 +4238,9 @@ Web Cryptography API Live Table
|
|
@@ -3987,7 +4301,9 @@ Web Cryptography API Live Table
|
@@ -4134,7 +4460,9 @@ Web Cryptography API Live Table
|
@@ -4340,7 +4680,9 @@ Web Cryptography API Live Table
|
@@ -4441,20 +4793,24 @@ Web Cryptography API Live Table
//importKey
//jwk
- window.crypto.subtle.importKey("jwk", {
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.importKey("jwk", {
kty: "oct",
k: "Y0zt37HgOx-BY7SQjYVmrqhPkO44Ii2Jcb9yydUDPfE",
alg: "A256CMAC",
ext: true,
- }, AESCMAC, false, ["sign", "verify"])
+ }, AESCMAC, false, ["sign", "verify"]);
+ })
.then(ok("aes-cmac", "importKey", "jwk-key"))
.catch(err("aes-cmac", "importKey", "jwk-key"));
//raw
- window.crypto.subtle.importKey("raw", new Uint8Array([
+ Promise.resolve().then(function(){
+ return window.crypto.subtle.importKey("raw", new Uint8Array([
122,94,39,230,46,23,151,80,131,230,3,101,80,234,143,9,251,
152,229,228,89,222,31,135,214,104,55,68,67,59,5,51
- ]), AESCMAC, false, ["sign", "verify"])
+ ]), AESCMAC, false, ["sign", "verify"]);
+ })
.then(ok("aes-cmac", "importKey", "raw-key"))
.catch(err("aes-cmac", "importKey", "raw-key"));
@@ -4462,7 +4818,9 @@ Web Cryptography API Live Table
|
@@ -4549,7 +4909,9 @@ Web Cryptography API Live Table
|
@@ -4557,7 +4919,9 @@ Web Cryptography API Live Table
|
@@ -4679,7 +5051,9 @@ Web Cryptography API Live Table
|
@@ -4803,7 +5183,9 @@ Web Cryptography API Live Table
|