Home
last modified time | relevance | path

Searched +refs:meth +refs:d (Results 1 – 25 of 168) sorted by relevance

1234567

/third_party/openssl/crypto/dsa/
Ddsa_lib.c30 int DSA_set_ex_data(DSA *d, int idx, void *arg) in DSA_set_ex_data() argument
32 return CRYPTO_set_ex_data(&d->ex_data, idx, arg); in DSA_set_ex_data()
35 void *DSA_get_ex_data(const DSA *d, int idx) in DSA_get_ex_data() argument
37 return CRYPTO_get_ex_data(&d->ex_data, idx); in DSA_get_ex_data()
86 void DSA_clear_flags(DSA *d, int flags) in DSA_clear_flags() argument
88 d->flags &= ~flags; in DSA_clear_flags()
91 int DSA_test_flags(const DSA *d, int flags) in DSA_test_flags() argument
93 return d->flags & flags; in DSA_test_flags()
96 void DSA_set_flags(DSA *d, int flags) in DSA_set_flags() argument
98 d->flags |= flags; in DSA_set_flags()
[all …]
/third_party/openssl/crypto/dh/
Ddh_lib.c32 int DH_set_method(DH *dh, const DH_METHOD *meth) in DH_set_method() argument
39 mtmp = dh->meth; in DH_set_method()
46 dh->meth = meth; in DH_set_method()
47 if (meth->init) in DH_set_method()
48 meth->init(dh); in DH_set_method()
54 return dh->meth; in ossl_dh_get_method()
92 ret->meth = DH_get_default_method(); in dh_new_intern()
94 ret->flags = ret->meth->flags; /* early default init */ in dh_new_intern()
104 ret->meth = ENGINE_get_DH(ret->engine); in dh_new_intern()
105 if (ret->meth == NULL) { in dh_new_intern()
[all …]
/third_party/openssl/ohos_lite/include/openssl/
Drsa.h204 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
210 const BIGNUM **n, const BIGNUM **e, const BIGNUM **d);
219 const BIGNUM *RSA_get0_n(const RSA *d);
220 const BIGNUM *RSA_get0_e(const RSA *d);
221 const BIGNUM *RSA_get0_d(const RSA *d);
222 const BIGNUM *RSA_get0_p(const RSA *d);
223 const BIGNUM *RSA_get0_q(const RSA *d);
269 void RSA_set_default_method(const RSA_METHOD *meth);
273 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth);
423 void RSA_meth_free(RSA_METHOD *meth);
[all …]
/third_party/openssl/include/openssl/
Drsa.h207 OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
219 const BIGNUM **d);
232 OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_n(const RSA *d);
233 OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_e(const RSA *d);
234 OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_d(const RSA *d);
235 OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_p(const RSA *d);
236 OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_q(const RSA *d);
298 OSSL_DEPRECATEDIN_3_0 void RSA_set_default_method(const RSA_METHOD *meth);
302 OSSL_DEPRECATEDIN_3_0 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth);
474 OSSL_DEPRECATEDIN_3_0 void RSA_meth_free(RSA_METHOD *meth);
[all …]
/third_party/openssl/crypto/rsa/
Drsa_lib.c41 return rsa->meth; in RSA_get_method()
44 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth) in RSA_set_method() argument
51 mtmp = rsa->meth; in RSA_set_method()
58 rsa->meth = meth; in RSA_set_method()
59 if (meth->init) in RSA_set_method()
60 meth->init(rsa); in RSA_set_method()
93 ret->meth = RSA_get_default_method(); in rsa_new_intern()
95 ret->flags = ret->meth->flags & ~RSA_FLAG_NON_FIPS_ALLOW; in rsa_new_intern()
106 ret->meth = ENGINE_get_RSA(ret->engine); in rsa_new_intern()
107 if (ret->meth == NULL) { in rsa_new_intern()
[all …]
Drsa_ossl.c54 void RSA_set_default_method(const RSA_METHOD *meth) in RSA_set_default_method() argument
56 default_RSA_meth = meth; in RSA_set_default_method()
146 if (!rsa->meth->bn_mod_exp(ret, f, rsa->e, rsa->n, ctx, in rsa_ossl_public_encrypt()
322 if (!rsa->meth->rsa_mod_exp(ret, f, rsa, ctx)) in rsa_ossl_private_encrypt()
325 BIGNUM *d = BN_new(); in rsa_ossl_private_encrypt() local
326 if (d == NULL) { in rsa_ossl_private_encrypt()
330 if (rsa->d == NULL) { in rsa_ossl_private_encrypt()
332 BN_free(d); in rsa_ossl_private_encrypt()
335 BN_with_flags(d, rsa->d, BN_FLG_CONSTTIME); in rsa_ossl_private_encrypt()
337 if (!rsa->meth->bn_mod_exp(ret, f, d, rsa->n, ctx, in rsa_ossl_private_encrypt()
[all …]
Drsa_crpt.c36 return rsa->meth->rsa_pub_enc(flen, from, to, rsa, padding); in RSA_public_encrypt()
42 return rsa->meth->rsa_priv_enc(flen, from, to, rsa, padding); in RSA_private_encrypt()
48 return rsa->meth->rsa_priv_dec(flen, from, to, rsa, padding); in RSA_private_decrypt()
54 return rsa->meth->rsa_pub_dec(flen, from, to, rsa, padding); in RSA_public_decrypt()
59 return r == NULL ? 0 : r->meth->flags; in RSA_flags()
88 static BIGNUM *rsa_get_public_exp(const BIGNUM *d, const BIGNUM *p, in rsa_get_public_exp() argument
93 if (d == NULL || p == NULL || q == NULL) in rsa_get_public_exp()
110 ret = BN_mod_inverse(NULL, d, r0, ctx); in rsa_get_public_exp()
137 e = rsa_get_public_exp(rsa->d, rsa->p, rsa->q, ctx); in RSA_setup_blinding()
155 ret = BN_BLINDING_create_param(NULL, e, n, ctx, rsa->meth->bn_mod_exp, in RSA_setup_blinding()
Drsa_gen.c43 if (rsa->meth->rsa_keygen != NULL) in RSA_generate_key_ex()
44 return rsa->meth->rsa_keygen(rsa, bits, e_value, cb); in RSA_generate_key_ex()
55 if (rsa->meth->rsa_multi_prime_keygen != NULL) { in RSA_generate_multi_prime_key()
56 return rsa->meth->rsa_multi_prime_keygen(rsa, bits, primes, in RSA_generate_multi_prime_key()
58 } else if (rsa->meth->rsa_keygen != NULL) { in RSA_generate_multi_prime_key()
66 return rsa->meth->rsa_keygen(rsa, bits, e_value, cb); in RSA_generate_multi_prime_key()
128 if (!rsa->d && ((rsa->d = BN_secure_new()) == NULL)) in rsa_multiprime_keygen()
130 BN_set_flags(rsa->d, BN_FLG_CONSTTIME); in rsa_multiprime_keygen()
335 if (!BN_sub(pinfo->d, pinfo->r, BN_value_one())) in rsa_multiprime_keygen()
337 if (!BN_mul(r0, r0, pinfo->d, ctx)) in rsa_multiprime_keygen()
[all …]
/third_party/openssl/crypto/rand/
Drand_lib.c81 const RAND_METHOD *meth = default_RAND_meth; in ossl_rand_cleanup_int() local
86 if (meth != NULL && meth->cleanup != NULL) in ossl_rand_cleanup_int()
87 meth->cleanup(); in ossl_rand_cleanup_int()
123 const RAND_METHOD *meth = RAND_get_rand_method(); in RAND_poll() local
124 int ret = meth == RAND_OpenSSL(); in RAND_poll()
126 if (meth == NULL) in RAND_poll()
141 if (meth->add == NULL in RAND_poll()
142 || meth->add(ossl_rand_pool_buffer(pool), in RAND_poll()
161 static int rand_set_rand_method_internal(const RAND_METHOD *meth, in rand_set_rand_method_internal() argument
173 default_RAND_meth = meth; in rand_set_rand_method_internal()
[all …]
/third_party/openssl/crypto/conf/
Dconf_lib.c40 int CONF_set_default_method(CONF_METHOD *meth) in CONF_set_default_method() argument
42 default_CONF_method = meth; in CONF_set_default_method()
182 CONF *NCONF_new_ex(OSSL_LIB_CTX *libctx, CONF_METHOD *meth) in NCONF_new_ex() argument
186 if (meth == NULL) in NCONF_new_ex()
187 meth = NCONF_default(); in NCONF_new_ex()
189 ret = meth->create(meth); in NCONF_new_ex()
199 CONF *NCONF_new(CONF_METHOD *meth) in NCONF_new() argument
201 return NCONF_new_ex(NULL, meth); in NCONF_new()
208 conf->meth->destroy(conf); in NCONF_free()
215 conf->meth->destroy_data(conf); in NCONF_free_data()
[all …]
/third_party/python/Doc/library/
Ddatetime.rst168 A :class:`.datetime` object *d* is aware if both of the following hold:
170 1. ``d.tzinfo`` is not ``None``
171 2. ``d.tzinfo.utcoffset(d)`` does not return ``None``
173 Otherwise, *d* is naive.
245 >>> d = timedelta(microseconds=-1)
246 >>> (d.days, d.seconds, d.microseconds)
502 timestamp, leap seconds are ignored by :meth:`fromtimestamp`.
517 date.max.toordinal()``. For any date *d*,
518 ``date.fromordinal(d.toordinal()) == d``.
530 This is the inverse of :meth:`date.isoformat`. It only supports the format
[all …]
Dshelve.rst36 cached in memory, and written back on :meth:`~Shelf.sync` and
37 :meth:`~Shelf.close`; this can make it handier to mutate mutable entries in
51 :meth:`~Shelf.close` explicitly when you don't need it any more, or
76 is closed with :meth:`close`.
149 A subclass of :class:`Shelf` which exposes :meth:`first`, :meth:`!next`,
150 :meth:`previous`, :meth:`last` and :meth:`set_location` which are available
180 d = shelve.open(filename) # open -- file may get suffix added by low-level
183 d[key] = data # store data at key (overwrites old data if
185 data = d[key] # retrieve a COPY of data at key (raise KeyError
187 del d[key] # delete data stored at key (raises KeyError
[all …]
Dcollections.rst44 a new dictionary and running multiple :meth:`~dict.update` calls.
80 specified, an empty dict is used, so that a call to ``d.new_child()``
81 is equivalent to: ``ChainMap({}, *d.maps)``. If any keyword arguments
99 :func:`super` function. A reference to ``d.parents`` is equivalent to:
100 ``ChainMap(*d.maps[1:])``.
110 This gives the same ordering as a series of :meth:`dict.update` calls
133 :meth:`~collections.ChainMap.new_child` method and the
177 d = c.new_child() # Create nested child context
178 e = c.new_child() # Child of c, independent from d
183 d['x'] = 1 # Set value in current context
[all …]
Dpathlib.rst70 >>> q = p / 'init.d' / 'reboot'
72 PosixPath('/etc/init.d/reboot')
74 PosixPath('/etc/rc.d/init.d/halt')
126 >>> PureWindowsPath('c:/Windows', 'd:bar')
127 PureWindowsPath('d:bar')
193 >>> PureWindowsPath('C:') < PureWindowsPath('d:')
214 >>> p / 'init.d' / 'apache2'
215 PurePosixPath('/etc/init.d/apache2')
346 >>> p = PurePosixPath('/a/b/c/d')
367 recommended to first call :meth:`Path.resolve` so as to resolve
[all …]
Dcmd.rst69 has a method :meth:`do_foo`. As a special case, a line beginning with the
70 character ``'?'`` is dispatched to the method :meth:`do_help`. As another
72 method :meth:`do_shell` (if such a method is defined).
74 This method will return when the :meth:`postcmd` method returns a true value.
75 The *stop* argument to :meth:`postcmd` is the return value from the command's
76 corresponding :meth:`do_\*` method.
79 completing of commands args is done by calling :meth:`complete_foo` with
86 All subclasses of :class:`Cmd` inherit a predefined :meth:`do_help`. This
88 :meth:`help_bar`, and if that is not present, prints the docstring of
89 :meth:`do_bar`, if available. With no argument, :meth:`do_help` lists all
[all …]
Dstring.rst81 substitutions and value formatting via the :meth:`~str.format` method described in
84 implementation as the built-in :meth:`~str.format` method.
95 It is just a wrapper that calls :meth:`vformat`.
107 syntax. :meth:`vformat` does the work of breaking up the format string
118 by :meth:`vformat` to break the string into either literal text, or
130 Given *field_name* as returned by :meth:`parse` (see above), convert it to
134 :meth:`vformat`. The return value *used_key* has the same meaning as the
135 *key* parameter to :meth:`get_value`.
145 :meth:`vformat`, and the *kwargs* parameter is set to the dictionary of
153 :meth:`get_value` to be called with a *key* argument of 0. The ``name``
[all …]
Ddifflib.rst145 The arguments for this method are the same as those for the :meth:`make_file`
263 Given a *sequence* produced by :meth:`Differ.compare` or :func:`ndiff`, extract
396 with :meth:`set_seqs` or :meth:`set_seq2`.
409 sequences, use :meth:`set_seq2` to set the commonly used sequence once and
410 call :meth:`set_seq1` repeatedly, once for each of the other sequences.
429 If *isjunk* was omitted or ``None``, :meth:`find_longest_match` returns
533 Starting with the groups returned by :meth:`get_opcodes`, this method
537 The groups are returned in the same format as :meth:`get_opcodes`.
549 This is expensive to compute if :meth:`get_matching_blocks` or
550 :meth:`get_opcodes` hasn't already been called, in which case you may want
[all …]
Dstdtypes.rst47 :meth:`__bool__` method that returns ``False`` or a :meth:`__len__` method that
181 class defines the :meth:`~object.__eq__` method.
185 methods :meth:`~object.__lt__`, :meth:`~object.__le__`, :meth:`~object.__gt__`, and
186 :meth:`~object.__ge__` (in general, :meth:`~object.__lt__` and
187 :meth:`~object.__eq__` are sufficient, if you want the conventional meanings of the
200 implement the :meth:`__contains__` method.
628 Note that :meth:`float.hex` is an instance method, while
629 :meth:`float.fromhex` is a class method.
642 :meth:`float.hex` is usable as a hexadecimal floating-point literal in
645 :meth:`float.fromhex`.
[all …]
/third_party/python/Lib/test/
Dtest_descr.py74 def unop_test(self, a, res, expr="len(a)", meth="__len__"): argument
75 d = {'a': a}
76 self.assertEqual(eval(expr, d), res)
78 m = getattr(t, meth)
81 while meth not in t.__dict__:
85 self.assertEqual(getattr(m, 'im_func', m), t.__dict__[meth])
87 bm = getattr(a, meth)
90 def binop_test(self, a, b, res, expr="a+b", meth="__add__"): argument
91 d = {'a': a, 'b': b}
93 self.assertEqual(eval(expr, d), res)
[all …]
/third_party/ffmpeg/libavcodec/
Dvmdvideo.c69 unsigned char *d; in lz_unpack() local
82 d = dest; in lz_unpack()
83 d_end = d + dest_len; in lz_unpack()
100 if (d_end - d < 8 || bytestream2_get_bytes_left(&gb) < 8) in lz_unpack()
103 queue[qpos++] = *d++ = bytestream2_get_byteu(&gb); in lz_unpack()
112 if (d_end - d < 1 || bytestream2_get_bytes_left(&gb) < 1) in lz_unpack()
114 queue[qpos++] = *d++ = bytestream2_get_byteu(&gb); in lz_unpack()
124 if (d_end - d < chainlen) in lz_unpack()
127 *d = queue[chainofs++ & QUEUE_MASK]; in lz_unpack()
128 queue[qpos++] = *d++; in lz_unpack()
[all …]
/third_party/python/Lib/unittest/test/testmock/
Dtestmock.py32 def meth(self, a, b, c, d=None): pass argument
35 def cmeth(cls, a, b, c, d=None): pass argument
38 def smeth(a, b, c, d=None): pass argument
392 def f(a, b, c, d=None): pass argument
415 mock = Mock(spec=Something().meth)
468 def f(a, b, c, d=None): pass argument
956 mock.c = mock.d = None
1046 for meth in asserters:
1052 meth, 1, '2', 3, bar='foo'
1056 for meth in asserters:
[all …]
/third_party/python/Doc/whatsnew/
D2.4.rst49 set(['a', 'r', 'b', 'c', 'd'])
55 set(['r', 'd', 'b'])
57 set(['a', 'c', 'r', 'd', 'b', 'm', 'z', 'l'])
61 set(['r', 'd', 'b', 'm', 'z', 'l'])
66 set(['a', 'c', 'b', 'd', 'r', 'w', 'y', 'x', 'z'])
69 set(['a', 'c', 'b', 'd', 'r', 'w', 'y', 'z'])
137 with a large number of link objects you'd have to write the second form to avoid
200 If a key is missing from the dictionary, the :meth:`substitute` method will
201 raise a :exc:`KeyError`. There's also a :meth:`safe_substitute` method that
228 def meth (cls):
[all …]
/third_party/python/Doc/tutorial/
Dinputoutput.rst18 the :func:`print` function. (A third way is using the :meth:`write` method
37 * The :meth:`str.format` method of strings requires more manual
120 ... print(f'{name:10} ==> {phone:10d}')
144 Basic usage of the :meth:`str.format` method looks like this::
150 the objects passed into the :meth:`str.format` method. A number in the
152 :meth:`str.format` method. ::
159 If keyword arguments are used in the :meth:`str.format` method, their values
178 >>> print('Jack: {0[Jack]:d}; Sjoerd: {0[Sjoerd]:d}; '
179 ... 'Dcab: {0[Dcab]:d}'.format(table))
186 >>> print('Jack: {Jack:d}; Sjoerd: {Sjoerd:d}; Dcab: {Dcab:d}'.format(**table))
[all …]
/third_party/python/Lib/
Dweakref.py47 def __new__(cls, meth, callback=None): argument
49 obj = meth.__self__
50 func = meth.__func__
53 .format(type(meth))) from None
64 self._meth_type = type(meth)
124 d = self.data
132 _atomic_removal(d, key)
293 d = self.data
298 d[key] = KeyedRef(o, self._remove, key)
300 d[key] = KeyedRef(o, self._remove, key)
[all …]
/third_party/python/Doc/howto/
Ddescriptor.rst45 The :class:`Ten` class is a descriptor whose :meth:`__get__` method always
123 reveals the purpose of the parameters to :meth:`__get__`. The *self*
126 lets the :meth:`__get__` method learn the target directory. The *objtype*
136 descriptor's :meth:`__get__` and :meth:`__set__` methods are triggered when
220 callback to :meth:`__set_name__` in *LoggedAccess* so that the field names can
257 :meth:`__set_name__` so that the field names would be recorded. Here
297 A :term:`descriptor` is what we call any object that defines :meth:`__get__`,
298 :meth:`__set__`, or :meth:`__delete__`.
300 Optionally, descriptors can have a :meth:`__set_name__` method. This is only
364 :meth:`validate` method to test various restrictions as needed.
[all …]

1234567