Skip to content

Commit 31b0690

Browse files
committed
Initialization vector models
1 parent a8eb95a commit 31b0690

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

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

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

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ class CryptoKeySink extends CredentialsSinkNode {
3232
CryptoKeySink() { sinkNode(this, "crypto-parameter") }
3333
}
3434

35+
/**
36+
* A node representing a cryptographic initialization vector being passed to a method.
37+
*/
38+
class InitializationVectorSink extends CredentialsSinkNode {
39+
InitializationVectorSink() { sinkNode(this, "encryption-iv") }
40+
}
41+
3542
/**
3643
* DEPRECATED: Use the `PasswordSink` class instead.
3744
* Holds if callable `c` from a standard Java API expects a password parameter at index `i`.

0 commit comments

Comments
 (0)