2
2
Fork 0

use the opts we built, duh

Dieser Commit ist enthalten in:
AJ ONeal 2018-11-10 07:58:02 +00:00
Ursprung 8a7183ed9c
Commit 09ff0b3adc
2 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -34,9 +34,11 @@
testEcdsaSupport().then(function () { testEcdsaSupport().then(function () {
console.log("supports ECDSA"); console.log("supports ECDSA");
BROWSER_SUPPORTS_ECDSA = true; BROWSER_SUPPORTS_ECDSA = true;
return true;
}).catch(function () { }).catch(function () {
console.log("DOES NOT supports ECDSA"); console.log("DOES NOT supports ECDSA");
BROWSER_SUPPORTS_ECDSA = false; BROWSER_SUPPORTS_ECDSA = false;
return false;
}); });
// TODO test RSA support // TODO test RSA support

Datei anzeigen

@ -566,7 +566,7 @@ BACME.generateKeypair = function (opts) {
} }
var extractable = true; var extractable = true;
return window.crypto.subtle.generateKey( return window.crypto.subtle.generateKey(
{ name: "ECDSA", namedCurve: "P-256" } wcOpts
, extractable , extractable
, [ 'sign', 'verify' ] , [ 'sign', 'verify' ]
); );