Lines Matching refs:padding_length
783 def create_padding(self, padding_length): argument
784 if padding_length == 1:
786 elif padding_length > 1:
787 padding_length -= 2
788 … return bytearray([0x01, padding_length]) + bytearray([0x00 for _ in range(padding_length)])
805 padding_length = self._calculate_required_padding(len(expected_data))
806 expected_data += self.create_padding(padding_length)
967 padding_length = 8 - excess_bytes
969 if padding_length == 1:
971 elif padding_length > 1:
972 padding_length -= 2
973 … return bytearray([0x01, padding_length]) + bytearray([0x00 for _ in range(padding_length)])