HomeSort by relevance Sort by last modified time
    Searched refs:digestmod (Results 1 - 6 of 6) sorted by null

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
hmac.py 27 def __init__(self, key, msg = None, digestmod = None):
32 digestmod: A module supporting PEP 247. *OR*
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):
133 return HMAC(key, msg, digestmod)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
hmac.py 27 def __init__(self, key, msg = None, digestmod = None):
32 digestmod: A module supporting PEP 247. *OR*
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):
133 return HMAC(key, msg, digestmod)
  /external/chromium_org/third_party/tlslite/tlslite/
mathtls.py 110 def createHMAC(k, digestmod=hashlib.sha1):
111 return hmac.HMAC(k, digestmod=digestmod)
113 def createMAC_SSL(k, digestmod=None):
115 mac.create(k, digestmod=digestmod)
120 def create(self, k, digestmod=None):
121 self.digestmod = digestmod or hashlib.sha1
123 self.digest_size = 16 if (self.digestmod is hashlib.md5) else 2
    [all...]
tlsrecordlayer.py     [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
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)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
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)

Completed in 2543 milliseconds