Lines Matching refs:hashlib
2 # hashlib functions; it does not test for correctness.
6 import hashlib
59 elif hasattr(hashlib, hName) and hasattr(getattr(hashlib, hName), '__call__'):
60 creatorFunc = getattr(hashlib, hName)
61 print("testing speed of hashlib."+hName, getattr(hashlib, hName))
63 exec("creatorFunc = lambda x=hashlib.new : x(%r)" % hName)
64 print("testing speed of hashlib.new(%r)" % hName)
74 print(" 'hName' tests the hashlib.hName() implementation if it exists")
75 print(" otherwise it uses hashlib.new(hName).")