PKCS7Encoder补位问题
xiaozhaoying opened this issue · 0 comments
xiaozhaoying commented
PKCS7Encoder类中,amount_to_pad == 0不会发生
代码如下:
amount_to_pad = self.block_size - (text_length % self.block_size)
if amount_to_pad == 0:
amount_to_pad = self.block_size