decrypt and encry wrong
txy0110 opened this issue · 2 comments
I try uint8_t in[16] = {0x6D, 0x6F, 0x64, 0x65, 0x2E, 0x0D, 0x0D, 0x0A, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},first I encry it, then decrypt,result is {0x6D, 0x6F, 0x64, 0x65, 0x2E, 0x0D, 0x0D, 0x0D, 0x0A, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, result length is 17;There are many other similar cases
Hi @txy0110 and thank you for your interest in this project :)
This library only works on buffers given by the user. I think you are doing something wrong if you believe the buffer sizes are changing.
How do you determine the result length?
Please provide a minimal example piece of code that demonstrates the alleged problem.
I'm closing this issue as it seems to rely in a misunderstanding.
I will of course reopen if code demonstrating the problem is posted.