Home
last modified time | relevance | path

Searched refs:digestmod (Results 1 – 2 of 2) sorted by relevance

/external/chromium_org/third_party/tlslite/tlslite/
Dmathtls.py110 def createHMAC(k, digestmod=hashlib.sha1): argument
111 return hmac.HMAC(k, digestmod=digestmod)
113 def createMAC_SSL(k, digestmod=None): argument
115 mac.create(k, digestmod=digestmod)
120 def create(self, k, digestmod=None): argument
121 self.digestmod = digestmod or hashlib.sha1
123 self.digest_size = 16 if (self.digestmod is hashlib.md5) else 20
128 self.ohash = self.digestmod(k + opad)
129 self.ihash = self.digestmod(k + ipad)
138 new.digestmod = self.digestmod
Dtlsrecordlayer.py1072 digestmod = hashlib.sha1
1075 digestmod = hashlib.md5
1108 compatHMAC(clientMACBlock), digestmod=digestmod)
1110 compatHMAC(serverMACBlock), digestmod=digestmod)