Skip to content

Commit 2642af1

Browse files
committed
fix: scrypt requires salt
1 parent 094f7bf commit 2642af1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/lib/experimental/cryptography/modules/CryptographyModule.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ module KDF {
111111
}
112112

113113
override predicate requiresSalt() {
114-
this.getAlgorithm().getKDFName() in ["PBKDF2HMAC", "CONCATKDFHMAC", "HKDF"]
114+
this.getAlgorithm().getKDFName() in ["PBKDF2HMAC", "CONCATKDFHMAC", "HKDF", "SCRYPT"]
115115
}
116116

117117
override predicate requiresIteration() { this.getAlgorithm().getKDFName() in ["PBKDF2HMAC"] }

0 commit comments

Comments
 (0)