Searched refs:dklen (Results 1 - 4 of 4) sorted by relevance
/third_party/python/Lib/ |
H A D | hashlib.py | 188 def pbkdf2_hmac(hash_name, password, salt, iterations, dklen=None): 229 if dklen is None: 230 dklen = outer.digest_size 231 if dklen < 1: 232 raise ValueError(dklen) 237 while len(dkey) < dklen: 248 return dkey[:dklen]
|
/third_party/python/Modules/ |
H A D | _hashopenssl.c | 1206 dklen as dklen_obj: object = None 1219 long dklen; in pbkdf2_hmac_impl() local 1251 dklen = EVP_MD_size(digest); in pbkdf2_hmac_impl() 1253 dklen = PyLong_AsLong(dklen_obj); in pbkdf2_hmac_impl() 1254 if ((dklen == -1) && PyErr_Occurred()) { in pbkdf2_hmac_impl() 1258 if (dklen < 1) { in pbkdf2_hmac_impl() 1263 if (dklen > INT_MAX) { in pbkdf2_hmac_impl() 1270 key_obj = PyBytes_FromStringAndSize(NULL, dklen); in pbkdf2_hmac_impl() 1279 iterations, digest, dklen, in pbkdf2_hmac_impl() 1312 dklen 1319 _hashlib_scrypt_impl(PyObject *module, Py_buffer *password, Py_buffer *salt, PyObject *n_obj, PyObject *r_obj, PyObject *p_obj, long maxmem, long dklen) _hashlib_scrypt_impl() argument [all...] |
/third_party/python/Lib/test/ |
H A D | test_hashlib.py | 1057 password, salt, rounds, dklen = vector 1060 dklen = overwrite_dklen 1061 out = pbkdf2(digest_name, password, salt, rounds, dklen) 1063 (digest_name, password, salt, rounds, dklen)) 1065 memoryview(salt), rounds, dklen) 1068 bytearray(salt), rounds, dklen) 1070 if dklen is None: 1098 iterations=1, dklen=None) 1148 for dklen in [-1, None]: 1151 dklen [all...] |
/third_party/python/Modules/clinic/ |
H A D | _hashopenssl.c.h | 871 " dklen=None)\n" 888 static const char * const _keywords[] = {"hash_name", "password", "salt", "iterations", "dklen", NULL}; in pbkdf2_hmac() 957 " maxmem=0, dklen=64)\n" 968 long maxmem, long dklen); 974 static const char * const _keywords[] = {"password", "salt", "n", "r", "p", "maxmem", "dklen", NULL}; in _hashlib_scrypt() 984 long dklen = 64; in _hashlib_scrypt() local 1051 dklen = PyLong_AsLong(args[6]); in _hashlib_scrypt() 1052 if (dklen == -1 && PyErr_Occurred()) { in _hashlib_scrypt() 1056 return_value = _hashlib_scrypt_impl(module, &password, &salt, n_obj, r_obj, p_obj, maxmem, dklen); in _hashlib_scrypt()
|
Completed in 8 milliseconds