Home
last modified time | relevance | path

Searched refs:hashfunc (Results 1 – 4 of 4) sorted by relevance

/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/db/
Dtest_password.py39 def hashfunc(msg): function
41 return hashfunc
43 def test_model(self,hashfunc=None): argument
49 password=PasswordProperty(hashfunc=hashfunc)
62 hashfunc = myhashfunc #hashlib.md5 #lambda cls,msg: hmac.new('mysecret',msg) variable in PasswordPropertyTest.test_custom_password_class.MyPassword
102 cls = self.test_model(hashfunc=myhashfunc)
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/sdb/db/
Dproperty.py204 validator=None, choices=None, unique=False, hashfunc=None): argument
213 self.hashfunc = hashfunc
216 p = self.data_type(value, hashfunc=self.hashfunc)
228 p = self.data_type(hashfunc=self.hashfunc)
234 … return self.data_type(super(PasswordProperty, self).__get__(obj, objtype), hashfunc=self.hashfunc)
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/utils/
Dtest_utils.py78 hashfunc = hashlib.sha224 variable in TestPassword.test_custom_hashclass.SHA224Password
91 hashfunc = hmac_hashfunc variable in TestPassword.test_hmac.HMACPassword
103 password = Password(hashfunc=hmac_hashfunc)
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/
Dutils.py764 hashfunc = _hashfn variable in Password
766 def __init__(self, str=None, hashfunc=None): argument
772 if hashfunc:
773 self.hashfunc = hashfunc
778 self.str = self.hashfunc(value).hexdigest()
788 return str(self.hashfunc(other).hexdigest()) == str(self.str)