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

Method _current

Lib/hmac.py:184–194  ·  view source on GitHub ↗

Return a hash object for the current state. To be used only internally with digest() and hexdigest().

(self)

Source from the content-addressed store, hash-verified

182 return other
183
184 def _current(self):
185 """Return a hash object for the current state.
186
187 To be used only internally with digest() and hexdigest().
188 """
189 if self._hmac:
190 return self._hmac
191 else:
192 h = self._outer.copy()
193 h.update(self._inner.digest())
194 return h
195
196 def digest(self):
197 """Return the hash value of this hashing object.

Callers 2

digestMethod · 0.95
hexdigestMethod · 0.95

Calls 3

copyMethod · 0.45
updateMethod · 0.45
digestMethod · 0.45

Tested by

no test coverage detected