/external/python/asn1crypto/tests/ |
D | test_util.py | 35 self.assertEqual(util.int_to_bytes(0, False, 0), b'') 36 self.assertEqual(util.int_to_bytes(0, False), b'\x00') 37 self.assertEqual(util.int_to_bytes(0, False, 3), b'\x00\x00\x00') 38 self.assertEqual(util.int_to_bytes(0, True, 0), b'') 39 self.assertEqual(util.int_to_bytes(0, True), b'\x00') 40 self.assertEqual(util.int_to_bytes(0, True, 3), b'\x00\x00\x00') 42 self.assertEqual(util.int_to_bytes(128, False), b'\x80') 43 self.assertEqual(util.int_to_bytes(128, False, 3), b'\x00\x00\x80') 44 self.assertEqual(util.int_to_bytes(-128, True), b'\x80') 45 self.assertEqual(util.int_to_bytes(-128, True, 3), b'\xff\xff\x80') [all …]
|
/external/python/cryptography/src/cryptography/hazmat/primitives/kdf/ |
D | kbkdf.py | 94 value_bin = utils.int_to_bytes(1, value) 115 r_bin = utils.int_to_bytes(1, self._rlen) 122 counter = utils.int_to_bytes(i, self._rlen) 139 l_val = utils.int_to_bytes(self._length * 8, self._llen)
|
/external/python/asn1crypto/asn1crypto/ |
D | parser.py | 19 from .util import int_from_bytes, int_to_bytes 281 length_bytes = int_to_bytes(length)
|
D | algos.py | 25 from .util import int_from_bytes, int_to_bytes 584 r_bytes = int_to_bytes(self['r'].native) 585 s_bytes = int_to_bytes(self['s'].native)
|
D | keys.py | 42 from .util import int_from_bytes, int_to_bytes 157 byte_string += int_to_bytes(x, width=num_bytes) 158 byte_string += int_to_bytes(y, width=num_bytes)
|
D | util.py | 39 def int_to_bytes(value, signed=False, width=None): function 214 def int_to_bytes(value, signed=False, width=None): function
|
D | core.py | 64 from .util import int_to_bytes, int_from_bytes, timezone, extended_datetime, create_timezone, utc_w… 1950 self.contents = int_to_bytes(value, signed=True) 2188 extra_bits_byte = int_to_bytes(extra_bits) 2195 value_bytes = int_to_bytes(int(value, 2)) 2528 self.contents = b'\x00' + int_to_bytes(value, signed=True) 2676 self.contents = int_to_bytes(value, signed=False, width=self._encoded_width)
|
D | x509.py | 63 from .util import int_to_bytes, int_from_bytes, inet_ntop, inet_pton 367 cidr_bytes = int_to_bytes(int(cidr_mask, 2))
|
/external/python/cryptography/src/cryptography/ |
D | utils.py | 73 def int_to_bytes(integer, length=None): function 78 def int_to_bytes(integer, length=None): function
|
/external/python/cpython3/Objects/clinic/ |
D | longobject.c.h | 190 …{"to_bytes", (PyCFunction)(void(*)(void))int_to_bytes, METH_FASTCALL|METH_KEYWORDS, int_to_bytes__… 197 int_to_bytes(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in int_to_bytes() function
|
/external/python/cryptography/src/cryptography/hazmat/primitives/asymmetric/ |
D | ec.py | 373 b'\x04' + utils.int_to_bytes(self.x, byte_length) + 374 utils.int_to_bytes(self.y, byte_length)
|
/external/python/cryptography/src/cryptography/hazmat/primitives/serialization/ |
D | ssh.py | 139 data = utils.int_to_bytes(value)
|
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/ |
D | encode_asn1.py | 423 utils.int_to_bytes(((1 << 32) - name.value.num_addresses), 4) 428 utils.int_to_bytes((1 << 128) - name.value.num_addresses, 16)
|
/external/python/asn1crypto/ |
D | changelog.md | 107 - Fixed some edge-case bugs in `util.int_to_bytes()` 451 - `int_to_bytes()`
|
/external/python/cpython3/Tools/c-analyzer/ |
D | TODO | 1049 Objects/clinic/longobject.c.h:int_to_bytes():_parser static _PyArg_Parser _parser
|
D | known.tsv | 628 Objects/clinic/longobject.c.h int_to_bytes _parser variable static _PyArg_Parser _parser
|