public function setIv($iv = null) { $this->iv = is_null($iv) ? mcrypt_create_iv(Horde_Crypt_Blowfish::IV_LENGTH, MCRYPT_RAND) : $iv; }