Home
last modified time | relevance | path

Searched refs:int_to_bytes (Results 1 – 16 of 16) sorted by relevance

/external/python/asn1crypto/tests/
Dtest_util.py35 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/
Dkbkdf.py94 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/
Dparser.py19 from .util import int_from_bytes, int_to_bytes
281 length_bytes = int_to_bytes(length)
Dalgos.py25 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)
Dkeys.py42 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)
Dutil.py39 def int_to_bytes(value, signed=False, width=None): function
214 def int_to_bytes(value, signed=False, width=None): function
Dcore.py64 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)
Dx509.py63 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/
Dutils.py73 def int_to_bytes(integer, length=None): function
78 def int_to_bytes(integer, length=None): function
/external/python/cpython3/Objects/clinic/
Dlongobject.c.h190 …{"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/
Dec.py373 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/
Dssh.py139 data = utils.int_to_bytes(value)
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/
Dencode_asn1.py423 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/
Dchangelog.md107 - Fixed some edge-case bugs in `util.int_to_bytes()`
451 - `int_to_bytes()`
/external/python/cpython3/Tools/c-analyzer/
DTODO1049 Objects/clinic/longobject.c.h:int_to_bytes():_parser static _PyArg_Parser _parser
Dknown.tsv628 Objects/clinic/longobject.c.h int_to_bytes _parser variable static _PyArg_Parser _parser