我使用mcrypt_encrypt函数和mcrypt_decrypt函数来加密和解密一些信息 . 但有一段时间我收到错误:

Warning: mcrypt_decrypt(): Received initialization vector of size 0, but size 32 is required for this encryption mode in

我想知道如何使用私钥验证IV,如果是,则调用mcrypt_decrypt,否则返回false . 我使用模式CBC .