Can be removed. Crypt_Base is doing all the work of padding and substr'ing of the $iv to the proper size