Skip to content

Commit 8727060

Browse files
erik-kroghRasmusWL
andauthored
add comment about modes of operation
Co-authored-by: Rasmus Wriedt Larsen <[email protected]>
1 parent a19627c commit 8727060

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

javascript/ql/lib/semmle/javascript/security/CryptoAlgorithms.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ abstract class CryptographicAlgorithm extends TCryptographicAlgorithm {
8585

8686
/**
8787
* Holds if the name of this algorithm matches `name` modulo case,
88-
* white space, dashes, underscores, and anything after a dash in the name.
88+
* white space, dashes, underscores, and anything after a dash in the name
89+
* (to ignore modes of operation, such as CBC or ECB).
8990
*/
9091
bindingset[name]
9192
predicate matchesName(string name) {

python/ql/lib/semmle/python/concepts/CryptoAlgorithms.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ abstract class CryptographicAlgorithm extends TCryptographicAlgorithm {
8585

8686
/**
8787
* Holds if the name of this algorithm matches `name` modulo case,
88-
* white space, dashes, underscores, and anything after a dash in the name.
88+
* white space, dashes, underscores, and anything after a dash in the name
89+
* (to ignore modes of operation, such as CBC or ECB).
8990
*/
9091
bindingset[name]
9192
predicate matchesName(string name) {

0 commit comments

Comments
 (0)