/external/python/cryptography/src/cryptography/hazmat/primitives/ciphers/ |
D | aead.py | 90 def generate_key(cls, bit_length): argument 91 if not isinstance(bit_length, int): 94 if bit_length not in (128, 192, 256): 97 return os.urandom(bit_length // 8) 150 def generate_key(cls, bit_length): argument 151 if not isinstance(bit_length, int): 154 if bit_length not in (128, 192, 256): 157 return os.urandom(bit_length // 8)
|
/external/tcpdump/ |
D | print-eigrp.c | 215 u_int tlen,eigrp_tlv_len,eigrp_tlv_type,tlv_tlen, byte_length, bit_length; in eigrp_print() local 349 bit_length = tlv_ptr.eigrp_tlv_ip_int->plen; in eigrp_print() 350 if (bit_length > 32) { in eigrp_print() 351 ND_PRINT((ndo, "\n\t illegal prefix length %u",bit_length)); in eigrp_print() 354 byte_length = (bit_length + 7) / 8; /* variable length encoding */ in eigrp_print() 360 bit_length)); in eigrp_print() 383 bit_length = tlv_ptr.eigrp_tlv_ip_ext->plen; in eigrp_print() 384 if (bit_length > 32) { in eigrp_print() 385 ND_PRINT((ndo, "\n\t illegal prefix length %u",bit_length)); in eigrp_print() 388 byte_length = (bit_length + 7) / 8; /* variable length encoding */ in eigrp_print() [all …]
|
/external/python/cpython3/Lib/idlelib/idle_test/ |
D | test_delegator.py | 20 bl = mydel.bit_length 21 self.assertIs(bl, int.bit_length) 22 self.assertIs(mydel.__dict__['bit_length'], int.bit_length)
|
/external/python/cpython2/Lib/idlelib/idle_test/ |
D | test_delegator.py | 16 bl = mydel.bit_length 17 self.assertIs(bl, int.bit_length) 18 self.assertIs(mydel.__dict__['bit_length'], int.bit_length)
|
/external/python/cpython2/Lib/test/ |
D | test_int.py | 277 k = x.bit_length() 294 self.assertEqual((0).bit_length(), 0) 295 self.assertEqual((1).bit_length(), 1) 296 self.assertEqual((-1).bit_length(), 1) 297 self.assertEqual((2).bit_length(), 2) 298 self.assertEqual((-2).bit_length(), 2) 301 self.assertEqual((a-1).bit_length(), i) 302 self.assertEqual((1-a).bit_length(), i) 303 self.assertEqual((a).bit_length(), i+1) 304 self.assertEqual((-a).bit_length(), i+1) [all …]
|
D | test_strtod.py | 51 d = a.bit_length() - b.bit_length() 60 if q.bit_length() == mant_dig+1: 65 assert q.bit_length() <= mant_dig and e >= min_exp - mant_dig 66 assert q.bit_length() == mant_dig or e == min_exp - mant_dig 69 if e + q.bit_length() > max_exp:
|
D | test_long.py | 912 k = x.bit_length() 929 self.assertEqual((0L).bit_length(), 0) 930 self.assertEqual((1L).bit_length(), 1) 931 self.assertEqual((-1L).bit_length(), 1) 932 self.assertEqual((2L).bit_length(), 2) 933 self.assertEqual((-2L).bit_length(), 2) 936 self.assertEqual((a-1).bit_length(), i) 937 self.assertEqual((1-a).bit_length(), i) 938 self.assertEqual((a).bit_length(), i+1) 939 self.assertEqual((-a).bit_length(), i+1) [all …]
|
D | test_long_future.py | 36 d = a.bit_length() - b.bit_length()
|
/external/python/cpython3/Lib/test/ |
D | test_strtod.py | 50 d = a.bit_length() - b.bit_length() 59 if q.bit_length() == mant_dig+1: 64 assert q.bit_length() <= mant_dig and e >= min_exp - mant_dig 65 assert q.bit_length() == mant_dig or e == min_exp - mant_dig 68 if e + q.bit_length() > max_exp:
|
D | test_long.py | 62 shift = n.bit_length() - PRECISION 97 d = a.bit_length() - b.bit_length() 988 k = x.bit_length() 1005 self.assertEqual((0).bit_length(), 0) 1006 self.assertEqual((1).bit_length(), 1) 1007 self.assertEqual((-1).bit_length(), 1) 1008 self.assertEqual((2).bit_length(), 2) 1009 self.assertEqual((-2).bit_length(), 2) 1012 self.assertEqual((a-1).bit_length(), i) 1013 self.assertEqual((1-a).bit_length(), i) [all …]
|
/external/rust/crates/ring/src/rsa/ |
D | convert_nist_rsa_test_vectors.py | 206 if n.bit_length() // 8 < 2048 // 8: 209 if n.bit_length() > 4096: 216 if (n.bit_length() // 8 < 2048 // 8 and not legacy) or n.bit_length() // 8 < 1024 // 8:
|
/external/cpuinfo/src/x86/ |
D | topology.c | 49 topology->core_bits_length = bit_length(cores_per_processor); in cpuinfo_x86_detect_topology() 58 topology->core_bits_length = bit_length(cores_per_processor); in cpuinfo_x86_detect_topology() 69 const uint32_t log2_max_logical_processors = bit_length(logical_processors); in cpuinfo_x86_detect_topology()
|
/external/python/cryptography/tests/ |
D | test_cryptography_utils.py | 64 assert utils.bit_length(1) == 1 65 assert utils.bit_length(11) == 4
|
/external/python/cryptography/src/cryptography/ |
D | utils.py | 75 length or (integer.bit_length() + 7) // 8 or 1, 'big' 119 def bit_length(x): function 120 return x.bit_length()
|
/external/python/pyasn1/pyasn1/compat/ |
D | integer.py | 102 length = max(value.bit_length(), length) 110 return int(number).bit_length()
|
/external/rust/crates/serde_json/src/lexical/ |
D | math.rs | 405 let bit_length = 32 - n.leading_zeros() as usize; in imul_pow5() localVariable 406 debug_assert!(bit_length != 0 && bit_length <= large_powers.len()); in imul_pow5() 407 if x.len() + large_powers[bit_length - 1].len() < 2 * KARATSUBA_CUTOFF { in imul_pow5() 453 pub fn bit_length(x: &[Limb]) -> usize { in bit_length() function 819 fn bit_length(&self) -> usize { in bit_length() method 820 small::bit_length(self.data()) in bit_length()
|
/external/python/cryptography/docs/hazmat/primitives/ |
D | aead.rst | 102 >>> key = AESGCM.generate_key(bit_length=128) 109 .. classmethod:: generate_key(bit_length) 113 :param bit_length: The bit length of the key to generate. Must be 189 >>> key = AESCCM.generate_key(bit_length=128) 196 .. classmethod:: generate_key(bit_length) 200 :param bit_length: The bit length of the key to generate. Must be
|
/external/cpuinfo/src/cpuinfo/ |
D | utils.h | 6 inline static uint32_t bit_length(uint32_t n) { in bit_length() function
|
/external/python/rsa/rsa/ |
D | transform.py | 61 bytes_required = max(1, math.ceil(number.bit_length() / 8))
|
/external/python/cryptography/src/cryptography/hazmat/primitives/asymmetric/ |
D | dsa.py | 131 if parameters.p.bit_length() not in [1024, 2048, 3072]: 133 if parameters.q.bit_length() not in [160, 224, 256]:
|
/external/cpuinfo/src/x86/cache/ |
D | deterministic.c | 36 const uint32_t apic_bits = bit_length(processors); in cpuinfo_x86_decode_deterministic_cache_parameters() 162 const uint32_t apic_bits = bit_length(cores); in cpuinfo_x86_decode_cache_properties()
|
D | init.c | 77 *log2_package_cores_max = bit_length(package_cores_max); in cpuinfo_x86_detect_cache()
|
/external/python/asn1crypto/asn1crypto/ |
D | util.py | 235 bits_required = abs(value + 1).bit_length() 237 bits_required = value.bit_length() 241 bits_required = value.bit_length()
|
/external/pigweed/pw_tokenizer/py/pw_tokenizer/ |
D | encode.py | 75 if arg.bit_length() > 32:
|
/external/pigweed/pw_tokenizer/py/ |
D | encode_test.py | 77 if int(unsigned).bit_length() > 32:
|