AES icon indicating copy to clipboard operation
AES copied to clipboard

PKCS7 padding decryption for AES-128 CBC?

Open agathauy opened this issue 6 years ago • 1 comments

I would just like to ask if the library uses PKCS5? It isn't explicitly noted anywhere I think, although my guess is that it uses PKCS5?

The library can decode PKCS7 but the padding is of course incorrectly decrypted. Hence, there are a garbage bytes after using a delimiter.

I'm not really sure what to do about it, as sometimes the decryption fails. Although most of the time it works. And I think it may be because of the padding.

agathauy avatar Aug 22 '18 05:08 agathauy

the library it supposed to use PKCS7, can you sent me a sample code and the output? if you want to do it in private drop me an email @ [email protected]

thank you.

spaniakos avatar Aug 22 '18 07:08 spaniakos