In several places, I see Java code that uses AES with the PKCS # 5 add-on. I don’t understand how this is possible.
PKCS # 5 padding is intended for use with ciphers whose block size is <= 8 bytes. The block size for AES is 16 bytes. Is all the code that exists that uses AES with PKCS # 5 wrong? Or is the internal structure using PKCS # 7? The structures in question will be provided by Sun in Java, JCE, and BouncyCastle.
user277465
source
share