Searched refs:digestmod (Results 1 – 2 of 2) sorted by relevance
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | hmac.py | 27 def __init__(self, key, msg = None, digestmod = None): argument 40 if digestmod is None: 42 digestmod = hashlib.md5 44 if hasattr(digestmod, '__call__'): 45 self.digest_cons = digestmod 47 self.digest_cons = lambda d='': digestmod.new(d) 122 def new(key, msg = None, digestmod = None): argument 133 return HMAC(key, msg, digestmod)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_hmac.py | 47 h = hmac.HMAC(key, data, digestmod=hashlib.sha1) 81 h = hmac.HMAC(key, data, digestmod=hashfunc) 217 hmac.HMAC('a', 'b', digestmod=MockCrazyHash) 222 hmac.HMAC('a', 'b', digestmod=MockCrazyHash)
|