Skip to content

Commit 79ccef3

Browse files
committed
Crypto: Initial sketch for unknown hash, the model needs to recognize unknowns but where the algorithm category (e.g., hashing) is known.
1 parent d2598d4 commit 79ccef3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ import java
1212
import experimental.quantum.Language
1313

1414
from Crypto::HashAlgorithmNode alg
15-
where not exists(alg.getHashType())
16-
select alg, "Use of unknown hash algorithm or API."
15+
where
16+
not exists(alg.getHashType())
17+
or
18+
alg.getHashType() = Crypto::OtherHashType()
19+
select alg, "Use of unknown hash algorithm."

0 commit comments

Comments
 (0)