Fix security test generating signing subkey on Safari 10
This commit is contained in:
parent
c037b96037
commit
79124a9680
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user