mirror of
https://github.com/github/codeql.git
synced 2026-02-17 07:23:42 +01:00
16 lines
496 B
Plaintext
16 lines
496 B
Plaintext
/**
|
|
* @name Detects known cipher algorithms
|
|
* @id java/crypto_inventory_slices/known_cipher_algorithm
|
|
* @kind problem
|
|
*/
|
|
|
|
import java
|
|
import experimental.quantum.Language
|
|
|
|
// TODO: should there be a cipher algorithm node?
|
|
from Crypto::KeyOperationAlgorithmNode a
|
|
where
|
|
a.getAlgorithmType() instanceof Crypto::KeyOpAlg::AsymmetricCipherAlgorithm or
|
|
a.getAlgorithmType() instanceof Crypto::KeyOpAlg::SymmetricCipherAlgorithm
|
|
select a, "Instance of cipher algorithm " + a.getAlgorithmName()
|