Searched refs:digestmod (Results 1 – 2 of 2) sorted by relevance
110 def createHMAC(k, digestmod=hashlib.sha1): argument111 return hmac.HMAC(k, digestmod=digestmod)113 def createMAC_SSL(k, digestmod=None): argument115 mac.create(k, digestmod=digestmod)120 def create(self, k, digestmod=None): argument121 self.digestmod = digestmod or hashlib.sha1123 self.digest_size = 16 if (self.digestmod is hashlib.md5) else 20128 self.ohash = self.digestmod(k + opad)129 self.ihash = self.digestmod(k + ipad)138 new.digestmod = self.digestmod
1072 digestmod = hashlib.sha1 1075 digestmod = hashlib.md51108 compatHMAC(clientMACBlock), digestmod=digestmod)1110 compatHMAC(serverMACBlock), digestmod=digestmod)