mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
WIP
This commit is contained in:
17
cpp/ql/src/experimental/Quantum/Test.ql
Normal file
17
cpp/ql/src/experimental/Quantum/Test.ql
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @name "PQC Test"
|
||||
* @kind graph
|
||||
*/
|
||||
|
||||
import experimental.Quantum.Language
|
||||
|
||||
query predicate nodes(Crypto::NodeBase node) { any() }
|
||||
|
||||
query predicate edges(Crypto::NodeBase source, Crypto::NodeBase target, string key, string value) {
|
||||
target = source.getChild(value) and
|
||||
key = "semmle.label"
|
||||
}
|
||||
|
||||
query predicate graphProperties(string key, string value) {
|
||||
key = "semmle.graphKind" and value = "tree"
|
||||
}
|
||||
8
cpp/ql/src/experimental/Quantum/Test2.ql
Normal file
8
cpp/ql/src/experimental/Quantum/Test2.ql
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* @name "PQC Test"
|
||||
*/
|
||||
|
||||
import experimental.Quantum.Language
|
||||
|
||||
from Crypto::KeyDerivationAlgorithm n
|
||||
select n
|
||||
Reference in New Issue
Block a user