Swift: Model RNCryptor.

This commit is contained in:
Geoffrey White
2023-01-17 17:55:52 +00:00
parent a92e1c7ea0
commit d1cfdb97ee
3 changed files with 37 additions and 6 deletions

View File

@@ -38,6 +38,14 @@ class ConstantSaltSink extends Expr {
call.getStaticTarget() = f and
call.getArgumentWithLabel("salt").getExpr() = this
)
or
// RNCryptor
exists(ClassOrStructDecl c, MethodDecl f, CallExpr call |
c.getFullName() = ["RNCryptor", "RNEncryptor", "RNDecryptor"] and
c.getAMember() = f and
call.getStaticTarget() = f and
call.getArgumentWithLabel(["salt", "encryptionSalt", "hmacSalt", "HMACSalt"]).getExpr() = this
)
}
}