File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
python/ql/test/library-tests/frameworks/stdlib Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 27
27
hasher .update (b"secret" ) # $ CryptographicOperation CryptographicOperationInput=b"secret" CryptographicOperationAlgorithm=MD5
28
28
hasher .update (b" message" ) # $ CryptographicOperation CryptographicOperationInput=b" message" CryptographicOperationAlgorithm=MD5
29
29
print (hasher .hexdigest ())
30
+
31
+
32
+ def foo (arg ):
33
+ hasher = hashlib .new (arg )
34
+ hasher .update (b"secret" ) # $ MISSING: CryptographicOperation CryptographicOperationInput=b"secret" CryptographicOperationAlgorithm=MD5
35
+ hasher .update (b" message" ) # $ MISSING: CryptographicOperation CryptographicOperationInput=b" message" CryptographicOperationAlgorithm=MD5
36
+ print (hasher .hexdigest ())
37
+
38
+ foo ("md5" )
You can’t perform that action at this time.
0 commit comments