Use 2048 bit keysize in tests in case of webcrypto support

This commit is contained in:
Tankred Hase 2015-05-13 14:06:48 +02:00
parent 60c2593649
commit 85133393e3

View File

@ -13,6 +13,10 @@ describe('Basic', function() {
var privKey; var privKey;
var pubKey; var pubKey;
if (openpgp.util.getWebCrypto()) {
opt.numBits = 2048; // webkit webcrypto accepts minimum 2048 bit keys
}
openpgp.generateKeyPair(opt).then(function(key) { openpgp.generateKeyPair(opt).then(function(key) {
expect(key).to.exist; expect(key).to.exist;