Home
last modified time | relevance | path

Searched refs:hash_info (Results 1 – 25 of 29) sorted by relevance

12

/third_party/python/Modules/_decimal/tests/
Dbignum.py12 _PyHASH_MODULUS = sys.hash_info.modulus
14 _PyHASH_INF = sys.hash_info.inf
15 _PyHASH_NAN = sys.hash_info.nan
/third_party/python/Lib/test/
Dtest_sys.py499 self.assertEqual(len(sys.hash_info), 9)
500 self.assertLess(sys.hash_info.modulus, 2**sys.hash_info.width)
506 pow(x, sys.hash_info.modulus-1, sys.hash_info.modulus),
509 sys.hash_info.modulus)
511 self.assertIsInstance(sys.hash_info.inf, int)
512 self.assertIsInstance(sys.hash_info.nan, int)
513 self.assertIsInstance(sys.hash_info.imag, int)
515 if sys.hash_info.algorithm in {"fnv", "siphash24"}:
516 self.assertIn(sys.hash_info.hash_bits, {32, 64})
517 self.assertIn(sys.hash_info.seed_bits, {32, 64, 128})
[all …]
Dtest_hash.py45 ok = sys.hash_info.algorithm in {"fnv", "siphash24"}
242 if length < sys.hash_info.cutoff:
245 algorithm = sys.hash_info.algorithm
Dtest_numeric_tower.py14 _PyHASH_MODULUS = sys.hash_info.modulus
15 _PyHASH_INF = sys.hash_info.inf
Dtest_fractions.py654 hmod = sys.hash_info.modulus
655 hinf = sys.hash_info.inf
Dtest_float.py572 self.assertEqual(hash(float('inf')), sys.hash_info.inf)
573 self.assertEqual(hash(float('-inf')), -sys.hash_info.inf)
Dtest_pydoc.py1213 self.assertEqual(self._get_summary_line(type(sys.hash_info).width),
/third_party/python/Python/
Dsysmodule.c1396 PyObject *hash_info; in get_hash_info() local
1399 hash_info = PyStructSequence_New(&Hash_InfoType); in get_hash_info()
1400 if (hash_info == NULL) in get_hash_info()
1403 PyStructSequence_SET_ITEM(hash_info, field++, in get_hash_info()
1405 PyStructSequence_SET_ITEM(hash_info, field++, in get_hash_info()
1407 PyStructSequence_SET_ITEM(hash_info, field++, in get_hash_info()
1409 PyStructSequence_SET_ITEM(hash_info, field++, in get_hash_info()
1411 PyStructSequence_SET_ITEM(hash_info, field++, in get_hash_info()
1413 PyStructSequence_SET_ITEM(hash_info, field++, in get_hash_info()
1415 PyStructSequence_SET_ITEM(hash_info, field++, in get_hash_info()
[all …]
/third_party/python/Lib/
Dfractions.py18 _PyHASH_MODULUS = sys.hash_info.modulus
21 _PyHASH_INF = sys.hash_info.inf
D_pydecimal.py6403 _PyHASH_MODULUS = sys.hash_info.modulus
6405 _PyHASH_INF = sys.hash_info.inf
6406 _PyHASH_NAN = sys.hash_info.nan
/third_party/mbedtls/tests/suites/
Dtest_suite_constant_time_hmac.function7 #include <hash_info.h>
Dtest_suite_ecdsa.function3 #include "hash_info.h"
Dtest_suite_x509write.function11 #include "hash_info.h"
Dtest_suite_pk.function10 #include "hash_info.h"
/third_party/mbedtls/
Dmbedtls.gni70 "$MBEDTLSDIR/library/hash_info.c",
/third_party/mbedtls/library/
DMakefile110 hash_info.o \
DCMakeLists.txt45 hash_info.c
/third_party/mbedtls/docs/architecture/psa-migration/
Dmd-cipher-dispatch.md401 …md_error_from_psa` to convert its status code. This function is currently defined in `hash_info.c`.
419 Instead of calling `hash_info.h` functions to obtain metadata, get it from `md.h`.
464 #### Get rid of the hash_info module
466 The hash_info module is redundant with MD light. Move `mbedtls_md_error_from_psa` to `md.c`, define…
Dstrategy.md321 6065 in `library/hash_info.[ch]`.
/third_party/python/Doc/library/
Dstdtypes.rst681 :data:`sys.hash_info`.
697 ``hash(x)`` to be the constant value ``sys.hash_info.inf``.
703 - The particular values ``sys.hash_info.inf`` and ``-sys.hash_info.inf``
709 sys.hash_info.imag * hash(z.imag)``, reduced modulo
710 ``2**sys.hash_info.width`` so that it lies in
711 ``range(-2**(sys.hash_info.width - 1), 2**(sys.hash_info.width -
729 P = sys.hash_info.modulus
735 hash_value = sys.hash_info.inf
752 return sys.hash_info.inf if x > 0 else -sys.hash_info.inf
759 hash_value = hash_float(z.real) + sys.hash_info.imag * hash_float(z.imag)
[all …]
/third_party/openssl/engines/
De_devcrypto.c927 OPENSSL_strndup(siop.hash_info.cra_driver_name, in prepare_digest_methods()
/third_party/node/deps/openssl/openssl/engines/
De_devcrypto.c927 OPENSSL_strndup(siop.hash_info.cra_driver_name, in prepare_digest_methods()
/third_party/python/Lib/test/support/
D__init__.py1852 NHASHBITS = sys.hash_info.width # number of bits in hash() result
/third_party/python/Doc/tutorial/
Dmodules.rst323 'gettrace', 'hash_info', 'hexversion', 'implementation', 'int_info',
/third_party/python/Doc/whatsnew/
D3.2.rst1299 :attr:`sys.hash_info`, which describes the bit width of the hash value, the
1303 >>> sys.hash_info # doctest: +SKIP
1304 sys.hash_info(width=64, modulus=2305843009213693951, inf=314159, nan=0, imag=1000003)

12