Skip to content

Commit ce3eabf

Browse files
committed
Updating model to support slicing.
1 parent 5a8bffa commit ce3eabf

File tree

1 file changed

+2
-3
lines changed
  • shared/cryptography/codeql/cryptography

1 file changed

+2
-3
lines changed

shared/cryptography/codeql/cryptography/Model.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ module CryptographyBase<LocationSig Location, InputSig<Location> Input> {
12491249
/**
12501250
* A generic source node is a source of data that is not resolvable to a specific asset.
12511251
*/
1252-
private class GenericSourceNode extends NodeBase, TGenericSourceNode {
1252+
final class GenericSourceNode extends NodeBase, TGenericSourceNode {
12531253
GenericSourceInstance instance;
12541254

12551255
GenericSourceNode() { this = TGenericSourceNode(instance) }
@@ -2449,10 +2449,9 @@ module CryptographyBase<LocationSig Location, InputSig<Location> Input> {
24492449
}
24502450
}
24512451

2452-
predicate isAsymmetricAlgorithm(AlgorithmNode node) {
2452+
predicate isKnownAsymmetricAlgorithm(AlgorithmNode node) {
24532453
node instanceof EllipticCurveNode
24542454
or
24552455
node instanceof KeyOperationAlgorithmNode and node.(KeyOperationAlgorithmNode).isAsymmetric()
2456-
// TODO: get unknown algorithms from known asymmetric operations
24572456
}
24582457
}

0 commit comments

Comments
 (0)