We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d56c82f commit 81e027fCopy full SHA for 81e027f
swift/ql/src/queries/Security/CWE-321/HardcodedEncryptionKey.ql
@@ -20,14 +20,14 @@ import DataFlow::PathGraph
20
abstract class KeySource extends Expr { }
21
22
/**
23
- * The creation of a literal byte array.
+ * A literal byte array is a key source.
24
*/
25
class ByteArrayLiteralSource extends KeySource {
26
ByteArrayLiteralSource() { this = any(ArrayExpr arr | arr.getType().toString() = "Array<UInt8>") }
27
}
28
29
30
- * Any string literal as a key source.
+ * A string literal is a key source.
31
32
class StringLiteralSource extends KeySource {
33
StringLiteralSource() { this instanceof StringLiteralExpr }
0 commit comments