Home
last modified time | relevance | path

Searched refs:keyfunc (Results 1 – 16 of 16) sorted by relevance

/third_party/openssl/crypto/asn1/
Dp5_pbev2.c21 ASN1_SIMPLE(PBE2PARAM, keyfunc, X509_ALGOR),
110 X509_ALGOR_free(pbe2->keyfunc);
112 pbe2->keyfunc = PKCS5_pbkdf2_set_ex(iter, salt, saltlen, prf_nid, keylen,
115 if (pbe2->keyfunc == NULL)
168 X509_ALGOR *keyfunc = NULL; in PKCS5_pbkdf2_set_ex() local
219 keyfunc = X509_ALGOR_new(); in PKCS5_pbkdf2_set_ex()
220 if (keyfunc == NULL) in PKCS5_pbkdf2_set_ex()
223 keyfunc->algorithm = OBJ_nid2obj(NID_id_pbkdf2); in PKCS5_pbkdf2_set_ex()
228 &keyfunc->parameter)) in PKCS5_pbkdf2_set_ex()
232 return keyfunc; in PKCS5_pbkdf2_set_ex()
[all …]
Dp5_scrypt.c110 X509_ALGOR_free(pbe2->keyfunc); in PKCS5_pbe2_set_scrypt()
112 pbe2->keyfunc = pkcs5_scrypt_set(salt, saltlen, keylen, N, r, p); in PKCS5_pbe2_set_scrypt()
114 if (pbe2->keyfunc == NULL) in PKCS5_pbe2_set_scrypt()
151 X509_ALGOR *keyfunc = NULL; in pkcs5_scrypt_set() local
188 keyfunc = X509_ALGOR_new(); in pkcs5_scrypt_set()
189 if (keyfunc == NULL) in pkcs5_scrypt_set()
192 keyfunc->algorithm = OBJ_nid2obj(NID_id_scrypt); in pkcs5_scrypt_set()
197 &keyfunc->parameter) == NULL) in pkcs5_scrypt_set()
201 return keyfunc; in pkcs5_scrypt_set()
207 X509_ALGOR_free(keyfunc); in pkcs5_scrypt_set()
/third_party/python/Lib/test/
Dtest_bisect.py210 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 …]
Dtest_itertools.py825 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/
Dlistobject.c.h163 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/
Ditertoolsmodule.c.h50 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/
Dp5_crpt2.c132 if (!EVP_PBE_find_ex(EVP_PBE_TYPE_KDF, OBJ_obj2nid(pbe2->keyfunc->algorithm), in PKCS5_v2_PBE_keyivgen_ex()
166 rv = kdf(ctx, pass, passlen, pbe2->keyfunc->parameter, NULL, NULL, en_de, libctx, propq); in PKCS5_v2_PBE_keyivgen_ex()
/third_party/python/Modules/
Ditertoolsmodule.c191 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/
Dbltinmodule.c1705 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/
Dlistobject.c2199 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/
Ditertools.rst403 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)
Dfunctions.rst1019 such as ``sorted(iterable, key=keyfunc, reverse=True)[0]`` and
1020 ``heapq.nlargest(1, iterable, key=keyfunc)``.
1056 such as ``sorted(iterable, key=keyfunc)[0]`` and ``heapq.nsmallest(1,
1057 iterable, key=keyfunc)``.
/third_party/openssl/apps/
Dpkcs12.c1052 X509_ALGOR_get0(&aoid, &aparamtype, &aparam, pbe2->keyfunc); in alg_print()
/third_party/openssl/ohos_lite/include/openssl/
Dx509.h294 X509_ALGOR *keyfunc; member
/third_party/python/Lib/
Dpydoc.py313 keyfunc = lambda attr: (field_order.get(attr[0], 0), attr[0]) function
314 attrs.sort(key=keyfunc)
/third_party/openssl/include/openssl/
Dx509.h.in259 X509_ALGOR *keyfunc; member