Can’t decrypt using pgcrypto from AES-256-CBC but AES-128-CBC is OK
MCRYPT_RIJNDAEL_256 isn’t AES-256. It’s the Rijndael cipher with a block size of 256 (hence the error). AES is a subset of the Rijndael cipher using block size of 128 bits and key sizes of 128, 192 and 256 bits. This is also reflected in the IV size. To create an AES-256 encrypted ciphertext you can … Read more