mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
I also added a new test to show off how what the origin ends up looking like... I think it looks ok
9 lines
322 B
Plaintext
9 lines
322 B
Plaintext
import semmle.python.dataflow.new.DataFlow
|
|
import semmle.python.Concepts
|
|
|
|
from Cryptography::PublicKey::KeyGeneration keyGen, int keySize, DataFlow::Node origin
|
|
where
|
|
keyGen.getLocation().getFile().getShortName() = "ec_keygen_origin.py" and
|
|
keySize = keyGen.getKeySizeWithOrigin(origin)
|
|
select keyGen, keySize, origin
|