Searched refs:digestmod (Results 1 - 4 of 4) sorted by relevance
/third_party/python/Lib/ |
H A D | hmac.py | 38 def __init__(self, key, msg=None, digestmod=''): 43 digestmod: A hash name suitable for hashlib.new(). *OR* 55 if not digestmod: 56 raise TypeError("Missing required parameter 'digestmod'.") 58 if _hashopenssl and isinstance(digestmod, (str, _functype)): 60 self._init_hmac(key, msg, digestmod) 62 self._init_old(key, msg, digestmod) 64 self._init_old(key, msg, digestmod) 66 def _init_hmac(self, key, msg, digestmod): 67 self._hmac = _hashopenssl.hmac_new(key, msg, digestmod [all...] |
/third_party/python/Lib/test/ |
H A D | test_hmac.py | 54 h = hmac.HMAC(key, data, digestmod=hashfunc) 59 h = hmac.HMAC(key, data, digestmod=hashname) 64 h = hmac.HMAC(key, digestmod=hashname) 70 h = hmac.new(key, data, digestmod=hashname) 75 h = hmac.new(key, None, digestmod=hashname) 79 h = hmac.new(key, digestmod=hashname) 83 h = hmac.new(key, data, digestmod=hashfunc) 96 h._init_old(key, data, digestmod=hashname) 102 h = c_hmac_new(key, data, digestmod=hashname) 107 h = c_hmac_new(key, digestmod [all...] |
/third_party/python/Modules/ |
H A D | _hashopenssl.c | 377 py_digest_by_digestmod(PyObject *module, PyObject *digestmod, enum Py_hash_type py_ht) { in py_digest_by_digestmod() argument 382 if (PyUnicode_Check(digestmod)) { in py_digest_by_digestmod() 383 name_obj = digestmod; in py_digest_by_digestmod() 387 name_obj = PyDict_GetItem(state->constructs, digestmod); in py_digest_by_digestmod() 394 "Unsupported digestmod %R", digestmod); in py_digest_by_digestmod() 1485 digestmod: object(c_default="NULL") = None 1492 PyObject *digestmod) in _hashlib_hmac_new_impl() 1507 if (digestmod == NULL) { in _hashlib_hmac_new_impl() 1509 PyExc_TypeError, "Missing required parameter 'digestmod' in _hashlib_hmac_new_impl() 1491 _hashlib_hmac_new_impl(PyObject *module, Py_buffer *key, PyObject *msg_obj, PyObject *digestmod) _hashlib_hmac_new_impl() argument [all...] |
/third_party/python/Modules/clinic/ |
H A D | _hashopenssl.c.h | 1132 "hmac_new($module, /, key, msg=b\'\', digestmod=None)\n" 1142 PyObject *digestmod); 1148 static const char * const _keywords[] = {"key", "msg", "digestmod", NULL}; in _hashlib_hmac_new() 1154 PyObject *digestmod = NULL; in _hashlib_hmac_new() local 1176 digestmod = args[2]; in _hashlib_hmac_new() 1178 return_value = _hashlib_hmac_new_impl(module, &key, msg_obj, digestmod); in _hashlib_hmac_new()
|
Completed in 6 milliseconds