Crypto: more ID renaming to include "examples", fix singleton issues with ql-for-ql, use formatted test for WeakAsymmetricKeyGenSize (add post processing in the qlref), misc expected files updated (test passed locally but on rerun vscode reports failures, known bug with vscode unit tests).

This commit is contained in:
REDMOND\brodes
2025-10-17 14:13:53 -04:00
parent 540daa6df2
commit c01c060476
16 changed files with 31 additions and 26 deletions

View File

@@ -230,7 +230,7 @@ module JCAModel {
bindingset[name]
predicate key_agreement_name_to_type_known(Crypto::TKeyAgreementType type, string name) {
type = Crypto::DH() and
name.toUpperCase() in ["DH"]
name.toUpperCase() = "DH"
or
type = Crypto::EDH() and
name.toUpperCase() = "EDH"
@@ -1659,7 +1659,7 @@ module JCAModel {
Expr getOutput() { result = output }
Expr getInput() {
super.getMethod().hasStringSignature(["doFinal(byte[])"]) and result = this.getArgument(0)
super.getMethod().hasStringSignature("doFinal(byte[])") and result = this.getArgument(0)
or
super.getMethod().hasStringSignature("update(byte[])") and result = this.getArgument(0)
}