Skip to content

Commit 98479ff

Browse files
committed
Crypto: Update queries to use new type names
1 parent ad7358a commit 98479ff

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

java/ql/src/experimental/quantum/Examples/TestAESGCMNonce.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import experimental.quantum.Language
77
class AESGCMAlgorithmNode extends Crypto::KeyOperationAlgorithmNode {
88
AESGCMAlgorithmNode() {
99
this.getAlgorithmType() = Crypto::KeyOpAlg::TSymmetricCipher(Crypto::KeyOpAlg::AES()) and
10-
this.getModeOfOperation().getModeType() = Crypto::GCM()
10+
this.getModeOfOperation().getModeType() = Crypto::KeyOpAlg::GCM()
1111
}
1212
}
1313

java/ql/src/experimental/quantum/InventorySlices/KnownAsymmetricCipherAlgorithm.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ import java
1111
import experimental.quantum.Language
1212

1313
from Crypto::KeyOperationAlgorithmNode a
14-
where a.getAlgorithmType() instanceof Crypto::KeyOpAlg::AsymmetricCipherAlgorithm
14+
where a.getAlgorithmType() instanceof Crypto::KeyOpAlg::AsymmetricCipherAlgorithmType
1515
select a, a.getAlgorithmName()

java/ql/src/experimental/quantum/InventorySlices/KnownCipherAlgorithm.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ import experimental.quantum.Language
1313
// TODO: should there be a cipher algorithm node?
1414
from Crypto::KeyOperationAlgorithmNode a
1515
where
16-
a.getAlgorithmType() instanceof Crypto::KeyOpAlg::AsymmetricCipherAlgorithm or
17-
a.getAlgorithmType() instanceof Crypto::KeyOpAlg::SymmetricCipherAlgorithm
16+
a.getAlgorithmType() instanceof Crypto::KeyOpAlg::AsymmetricCipherAlgorithmType or
17+
a.getAlgorithmType() instanceof Crypto::KeyOpAlg::SymmetricCipherAlgorithmType
1818
select a, a.getAlgorithmName()

java/ql/src/experimental/quantum/InventorySlices/KnownSymmetricCipherAlgorithm.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ import java
1111
import experimental.quantum.Language
1212

1313
from Crypto::KeyOperationAlgorithmNode a
14-
where a.getAlgorithmType() instanceof Crypto::KeyOpAlg::SymmetricCipherAlgorithm
14+
where a.getAlgorithmType() instanceof Crypto::KeyOpAlg::SymmetricCipherAlgorithmType
1515
select a, a.getAlgorithmName()

0 commit comments

Comments
 (0)