We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
getDerivedKeySizeSrc
1 parent f2942ca commit 19ed6bbCopy full SHA for 19ed6bb
1 file changed
python/ql/lib/experimental/cryptography/modules/CryptographyModule.qll
@@ -146,7 +146,9 @@ module KDF {
146
147
// TODO: get encryption algorithm for CBC-based KDF?
148
override DataFlow::Node getDerivedKeySizeSrc() {
149
- if this.getAlgorithm().getKDFName() in ["KBKDFHMAC", "KBKDFCMAC"]
+ if this.getAlgorithm().getKDFName() = "ARGON2"
150
+ then result = Utils::getUltimateSrcFromApiNode(this.getKeywordParameter("length"))
151
+ else if this.getAlgorithm().getKDFName() in ["KBKDFHMAC", "KBKDFCMAC"]
152
then result = Utils::getUltimateSrcFromApiNode(this.getParameter(2, "length"))
153
else result = Utils::getUltimateSrcFromApiNode(this.getParameter(1, "length"))
154
}
0 commit comments