Is this code using a null IV? I don't see where you read/write the IV anywhere... this doesn't seem right to me... seems like the IV is just null. Am I missing something?