I would expect that mcrypt_enc_get_iv_size returns 0 when in ECB mode, because ECB ignores the IV and the manual says: "If it is '0' then the IV is ignored in that algorithm." However, it returns the block size.
Program which prints IV size in ECB mode
Log in to post a comment.
Program which prints IV size in ECB mode