Use 2048 bit keysize in tests in case of webcrypto support
This commit is contained in:
parent
60c2593649
commit
85133393e3
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user