Skip to content

Commit 2b6a832

Browse files
committed
Crypto: Update JCA model to account for Model.qll changes.
1 parent 7c18686 commit 2b6a832

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,15 +1243,15 @@ module JCAModel {
12431243
exists(hash_name_to_type_known(this.getRawHashAlgorithmName(), result))
12441244
}
12451245

1246-
override string getRawMACAlgorithmName() {
1246+
override string getRawMacAlgorithmName() {
12471247
result = super.getRawKDFAlgorithmName().splitAt("PBKDF2With", 1)
12481248
}
12491249

12501250
override string getRawHashAlgorithmName() {
12511251
result = super.getRawKDFAlgorithmName().splitAt("WithHmac", 1)
12521252
}
12531253

1254-
override Crypto::TMACType getMACType() { result instanceof Crypto::THMAC }
1254+
override Crypto::TMACType getMacType() { result instanceof Crypto::THMAC }
12551255

12561256
override Crypto::AlgorithmValueConsumer getHMACAlgorithmValueConsumer() { result = this }
12571257

@@ -1487,9 +1487,9 @@ module JCAModel {
14871487

14881488
MACGetInstanceAlgorithmValueConsumer getConsumer() { result = consumer }
14891489

1490-
override string getRawMACAlgorithmName() { result = super.getValue() }
1490+
override string getRawMacAlgorithmName() { result = super.getValue() }
14911491

1492-
override Crypto::TMACType getMACType() {
1492+
override Crypto::TMACType getMacType() {
14931493
if mac_name_to_mac_type_known(_, super.getValue())
14941494
then mac_name_to_mac_type_known(result, super.getValue())
14951495
else result instanceof Crypto::TOtherMACType

0 commit comments

Comments
 (0)