Skip to content

Commit 9673b81

Browse files
committed
Crypto: Update JCA 'wihHmac" raw name to be the entire raw string, not just "Hmac"
1 parent 704a06e commit 9673b81

File tree

1 file changed

+1
-4
lines changed
  • java/ql/lib/experimental/quantum

1 file changed

+1
-4
lines changed

java/ql/lib/experimental/quantum/JCA.qll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,10 +1244,7 @@ module JCAModel {
12441244

12451245
override Crypto::PaddingAlgorithmInstance getPaddingAlgorithm() { none() }
12461246

1247-
override string getRawAlgorithmName() {
1248-
// Note: hardcoding "hmac" since that should be the only option
1249-
result = "Hmac"
1250-
}
1247+
override string getRawAlgorithmName() { result = this.(StringLiteral).getValue() }
12511248
}
12521249

12531250
class Pbkdf2WithHmac_HashAlgorithmStringLiteral extends Crypto::HashAlgorithmInstance instanceof Pbkdf2WithHmac_KeyOperationAlgorithmStringLiteral

0 commit comments

Comments
 (0)