/third_party/openssl/crypto/rsa/ |
D | rsa_meth.c | 16 RSA_METHOD *meth = OPENSSL_zalloc(sizeof(*meth)); in RSA_meth_new() local 18 if (meth != NULL) { in RSA_meth_new() 19 meth->flags = flags; in RSA_meth_new() 21 meth->name = OPENSSL_strdup(name); in RSA_meth_new() 22 if (meth->name != NULL) in RSA_meth_new() 23 return meth; in RSA_meth_new() 25 OPENSSL_free(meth); in RSA_meth_new() 32 void RSA_meth_free(RSA_METHOD *meth) in RSA_meth_free() argument 34 if (meth != NULL) { in RSA_meth_free() 35 OPENSSL_free(meth->name); in RSA_meth_free() [all …]
|
/third_party/openssl/crypto/ec/ |
D | ec_kmeth.c | 42 void EC_KEY_set_default_method(const EC_KEY_METHOD *meth) in EC_KEY_set_default_method() argument 44 if (meth == NULL) in EC_KEY_set_default_method() 47 default_ec_key_meth = meth; in EC_KEY_set_default_method() 52 return key->meth; in EC_KEY_get_method() 55 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth) in EC_KEY_set_method() argument 57 void (*finish)(EC_KEY *key) = key->meth->finish; in EC_KEY_set_method() 67 key->meth = meth; in EC_KEY_set_method() 68 if (meth->init != NULL) in EC_KEY_set_method() 69 return meth->init(key); in EC_KEY_set_method() 90 ret->meth = EC_KEY_get_default_method(); in EC_KEY_new_method() [all …]
|
D | ec_lib.c | 20 EC_GROUP *EC_GROUP_new(const EC_METHOD *meth) in EC_GROUP_new() argument 24 if (meth == NULL) { in EC_GROUP_new() 28 if (meth->group_init == 0) { in EC_GROUP_new() 39 ret->meth = meth; in EC_GROUP_new() 40 if ((ret->meth->flags & EC_FLAGS_CUSTOM_CURVE) == 0) { in EC_GROUP_new() 50 if (!meth->group_init(ret)) in EC_GROUP_new() 99 if (group->meth->group_finish != 0) in EC_GROUP_free() 100 group->meth->group_finish(group); in EC_GROUP_free() 116 if (group->meth->group_clear_finish != 0) in EC_GROUP_clear_free() 117 group->meth->group_clear_finish(group); in EC_GROUP_clear_free() [all …]
|
D | ec_key.c | 34 if (ret->meth->set_group != NULL in EC_KEY_new_by_curve_name() 35 && ret->meth->set_group(ret, ret->group) == 0) { in EC_KEY_new_by_curve_name() 55 if (r->meth != NULL && r->meth->finish != NULL) in EC_KEY_free() 56 r->meth->finish(r); in EC_KEY_free() 62 if (r->group && r->group->meth->keyfinish) in EC_KEY_free() 63 r->group->meth->keyfinish(r); in EC_KEY_free() 80 if (src->meth != dest->meth) { in EC_KEY_copy() 81 if (dest->meth->finish != NULL) in EC_KEY_copy() 82 dest->meth->finish(dest); in EC_KEY_copy() 83 if (dest->group && dest->group->meth->keyfinish) in EC_KEY_copy() [all …]
|
D | ecp_smpl.c | 167 if (group->meth->field_encode) { in ec_GFp_simple_group_set_curve() 168 if (!group->meth->field_encode(group, group->a, tmp_a, ctx)) in ec_GFp_simple_group_set_curve() 176 if (group->meth->field_encode) in ec_GFp_simple_group_set_curve() 177 if (!group->meth->field_encode(group, group->b, group->b, ctx)) in ec_GFp_simple_group_set_curve() 205 if (group->meth->field_decode) { in ec_GFp_simple_group_get_curve() 212 if (!group->meth->field_decode(group, a, group->a, ctx)) in ec_GFp_simple_group_get_curve() 216 if (!group->meth->field_decode(group, b, group->b, ctx)) in ec_GFp_simple_group_get_curve() 267 if (group->meth->field_decode) { in ec_GFp_simple_group_check_discriminant() 268 if (!group->meth->field_decode(group, a, group->a, ctx)) in ec_GFp_simple_group_check_discriminant() 270 if (!group->meth->field_decode(group, b, group->b, ctx)) in ec_GFp_simple_group_check_discriminant() [all …]
|
D | ec_oct.c | 21 if (group->meth->point_set_compressed_coordinates == NULL in EC_POINT_set_compressed_coordinates() 22 && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { in EC_POINT_set_compressed_coordinates() 32 if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { in EC_POINT_set_compressed_coordinates() 33 if (group->meth->field_type == NID_X9_62_prime_field) in EC_POINT_set_compressed_coordinates() 48 return group->meth->point_set_compressed_coordinates(group, point, x, in EC_POINT_set_compressed_coordinates() 74 if (group->meth->point2oct == 0 in EC_POINT_point2oct() 75 && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { in EC_POINT_point2oct() 83 if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { in EC_POINT_point2oct() 84 if (group->meth->field_type == NID_X9_62_prime_field) in EC_POINT_point2oct() 98 return group->meth->point2oct(group, point, form, buf, len, ctx); in EC_POINT_point2oct() [all …]
|
D | ec_cvt.c | 17 const EC_METHOD *meth; in EC_GROUP_new_curve_GFp() local 42 meth = EC_GFp_mont_method(); in EC_GROUP_new_curve_GFp() 45 meth = EC_GFp_nist_method(); in EC_GROUP_new_curve_GFp() 47 meth = EC_GFp_mont_method(); in EC_GROUP_new_curve_GFp() 50 ret = EC_GROUP_new(meth); in EC_GROUP_new_curve_GFp() 66 const EC_METHOD *meth; in EC_GROUP_new_curve_GF2m() local 69 meth = EC_GF2m_simple_method(); in EC_GROUP_new_curve_GF2m() 71 ret = EC_GROUP_new(meth); in EC_GROUP_new_curve_GF2m()
|
D | ec2_smpl.c | 410 if (!group->meth->field_div(group, s, s, t, ctx)) in ec_GF2m_simple_add() 412 if (!group->meth->field_sqr(group, x2, s, ctx)) in ec_GF2m_simple_add() 427 if (!group->meth->field_div(group, s, y1, x1, ctx)) in ec_GF2m_simple_add() 432 if (!group->meth->field_sqr(group, x2, s, ctx)) in ec_GF2m_simple_add() 442 if (!group->meth->field_mul(group, y2, y2, s, ctx)) in ec_GF2m_simple_add() 506 field_mul = group->meth->field_mul; in ec_GF2m_simple_is_on_curve() 507 field_sqr = group->meth->field_sqr; in ec_GF2m_simple_is_on_curve() 654 if (!group->meth->make_affine(group, points[i], ctx)) in ec_GF2m_simple_points_make_affine() 707 if ((group->meth->field_encode != NULL in ec_GF2m_simple_ladder_pre() 708 && !group->meth->field_encode(group, s->Z, s->Z, ctx)) in ec_GF2m_simple_ladder_pre() [all …]
|
/third_party/python/Doc/library/ |
D | asyncio-llapi-index.rst | 47 * - :meth:`loop.run_until_complete` 50 * - :meth:`loop.run_forever` 53 * - :meth:`loop.stop` 56 * - :meth:`loop.close` 59 * - :meth:`loop.is_running()` 62 * - :meth:`loop.is_closed()` 65 * - ``await`` :meth:`loop.shutdown_asyncgens` 74 * - :meth:`loop.set_debug` 77 * - :meth:`loop.get_debug` 86 * - :meth:`loop.call_soon` [all …]
|
D | asyncio-platforms.rst | 19 * :meth:`loop.add_reader` and :meth:`loop.add_writer` 38 * :meth:`loop.create_unix_connection` and 39 :meth:`loop.create_unix_server` are not supported. 42 * :meth:`loop.add_signal_handler` and 43 :meth:`loop.remove_signal_handler` are not supported. 50 * :meth:`loop.add_reader` and :meth:`loop.add_writer` only accept 53 * Pipes are not supported, so the :meth:`loop.connect_read_pipe` 54 and :meth:`loop.connect_write_pipe` methods are not implemented. 57 :meth:`loop.subprocess_exec` and :meth:`loop.subprocess_shell` 62 * The :meth:`loop.add_reader` and :meth:`loop.add_writer` [all …]
|
D | collections.abc.rst | 185 .. [1] These ABCs override :meth:`object.__subclasshook__` to support 192 registered as :class:`Iterable` or that have an :meth:`__iter__` 194 :meth:`__getitem__` method. The only reliable way to determine 204 ABC for classes that provide the :meth:`__contains__` method. 208 ABC for classes that provide the :meth:`__hash__` method. 212 ABC for classes that provide the :meth:`__len__` method. 216 ABC for classes that provide the :meth:`__call__` method. 220 ABC for classes that provide the :meth:`__iter__` method. 223 as :class:`Iterable` or that have an :meth:`__iter__` method, but it does 224 not detect classes that iterate with the :meth:`__getitem__` method. [all …]
|
D | dataclasses.rst | 15 adding generated :term:`special method`\s such as :meth:`__init__` and 16 :meth:`__repr__` to user-defined classes. It was originally described 34 will add, among other things, a :meth:`__init__` that looks like:: 88 - ``init``: If true (the default), a :meth:`__init__` method will be 91 If the class already defines :meth:`__init__`, this parameter is 94 - ``repr``: If true (the default), a :meth:`__repr__` method will be 101 If the class already defines :meth:`__repr__`, this parameter is 104 - ``eq``: If true (the default), an :meth:`__eq__` method will be 109 If the class already defines :meth:`__eq__`, this parameter is 112 - ``order``: If true (the default is ``False``), :meth:`__lt__`, [all …]
|
D | graphlib.rst | 35 to the graph using the :meth:`~TopologicalSorter.add` method. 43 * Call :meth:`~TopologicalSorter.prepare` on the graph. 44 * While :meth:`~TopologicalSorter.is_active` is ``True``, iterate over 45 the nodes returned by :meth:`~TopologicalSorter.get_ready` and 46 process them. Call :meth:`~TopologicalSorter.done` on each node as it 51 :meth:`TopologicalSorter.static_order` can be used directly: 98 Raises :exc:`ValueError` if called after :meth:`~TopologicalSorter.prepare`. 104 :meth:`~TopologicalSorter.get_ready` can still be used to obtain as many 107 added using :meth:`~TopologicalSorter.add`. 114 :meth:`TopologicalSorter.get_ready` or the number of nodes marked [all …]
|
/third_party/openssl/ssl/statem/ |
D | extensions_cust.c | 86 custom_ext_method *meth = exts->meths; in custom_ext_find() local 88 for (i = 0; i < exts->meths_count; i++, meth++) { in custom_ext_find() 89 if (ext_type == meth->ext_type in custom_ext_find() 90 && (role == ENDPOINT_BOTH || role == meth->role in custom_ext_find() 91 || meth->role == ENDPOINT_BOTH)) { in custom_ext_find() 94 return meth; in custom_ext_find() 106 custom_ext_method *meth = exts->meths; in custom_ext_init() local 108 for (i = 0; i < exts->meths_count; i++, meth++) in custom_ext_init() 109 meth->ext_flags = 0; in custom_ext_init() 119 custom_ext_method *meth; in custom_ext_parse() local [all …]
|
/third_party/openssl/crypto/comp/ |
D | comp_lib.c | 18 COMP_CTX *COMP_CTX_new(COMP_METHOD *meth) in COMP_CTX_new() argument 26 ret->meth = meth; in COMP_CTX_new() 27 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in COMP_CTX_new() 36 return ctx->meth; in COMP_CTX_get_method() 39 int COMP_get_type(const COMP_METHOD *meth) in COMP_get_type() argument 41 return meth->type; in COMP_get_type() 44 const char *COMP_get_name(const COMP_METHOD *meth) in COMP_get_name() argument 46 return meth->name; in COMP_get_name() 53 if (ctx->meth->finish != NULL) in COMP_CTX_free() 54 ctx->meth->finish(ctx); in COMP_CTX_free() [all …]
|
/third_party/openssl/crypto/dso/ |
D | dso_lib.c | 15 static DSO *DSO_new_method(DSO_METHOD *meth) in DSO_new_method() argument 39 ret->meth = default_DSO_meth; in DSO_new_method() 49 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in DSO_new_method() 78 if ((dso->meth->dso_unload != NULL) && !dso->meth->dso_unload(dso)) { in DSO_free() 84 if ((dso->meth->finish != NULL) && !dso->meth->finish(dso)) { in DSO_free() 119 DSO *DSO_load(DSO *dso, const char *filename, DSO_METHOD *meth, int flags) in DSO_load() argument 125 ret = DSO_new_method(meth); in DSO_load() 157 if (ret->meth->dso_load == NULL) { in DSO_load() 161 if (!ret->meth->dso_load(ret)) { in DSO_load() 181 if (dso->meth->dso_bind_func == NULL) { in DSO_bind_func() [all …]
|
/third_party/python/Lib/idlelib/idle_test/ |
D | test_calltip.py | 182 for meth in (TC.t1, TC.t2, TC.t3, TC.t4, TC.t5, TC.t6, TC.__call__): 183 with self.subTest(meth=meth): 184 self.assertEqual(get_spec(meth), meth.tip + doc) 191 for meth, mtip in ((tc.t1, "()"), (tc.t4, "(*args)"), 194 with self.subTest(meth=meth, mtip=mtip): 195 self.assertEqual(get_spec(meth), mtip + doc) 202 for meth, mtip in ((C.m1, '(*args)'), (c.m1, "(*args)"),): 203 with self.subTest(meth=meth, mtip=mtip): 204 self.assertEqual(get_spec(meth), mtip) 223 for meth, mtip in ((TC.nd, "(self)"), (tc.nd, "()")): [all …]
|
/third_party/openssl/crypto/rand/ |
D | rand_lib.c | 342 const RAND_METHOD *meth = default_RAND_meth; in rand_cleanup_int() local 347 if (meth != NULL && meth->cleanup != NULL) in rand_cleanup_int() 348 meth->cleanup(); in rand_cleanup_int() 385 const RAND_METHOD *meth = RAND_get_rand_method(); in RAND_poll() local 387 if (meth == NULL) in RAND_poll() 390 if (meth == RAND_OpenSSL()) { in RAND_poll() 414 if (meth->add == NULL in RAND_poll() 415 || meth->add(rand_pool_buffer(pool), in RAND_poll() 829 int RAND_set_rand_method(const RAND_METHOD *meth) in RAND_set_rand_method() argument 839 default_RAND_meth = meth; in RAND_set_rand_method() [all …]
|
/third_party/openssl/crypto/ |
D | ex_data.c | 30 STACK_OF(EX_CALLBACK) *meth; 100 sk_EX_CALLBACK_pop_free(ip->meth, cleanup_cb); in crypto_cleanup_all_ex_data_int() 101 ip->meth = NULL; in crypto_cleanup_all_ex_data_int() 138 if (idx < 0 || idx >= sk_EX_CALLBACK_num(ip->meth)) in CRYPTO_free_ex_index() 140 a = sk_EX_CALLBACK_value(ip->meth, idx); in CRYPTO_free_ex_index() 166 if (ip->meth == NULL) { in CRYPTO_get_ex_new_index() 167 ip->meth = sk_EX_CALLBACK_new_null(); in CRYPTO_get_ex_new_index() 170 if (ip->meth == NULL in CRYPTO_get_ex_new_index() 171 || !sk_EX_CALLBACK_push(ip->meth, NULL)) { in CRYPTO_get_ex_new_index() 188 if (!sk_EX_CALLBACK_push(ip->meth, NULL)) { in CRYPTO_get_ex_new_index() [all …]
|
/third_party/openssl/crypto/dh/ |
D | dh_lib.c | 17 int DH_set_method(DH *dh, const DH_METHOD *meth) in DH_set_method() argument 24 mtmp = dh->meth; in DH_set_method() 31 dh->meth = meth; in DH_set_method() 32 if (meth->init) in DH_set_method() 33 meth->init(dh); in DH_set_method() 59 ret->meth = DH_get_default_method(); in DH_new_method() 61 ret->flags = ret->meth->flags; /* early default init */ in DH_new_method() 71 ret->meth = ENGINE_get_DH(ret->engine); in DH_new_method() 72 if (ret->meth == NULL) { in DH_new_method() 79 ret->flags = ret->meth->flags; in DH_new_method() [all …]
|
/third_party/libwebsockets/lib/core-net/client/ |
D | connect2.c | 140 const char *meth = NULL; local 175 meth = lws_wsi_client_stash_item(wsi, CIS_METHOD, 192 if (meth && strcmp(meth, "RAW") && strcmp(meth, "GET") && 193 strcmp(meth, "POST") && strcmp(meth, "PUT") && 194 strcmp(meth, "UDP") && strcmp(meth, "MQTT")) 247 if (meth && (!strcmp(meth, "RAW") || !strcmp(meth, "GET") || 248 !strcmp(meth, "POST") || !strcmp(meth, "PUT") || 249 !strcmp(meth, "MQTT")) &&
|
/third_party/openssl/crypto/dsa/ |
D | dsa_lib.c | 24 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth) in DSA_set_method() argument 31 mtmp = dsa->meth; in DSA_set_method() 38 dsa->meth = meth; in DSA_set_method() 39 if (meth->init) in DSA_set_method() 40 meth->init(dsa); in DSA_set_method() 46 return d->meth; in DSA_get_method() 66 ret->meth = DSA_get_default_method(); in DSA_new_method() 68 ret->flags = ret->meth->flags & ~DSA_FLAG_NON_FIPS_ALLOW; /* early default init */ in DSA_new_method() 78 ret->meth = ENGINE_get_DSA(ret->engine); in DSA_new_method() 79 if (ret->meth == NULL) { in DSA_new_method() [all …]
|
/third_party/openssl/crypto/conf/ |
D | conf_lib.c | 39 int CONF_set_default_method(CONF_METHOD *meth) in CONF_set_default_method() argument 41 default_CONF_method = meth; in CONF_set_default_method() 177 CONF *NCONF_new(CONF_METHOD *meth) in NCONF_new() argument 181 if (meth == NULL) in NCONF_new() 182 meth = NCONF_default(); in NCONF_new() 184 ret = meth->create(meth); in NCONF_new() 197 conf->meth->destroy(conf); in NCONF_free() 204 conf->meth->destroy_data(conf); in NCONF_free_data() 214 return conf->meth->load(conf, file, eline); in NCONF_load() 239 return conf->meth->load_bio(conf, bp, eline); in NCONF_load_bio() [all …]
|
/third_party/python/Include/ |
D | classobject.h | 31 #define PyMethod_GET_FUNCTION(meth) \ argument 32 (((PyMethodObject *)meth) -> im_func) 33 #define PyMethod_GET_SELF(meth) \ argument 34 (((PyMethodObject *)meth) -> im_self) 50 #define PyInstanceMethod_GET_FUNCTION(meth) \ argument 51 (((PyInstanceMethodObject *)meth) -> func)
|
/third_party/openssl/test/ |
D | ec_internal_test.c | 25 if (group->meth->field_inv == NULL || group->meth->field_mul == NULL) in group_field_tests() 33 || !TEST_true(group->meth->field_inv(group, b, BN_value_one(), ctx)) in group_field_tests() 38 || !TEST_true(group->meth->field_inv(group, b, a, ctx)) in group_field_tests() 39 || (group->meth->field_encode && in group_field_tests() 40 !TEST_true(group->meth->field_encode(group, a, a, ctx))) in group_field_tests() 41 || (group->meth->field_encode && in group_field_tests() 42 !TEST_true(group->meth->field_encode(group, b, b, ctx))) in group_field_tests() 43 || !TEST_true(group->meth->field_mul(group, c, a, b, ctx)) in group_field_tests() 44 || (group->meth->field_decode && in group_field_tests() 45 !TEST_true(group->meth->field_decode(group, c, c, ctx))) in group_field_tests() [all …]
|