Remove initialization vectors from SensitiveApi

This commit is contained in:
Ed Minnix
2023-10-12 14:51:42 -04:00
parent c689065f83
commit a28f19c857
2 changed files with 1 additions and 14 deletions

View File

@@ -32,13 +32,6 @@ class CryptoKeySink extends CredentialsSinkNode {
CryptoKeySink() { sinkNode(this, "credentials-key") }
}
/**
* A node representing a cryptographic initialization vector being passed to a method.
*/
class InitializationVectorSink extends DataFlow::Node {
InitializationVectorSink() { sinkNode(this, "encryption-iv") }
}
/**
* DEPRECATED: Use the `PasswordSink` class instead.
* Holds if callable `c` from a standard Java API expects a password parameter at index `i`.
@@ -73,8 +66,4 @@ deprecated predicate javaApiCallableCryptoKeyParam(Callable c, int i) {
* DEPRECATED: Use the `CredentialsSinkNode` class instead.
* Holds if callable `c` from a known API expects a credential parameter at index `i`.
*/
deprecated predicate otherApiCallableCredentialParam(Callable c, int i) {
exists(InitializationVectorSink sink, MethodAccess ma |
sink.asExpr() = ma.getArgument(i) and c = ma.getCallee()
)
}
deprecated predicate otherApiCallableCredentialParam(Callable c, int i) { none() }