ECDSA P-256 type:native ‣
TypeError: Cannot read properties of undefined (reading 'generateKey')
at Runnable.run (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4529:15)
at Runner.runTest (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4974:10)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:5057:12
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4899:14)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4909:7
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4844:23)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4876:5
at timeslice (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:6483:27)
done => {
const revType = type === "native" ? "js" : "native";
console.log(key.algorithm, true, key.usages)
subtle[type].generateKey(key.algorithm, true, key.usages)
.then(k => {
if (type === "native")
key[type] = k;
let propmises = ["privateKey", "publicKey"].map(keyType => {
return subtle[type].exportKey("jwk", k[keyType])
.then(jwk => {
console.log(jwk);
return subtle[revType].importKey("jwk", jwk, key.algorithm, true, jwk.key_ops)
})
.then(k => {
assert.equal(!!k, true);
if (type === "native") {
key[revType] = key[revType] || {};
key[revType][keyType] = k;
}
return Promise.resolve();
})
})
return Promise.all(propmises);
})
.then
done()
)
.catch(done)
ECDSA P-256 type:js ‣
TypeError: subtle[type].generateKey is not a function
at Runnable.run (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4529:15)
at Runner.runTest (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4974:10)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:5057:12
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4899:14)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4909:7
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4844:23)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4876:5
at timeslice (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:6483:27)
done => {
const revType = type === "native" ? "js" : "native";
console.log(key.algorithm, true, key.usages)
subtle[type].generateKey(key.algorithm, true, key.usages)
.then(k => {
if (type === "native")
key[type] = k;
let propmises = ["privateKey", "publicKey"].map(keyType => {
return subtle[type].exportKey("jwk", k[keyType])
.then(jwk => {
console.log(jwk);
return subtle[revType].importKey("jwk", jwk, key.algorithm, true, jwk.key_ops)
})
.then(k => {
assert.equal(!!k, true);
if (type === "native") {
key[revType] = key[revType] || {};
key[revType][keyType] = k;
}
return Promise.resolve();
})
})
return Promise.all(propmises);
})
.then
done()
)
.catch(done)
ECDSA P-384 type:native ‣
TypeError: Cannot read properties of undefined (reading 'generateKey')
at Runnable.run (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4529:15)
at Runner.runTest (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4974:10)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:5057:12
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4899:14)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4909:7
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4844:23)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4876:5
at timeslice (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:6483:27)
done => {
const revType = type === "native" ? "js" : "native";
console.log(key.algorithm, true, key.usages)
subtle[type].generateKey(key.algorithm, true, key.usages)
.then(k => {
if (type === "native")
key[type] = k;
let propmises = ["privateKey", "publicKey"].map(keyType => {
return subtle[type].exportKey("jwk", k[keyType])
.then(jwk => {
console.log(jwk);
return subtle[revType].importKey("jwk", jwk, key.algorithm, true, jwk.key_ops)
})
.then(k => {
assert.equal(!!k, true);
if (type === "native") {
key[revType] = key[revType] || {};
key[revType][keyType] = k;
}
return Promise.resolve();
})
})
return Promise.all(propmises);
})
.then
done()
)
.catch(done)
ECDSA P-384 type:js ‣
TypeError: subtle[type].generateKey is not a function
at Runnable.run (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4529:15)
at Runner.runTest (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4974:10)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:5057:12
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4899:14)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4909:7
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4844:23)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4876:5
at timeslice (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:6483:27)
done => {
const revType = type === "native" ? "js" : "native";
console.log(key.algorithm, true, key.usages)
subtle[type].generateKey(key.algorithm, true, key.usages)
.then(k => {
if (type === "native")
key[type] = k;
let propmises = ["privateKey", "publicKey"].map(keyType => {
return subtle[type].exportKey("jwk", k[keyType])
.then(jwk => {
console.log(jwk);
return subtle[revType].importKey("jwk", jwk, key.algorithm, true, jwk.key_ops)
})
.then(k => {
assert.equal(!!k, true);
if (type === "native") {
key[revType] = key[revType] || {};
key[revType][keyType] = k;
}
return Promise.resolve();
})
})
return Promise.all(propmises);
})
.then
done()
)
.catch(done)
ECDSA P-521 type:native ‣
TypeError: Cannot read properties of undefined (reading 'generateKey')
at Runnable.run (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4529:15)
at Runner.runTest (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4974:10)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:5057:12
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4899:14)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4909:7
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4844:23)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4876:5
at timeslice (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:6483:27)
done => {
const revType = type === "native" ? "js" : "native";
console.log(key.algorithm, true, key.usages)
subtle[type].generateKey(key.algorithm, true, key.usages)
.then(k => {
if (type === "native")
key[type] = k;
let propmises = ["privateKey", "publicKey"].map(keyType => {
return subtle[type].exportKey("jwk", k[keyType])
.then(jwk => {
console.log(jwk);
return subtle[revType].importKey("jwk", jwk, key.algorithm, true, jwk.key_ops)
})
.then(k => {
assert.equal(!!k, true);
if (type === "native") {
key[revType] = key[revType] || {};
key[revType][keyType] = k;
}
return Promise.resolve();
})
})
return Promise.all(propmises);
})
.then
done()
)
.catch(done)
ECDSA P-521 type:js ‣
TypeError: subtle[type].generateKey is not a function
at Runnable.run (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4529:15)
at Runner.runTest (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4974:10)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:5057:12
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4899:14)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4909:7
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4844:23)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4876:5
at timeslice (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:6483:27)
done => {
const revType = type === "native" ? "js" : "native";
console.log(key.algorithm, true, key.usages)
subtle[type].generateKey(key.algorithm, true, key.usages)
.then(k => {
if (type === "native")
key[type] = k;
let propmises = ["privateKey", "publicKey"].map(keyType => {
return subtle[type].exportKey("jwk", k[keyType])
.then(jwk => {
console.log(jwk);
return subtle[revType].importKey("jwk", jwk, key.algorithm, true, jwk.key_ops)
})
.then(k => {
assert.equal(!!k, true);
if (type === "native") {
key[revType] = key[revType] || {};
key[revType][keyType] = k;
}
return Promise.resolve();
})
})
return Promise.all(propmises);
})
.then
done()
)
.catch(done)
ECDH P-256 type:native ‣
TypeError: Cannot read properties of undefined (reading 'generateKey')
at Runnable.run (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4529:15)
at Runner.runTest (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4974:10)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:5057:12
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4899:14)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4909:7
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4844:23)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4876:5
at timeslice (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:6483:27)
done => {
const revType = type === "native" ? "js" : "native";
console.log(key.algorithm, true, key.usages)
subtle[type].generateKey(key.algorithm, true, key.usages)
.then(k => {
if (type === "native")
key[type] = k;
let propmises = ["privateKey", "publicKey"].map(keyType => {
return subtle[type].exportKey("jwk", k[keyType])
.then(jwk => {
console.log(jwk);
return subtle[revType].importKey("jwk", jwk, key.algorithm, true, jwk.key_ops)
})
.then(k => {
assert.equal(!!k, true);
if (type === "native") {
key[revType] = key[revType] || {};
key[revType][keyType] = k;
}
return Promise.resolve();
})
})
return Promise.all(propmises);
})
.then
done()
)
.catch(done)
ECDH P-256 type:js ‣
TypeError: subtle[type].generateKey is not a function
at Runnable.run (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4529:15)
at Runner.runTest (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4974:10)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:5057:12
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4899:14)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4909:7
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4844:23)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4876:5
at timeslice (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:6483:27)
done => {
const revType = type === "native" ? "js" : "native";
console.log(key.algorithm, true, key.usages)
subtle[type].generateKey(key.algorithm, true, key.usages)
.then(k => {
if (type === "native")
key[type] = k;
let propmises = ["privateKey", "publicKey"].map(keyType => {
return subtle[type].exportKey("jwk", k[keyType])
.then(jwk => {
console.log(jwk);
return subtle[revType].importKey("jwk", jwk, key.algorithm, true, jwk.key_ops)
})
.then(k => {
assert.equal(!!k, true);
if (type === "native") {
key[revType] = key[revType] || {};
key[revType][keyType] = k;
}
return Promise.resolve();
})
})
return Promise.all(propmises);
})
.then
done()
)
.catch(done)
ECDH P-384 type:native ‣
TypeError: Cannot read properties of undefined (reading 'generateKey')
at Runnable.run (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4529:15)
at Runner.runTest (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4974:10)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:5057:12
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4899:14)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4909:7
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4844:23)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4876:5
at timeslice (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:6483:27)
done => {
const revType = type === "native" ? "js" : "native";
console.log(key.algorithm, true, key.usages)
subtle[type].generateKey(key.algorithm, true, key.usages)
.then(k => {
if (type === "native")
key[type] = k;
let propmises = ["privateKey", "publicKey"].map(keyType => {
return subtle[type].exportKey("jwk", k[keyType])
.then(jwk => {
console.log(jwk);
return subtle[revType].importKey("jwk", jwk, key.algorithm, true, jwk.key_ops)
})
.then(k => {
assert.equal(!!k, true);
if (type === "native") {
key[revType] = key[revType] || {};
key[revType][keyType] = k;
}
return Promise.resolve();
})
})
return Promise.all(propmises);
})
.then
done()
)
.catch(done)
ECDH P-384 type:js ‣
TypeError: subtle[type].generateKey is not a function
at Runnable.run (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4529:15)
at Runner.runTest (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4974:10)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:5057:12
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4899:14)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4909:7
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4844:23)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4876:5
at timeslice (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:6483:27)
done => {
const revType = type === "native" ? "js" : "native";
console.log(key.algorithm, true, key.usages)
subtle[type].generateKey(key.algorithm, true, key.usages)
.then(k => {
if (type === "native")
key[type] = k;
let propmises = ["privateKey", "publicKey"].map(keyType => {
return subtle[type].exportKey("jwk", k[keyType])
.then(jwk => {
console.log(jwk);
return subtle[revType].importKey("jwk", jwk, key.algorithm, true, jwk.key_ops)
})
.then(k => {
assert.equal(!!k, true);
if (type === "native") {
key[revType] = key[revType] || {};
key[revType][keyType] = k;
}
return Promise.resolve();
})
})
return Promise.all(propmises);
})
.then
done()
)
.catch(done)
ECDH P-521 type:native ‣
TypeError: Cannot read properties of undefined (reading 'generateKey')
at Runnable.run (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4529:15)
at Runner.runTest (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4974:10)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:5057:12
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4899:14)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4909:7
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4844:23)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4876:5
at timeslice (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:6483:27)
done => {
const revType = type === "native" ? "js" : "native";
console.log(key.algorithm, true, key.usages)
subtle[type].generateKey(key.algorithm, true, key.usages)
.then(k => {
if (type === "native")
key[type] = k;
let propmises = ["privateKey", "publicKey"].map(keyType => {
return subtle[type].exportKey("jwk", k[keyType])
.then(jwk => {
console.log(jwk);
return subtle[revType].importKey("jwk", jwk, key.algorithm, true, jwk.key_ops)
})
.then(k => {
assert.equal(!!k, true);
if (type === "native") {
key[revType] = key[revType] || {};
key[revType][keyType] = k;
}
return Promise.resolve();
})
})
return Promise.all(propmises);
})
.then
done()
)
.catch(done)
ECDH P-521 type:js ‣
TypeError: subtle[type].generateKey is not a function
at Runnable.run (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4529:15)
at Runner.runTest (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4974:10)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:5057:12
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4899:14)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4909:7
at next (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4844:23)
at https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:4876:5
at timeslice (https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js:6483:27)
done => {
const revType = type === "native" ? "js" : "native";
console.log(key.algorithm, true, key.usages)
subtle[type].generateKey(key.algorithm, true, key.usages)
.then(k => {
if (type === "native")
key[type] = k;
let propmises = ["privateKey", "publicKey"].map(keyType => {
return subtle[type].exportKey("jwk", k[keyType])
.then(jwk => {
console.log(jwk);
return subtle[revType].importKey("jwk", jwk, key.algorithm, true, jwk.key_ops)
})
.then(k => {
assert.equal(!!k, true);
if (type === "native") {
key[revType] = key[revType] || {};
key[revType][keyType] = k;
}
return Promise.resolve();
})
})
return Promise.all(propmises);
})
.then
done()
)
.catch(done)