MCPcopy Index your code
hub / github.com/python/cpython / _init_openssl_hmac

Method _init_openssl_hmac

Lib/hmac.py:104–108  ·  view source on GitHub ↗
(self, key, msg, digestmod)

Source from the content-addressed store, hash-verified

102 self._init_old(key, msg, digestmod)
103
104 def _init_openssl_hmac(self, key, msg, digestmod):
105 self._hmac = _hashopenssl.hmac_new(key, msg, digestmod=digestmod)
106 self._inner = self._outer = None # because the slots are defined
107 self.digest_size = self._hmac.digest_size
108 self.block_size = self._hmac.block_size
109
110 _init_hmac = _init_openssl_hmac # for backward compatibility (if any)
111

Callers 2

__initMethod · 0.95
initMethod · 0.80

Calls 1

hmac_newMethod · 0.45

Tested by 1

initMethod · 0.64