Fix security test generating signing subkey on Safari 10

This commit is contained in:
Daniel Huigens 2018-11-06 11:48:16 +01:00
parent c037b96037
commit 79124a9680

View File

@ -10,7 +10,7 @@ const expect = chai.expect;
async function generateTestData() {
const victimPrivKey = await key.generate({
userIds: ['Victim <victim@example.com>'],
numBits: 1024,
numBits: openpgp.util.getWebCryptoAll() ? 2048 : 1024,
subkeys: [{
sign: true
}]
@ -19,7 +19,7 @@ async function generateTestData() {
const attackerPrivKey = await key.generate({
userIds: ['Attacker <attacker@example.com>'],
numBits: 1024,
numBits: openpgp.util.getWebCryptoAll() ? 2048 : 1024,
subkeys: [],
sign: false
});