Home
last modified time | relevance | path

Searched refs:unused_bits (Results 1 – 6 of 6) sorted by relevance

/external/scapy/scapy/asn1/
Dasn1.py310 unused_bits = 0
312 unused_bits = 8 - (len(value) % 8)
313 padded_value = str_value + ("0" * unused_bits)
318 unused_bits = 0
321 super(ASN1_Object, self).__setattr__("unused_bits", unused_bits)
329 …lf.__dict__.get("name", self.__class__.__name__), v, self.unused_bits, "s" if self.unused_bits>1 e…
335 …lf.__dict__.get("name", self.__class__.__name__), v, self.unused_bits, "s" if self.unused_bits>1 e…
Dber.py314 unused_bits = orb(s[0])
315 if safe and unused_bits > 7:
318 if unused_bits > 0:
319 s = s[:-unused_bits]
328 unused_bits = 0
330 unused_bits = 8 - len(s)%8
331 s += b"0"*unused_bits
333 s = chb(unused_bits) + s
/external/brotli/c/dec/
Dbit_reader.h224 uint32_t unused_bits = unused_bytes << 3; in BrotliBitReaderUnload() local
227 if (unused_bits == sizeof(br->val_) << 3) { in BrotliBitReaderUnload()
230 br->val_ <<= unused_bits; in BrotliBitReaderUnload()
232 br->bit_pos_ += unused_bits; in BrotliBitReaderUnload()
/external/python/asn1crypto/tests/
Dtest_core.py1048 self.assertEqual((0, 0), a.unused_bits)
1052 self.assertEqual((0, 0, 0, 0), prim.unused_bits)
1056 self.assertEqual((0, 0, 0, 0), indef.unused_bits)
1060 self.assertEqual((1, 1, 0, 1), unused.unused_bits)
1064 self.assertEqual((0, 0, 0, 0), unused.unused_bits)
1069 self.assertEqual((1, 0, 1, 1), a.unused_bits)
1073 self.assertEqual((1, 0, 1, 1), b.unused_bits)
1076 self.assertEqual((), a.unused_bits)
1090 self.assertEqual((), a.unused_bits)
1094 self.assertEqual((), a.unused_bits)
[all …]
/external/python/asn1crypto/asn1crypto/
Dcore.py2022 unused_bits = _int_to_bit_tuple(value & ((1 << unused_bits_len) - 1), unused_bits_len)
2026 return [(value, bits, unused_bits)]
2047 unused_bits = ()
2050 for chunk, bits, unused_bits in self._merge_chunks():
2057 return value, total_bits, unused_bits
2075 def unused_bits(self): member in _IntegerBitString
2457 unused_bits = _int_to_bit_tuple(last_byte & mask, unused_bits_len)
2459 return [(value, unused_bits)]
2476 def unused_bits(self): member in OctetBitString
/external/python/asn1crypto/
Dchangelog.md59 - Added `core.BitString().unused_bits`