/third_party/openssl/crypto/asn1/ |
D | p5_pbev2.c | 19 ASN1_SIMPLE(PBE2PARAM, keyfunc, X509_ALGOR), 106 X509_ALGOR_free(pbe2->keyfunc); 108 pbe2->keyfunc = PKCS5_pbkdf2_set(iter, salt, saltlen, prf_nid, keylen); 110 if (!pbe2->keyfunc) 152 X509_ALGOR *keyfunc = NULL; in PKCS5_pbkdf2_set() local 201 keyfunc = X509_ALGOR_new(); in PKCS5_pbkdf2_set() 202 if (keyfunc == NULL) in PKCS5_pbkdf2_set() 205 keyfunc->algorithm = OBJ_nid2obj(NID_id_pbkdf2); in PKCS5_pbkdf2_set() 210 &keyfunc->parameter)) in PKCS5_pbkdf2_set() 214 return keyfunc; in PKCS5_pbkdf2_set() [all …]
|
D | p5_scrypt.c | 111 X509_ALGOR_free(pbe2->keyfunc); in PKCS5_pbe2_set_scrypt() 113 pbe2->keyfunc = pkcs5_scrypt_set(salt, saltlen, keylen, N, r, p); in PKCS5_pbe2_set_scrypt() 115 if (pbe2->keyfunc == NULL) in PKCS5_pbe2_set_scrypt() 152 X509_ALGOR *keyfunc = NULL; in pkcs5_scrypt_set() local 189 keyfunc = X509_ALGOR_new(); in pkcs5_scrypt_set() 190 if (keyfunc == NULL) in pkcs5_scrypt_set() 193 keyfunc->algorithm = OBJ_nid2obj(NID_id_scrypt); in pkcs5_scrypt_set() 198 &keyfunc->parameter) == NULL) in pkcs5_scrypt_set() 202 return keyfunc; in pkcs5_scrypt_set() 208 X509_ALGOR_free(keyfunc); in pkcs5_scrypt_set()
|
/third_party/python/Lib/test/ |
D | test_bisect.py | 210 keyfunc = abs 211 arr = sorted([2, -4, 6, 8, -10], key=keyfunc) 212 precomputed_arr = list(map(keyfunc, arr)) 215 mod.bisect_left(arr, x, key=keyfunc), 219 mod.bisect_right(arr, x, key=keyfunc), 223 keyfunc = str.casefold 224 arr = sorted('aBcDeEfgHhiIiij', key=keyfunc) 225 precomputed_arr = list(map(keyfunc, arr)) 228 mod.bisect_left(arr, x, key=keyfunc), 232 mod.bisect_right(arr, x, key=keyfunc), [all …]
|
D | test_itertools.py | 825 def keyfunc(obj): function 826 if keyfunc.skip > 0: 827 keyfunc.skip -= 1 833 keyfunc.skip = 0 834 self.assertRaises(ExpectedError, gulp, [None], keyfunc) 835 keyfunc.skip = 1 836 self.assertRaises(ExpectedError, gulp, [None, None], keyfunc) 1827 keyfunc = lambda x: x function 1828 for i, j in groupby(range(n), key=keyfunc): 1829 keyfunc.__dict__.setdefault('x',[]).append(j)
|
/third_party/python/Objects/clinic/ |
D | listobject.c.h | 163 list_sort_impl(PyListObject *self, PyObject *keyfunc, int reverse); 173 PyObject *keyfunc = Py_None; in list_sort() local 184 keyfunc = args[0]; in list_sort() 194 return_value = list_sort_impl(self, keyfunc, reverse); in list_sort()
|
/third_party/python/Modules/clinic/ |
D | itertoolsmodule.c.h | 50 itertools_groupby_impl(PyTypeObject *type, PyObject *it, PyObject *keyfunc); 63 PyObject *keyfunc = Py_None; in itertools_groupby() local 73 keyfunc = fastargs[1]; in itertools_groupby() 75 return_value = itertools_groupby_impl(type, it, keyfunc); in itertools_groupby()
|
/third_party/openssl/crypto/evp/ |
D | p5_crpt2.c | 155 if (!EVP_PBE_find(EVP_PBE_TYPE_KDF, OBJ_obj2nid(pbe2->keyfunc->algorithm), in PKCS5_v2_PBE_keyivgen() 180 rv = kdf(ctx, pass, passlen, pbe2->keyfunc->parameter, NULL, NULL, en_de); in PKCS5_v2_PBE_keyivgen()
|
/third_party/python/Modules/ |
D | itertoolsmodule.c | 191 PyObject *keyfunc; member 215 itertools_groupby_impl(PyTypeObject *type, PyObject *it, PyObject *keyfunc) in itertools_groupby_impl() argument 226 gbo->keyfunc = keyfunc; in itertools_groupby_impl() 227 Py_INCREF(keyfunc); in itertools_groupby_impl() 241 Py_XDECREF(gbo->keyfunc); in groupby_dealloc() 252 Py_VISIT(gbo->keyfunc); in groupby_traverse() 268 if (gbo->keyfunc == Py_None) { in groupby_step() 272 newkey = PyObject_CallOneArg(gbo->keyfunc, newvalue); in groupby_step() 332 lz->it, lz->keyfunc, lz->currkey, lz->currvalue, lz->tgtkey); in groupby_reduce() 335 lz->it, lz->keyfunc); in groupby_reduce()
|
/third_party/python/Python/ |
D | bltinmodule.c | 1705 PyObject *v, *it, *item, *val, *maxitem, *maxval, *keyfunc=NULL; in min_max() local 1727 kwlist, &keyfunc, &defaultval); in min_max() 1744 if (keyfunc == Py_None) { in min_max() 1745 keyfunc = NULL; in min_max() 1752 if (keyfunc != NULL) { in min_max() 1753 val = PyObject_CallOneArg(keyfunc, item); in min_max()
|
/third_party/python/Objects/ |
D | listobject.c | 2199 list_sort_impl(PyListObject *self, PyObject *keyfunc, int reverse) in list_sort_impl() argument 2215 if (keyfunc == Py_None) in list_sort_impl() 2216 keyfunc = NULL; in list_sort_impl() 2230 if (keyfunc == NULL) { in list_sort_impl() 2248 keys[i] = PyObject_CallOneArg(keyfunc, saved_ob_item[i]); in list_sort_impl()
|
/third_party/python/Doc/library/ |
D | itertools.rst | 403 data = sorted(data, key=keyfunc) 404 for k, g in groupby(data, keyfunc): 416 self.keyfunc = key 425 self.currkey = self.keyfunc(self.currvalue) 435 self.currkey = self.keyfunc(self.currvalue)
|
D | functions.rst | 1011 such as ``sorted(iterable, key=keyfunc, reverse=True)[0]`` and 1012 ``heapq.nlargest(1, iterable, key=keyfunc)``. 1048 such as ``sorted(iterable, key=keyfunc)[0]`` and ``heapq.nsmallest(1, 1049 iterable, key=keyfunc)``.
|
/third_party/openssl/apps/ |
D | pkcs12.c | 801 X509_ALGOR_get0(&aoid, &aparamtype, &aparam, pbe2->keyfunc); in alg_print()
|
/third_party/openssl/include/openssl/ |
D | x509.h | 294 X509_ALGOR *keyfunc; member
|
/third_party/python/Lib/ |
D | pydoc.py | 313 keyfunc = lambda attr: (field_order.get(attr[0], 0), attr[0]) function 314 attrs.sort(key=keyfunc)
|