Go-whatsapp: Error receiving small files like 1Kb

Created on 28 Nov 2018  路  5Comments  路  Source: Rhymen/go-whatsapp

Whenever I try to send a message that has a very small content I always get an error that says

padding is greater then the length

I traced the code and it's in cbc.go: line 97

anyone knows how to fix this?

bug

All 5 comments

Do you get the error when you want to send or download the file?

@Rhymen I get the error when I'm trying to receive the file. for example I have a .txt file that only have one letter as a content in it. whenever I receive a super small file it always points me to that error

Same issue happens for me too. After some testing I realized this only happens with files <= 95 bytes.

When the file size is smaller than 32 bytes it throws file length does not match but when it is bigger it throws padding is greater then the length: 222 / 48. Both errors are caused by AES encryption libraries.

I'm having the same issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Leonardo-Crespo picture Leonardo-Crespo  路  6Comments

it-sumanp picture it-sumanp  路  8Comments

denislee picture denislee  路  6Comments

bamjohn2222 picture bamjohn2222  路  5Comments

tkovs picture tkovs  路  3Comments