Skip to content

Commit deb4373

Browse files
committed
Crypto: Minor fixes to WeakSymmetricCipher, change to a singular name for consistency.
1 parent 3dedda4 commit deb4373

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

java/ql/src/experimental/quantum/Analysis/WeakSymmetricCiphers.ql renamed to java/ql/src/experimental/quantum/Analysis/WeakSymmetricCipher.ql

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import java
1414
import experimental.quantum.Language
1515
import Crypto::KeyOpAlg as KeyOpAlg
1616

17-
from Crypto::KeyOperationAlgorithmNode alg, KeyOpAlg::AlgorithmType algType, string msg
17+
from Crypto::KeyOperationAlgorithmNode alg, KeyOpAlg::AlgorithmType algType
1818
where
1919
algType = alg.getAlgorithmType() and
2020
(
@@ -25,6 +25,5 @@ where
2525
algType = KeyOpAlg::TSymmetricCipher(KeyOpAlg::RC4()) or
2626
algType = KeyOpAlg::TSymmetricCipher(KeyOpAlg::IDEA()) or
2727
algType = KeyOpAlg::TSymmetricCipher(KeyOpAlg::BLOWFISH())
28-
) and
29-
msg = "Use of unapproved symmetric cipher algorithm or API: " + algType.toString() + "."
30-
select alg, msg
28+
)
29+
select alg, "Use of unapproved symmetric cipher algorithm or API: " + algType.toString() + "."

0 commit comments

Comments
 (0)