cryptography icon indicating copy to clipboard operation
cryptography copied to clipboard

Inconsistent PKCS7 padding Android native vs iOS

Open mh- opened this issue 3 years ago • 0 comments

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.

mh- avatar May 24 '22 05:05 mh-