So I started receiving this error whenever I used a non-default cypher with mcrypt. Encryptions and decryption still went smoothly but this errors was always triggered:

Warning: mcrypt_generic_init(): Iv size incorrect; supplied length: 16, needed: 32 in...

I found an explanation and a fix here: http://www.ilovemyjournal.com/?action=view_entry&eid=4638

I have a patch for 6.x that I'll attach to the next comment.

CommentFileSizeAuthor
#1 aes-cipher.patch1.23 KBlee20

Comments

lee20’s picture

Version: 7.x-1.x-dev » 6.x-1.4
StatusFileSize
new1.23 KB

I'm guessing this is an issue with 7.x but this patch was made against 6.x-1.4.

This is a quick and dirty patch where I just hard-coded the cipher into the calls to mcrypt_module_open() but it seems to do the trick.

dpovshed’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Development is focused now on 7.x and 8.x, so closing non-critical 6.x issue.