Closed zoli closed 8 months ago
Would you like to submit a pull request? If you do, please also add a unit-test for this case.
Would you like to submit a pull request? If you do, please also add a unit-test for this case.
Sure. Will add unit tests too.
From what I understand this line in
pad
function isn't right.It doesn't result in closes divisible by 64. For example if
packet
length is 56 it will result in 65 which should be 64 (the closest divisible by 64 to 56+1 is 64). I think it should get rewritten to STH like this: