Skip to content

Commit ee08385

Browse files
committed
Crytpo: Update JCA keyagreement to type conversion, XDH is a type of ECDH.
1 parent 55bbcee commit ee08385

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,13 @@ module JCAModel {
221221
bindingset[name]
222222
predicate key_agreement_name_to_type_known(Crypto::TKeyAgreementType type, string name) {
223223
type = Crypto::DH() and
224-
name.toUpperCase() in ["DH", "XDH"]
224+
name.toUpperCase() in ["DH"]
225225
or
226226
type = Crypto::EDH() and
227227
name.toUpperCase() = "EDH"
228228
or
229229
type = Crypto::ECDH() and
230-
name.toUpperCase() in ["ECDH", "X25519", "X448"]
230+
name.toUpperCase() in ["ECDH", "X25519", "X448", "XDH"]
231231
or
232232
type = Crypto::OtherKeyAgreementType() and
233233
name.toUpperCase().matches("ML-KEM%")

0 commit comments

Comments
 (0)