mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
JS: Accept alerts for InsufficientKeySize
This commit is contained in:
@@ -32,7 +32,7 @@ var bad9 = forge.cipher.createDecipher('3DES-CBC', key3); // $ Alert
|
||||
var key4 = myBuffer.getBytes(16);
|
||||
var good5 = forge.cipher.createDecipher('AES-CBC', key4);
|
||||
|
||||
var bad10 = crypto.createDiffieHellman(512);
|
||||
var bad10 = crypto.createDiffieHellman(512); // $ Alert
|
||||
var good6 = crypto.createDiffieHellman(2048);
|
||||
|
||||
const NodeRSA = require('node-rsa');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const crypto = $.require("crypto");
|
||||
|
||||
const bad1 = crypto.generateKeyPairSync("rsa", { modulusLength: 1024 }); // NOT OK
|
||||
const bad1 = crypto.generateKeyPairSync("rsa", { modulusLength: 1024 }); // $ Alert
|
||||
|
||||
const good1 = crypto.generateKeyPairSync("rsa", { modulusLength: 4096 }); // OK
|
||||
|
||||
Reference in New Issue
Block a user