Stop assuming the IV is 8 bytes long, use the real size instead.