mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-03-30 15:08:32 +00:00
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 pubKey;
|
||||
|
||||
if (openpgp.util.getWebCrypto()) {
|
||||
opt.numBits = 2048; // webkit webcrypto accepts minimum 2048 bit keys
|
||||
}
|
||||
|
||||
openpgp.generateKeyPair(opt).then(function(key) {
|
||||
|
||||
expect(key).to.exist;
|
||||
|
Loading…
x
Reference in New Issue
Block a user