cryptography
cryptography copied to clipboard
Inconsistent PKCS7 padding Android native vs iOS
Hi, First of all thank you for this work, Android accelerated AES is really fast with this library.
This is my problem:
The Android async AES-CBC encryption/decryption does not add/enforce PKCS7 padding, which is perfect for my use case.
However, when I build the same code for iOS, PKCS7 padding is added, and when decrypting something with missing PKCS7 padding, it throws, and that's a problem for my use case.
I think that padding and its enforcement should either be completely removed, or made optional consistently over all platforms.