Skip to content

Commit a28f19c

Browse files
committed
Remove initialization vectors from SensitiveApi
1 parent c689065 commit a28f19c

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

java/ql/lib/ext/javax.crypto.spec.model.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,3 @@ extensions:
2323
- ["javax.crypto.spec", "DESedeKeySpec", False, "isParityAdjusted", "(byte[],int)", "", "Argument[0]", "credentials-key", "hq-generated"]
2424
- ["javax.crypto.spec", "SecretKeySpec", False, "SecretKeySpec", "(byte[],String)", "", "Argument[0]", "credentials-key", "hq-generated"]
2525
- ["javax.crypto.spec", "SecretKeySpec", False, "SecretKeySpec", "(byte[],int,int,String)", "", "Argument[0]", "credentials-key", "hq-generated"]
26-
- ["javax.crypto.spec", "IvParameterSpec", False, "IvParameterSpec", "(byte[])", "", "Argument[0]", "encryption-iv", "hq-generated"]
27-
- ["javax.crypto.spec", "IvParameterSpec", False, "IvParameterSpec", "(byte[],int,int)", "", "Argument[0]", "encryption-iv", "hq-generated"]

java/ql/lib/semmle/code/java/security/SensitiveApi.qll

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ class CryptoKeySink extends CredentialsSinkNode {
3232
CryptoKeySink() { sinkNode(this, "credentials-key") }
3333
}
3434

35-
/**
36-
* A node representing a cryptographic initialization vector being passed to a method.
37-
*/
38-
class InitializationVectorSink extends DataFlow::Node {
39-
InitializationVectorSink() { sinkNode(this, "encryption-iv") }
40-
}
41-
4235
/**
4336
* DEPRECATED: Use the `PasswordSink` class instead.
4437
* 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) {
7366
* DEPRECATED: Use the `CredentialsSinkNode` class instead.
7467
* Holds if callable `c` from a known API expects a credential parameter at index `i`.
7568
*/
76-
deprecated predicate otherApiCallableCredentialParam(Callable c, int i) {
77-
exists(InitializationVectorSink sink, MethodAccess ma |
78-
sink.asExpr() = ma.getArgument(i) and c = ma.getCallee()
79-
)
80-
}
69+
deprecated predicate otherApiCallableCredentialParam(Callable c, int i) { none() }

0 commit comments

Comments
 (0)