Skip to content

Commit

Permalink
The $iv parameters are not required
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Nov 26, 2020
1 parent 11de239 commit 78a1909
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mcrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_mcrypt_get_cipher_name, 0, 0, 1)
ZEND_ARG_INFO(0, cipher)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_mcrypt_encrypt, 0, 0, 5)
ZEND_BEGIN_ARG_INFO_EX(arginfo_mcrypt_encrypt, 0, 0, 4)
ZEND_ARG_INFO(0, cipher)
ZEND_ARG_INFO(0, key)
ZEND_ARG_INFO(0, data)
ZEND_ARG_INFO(0, mode)
ZEND_ARG_INFO(0, iv)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_mcrypt_decrypt, 0, 0, 5)
ZEND_BEGIN_ARG_INFO_EX(arginfo_mcrypt_decrypt, 0, 0, 4)
ZEND_ARG_INFO(0, cipher)
ZEND_ARG_INFO(0, key)
ZEND_ARG_INFO(0, data)
Expand Down

0 comments on commit 78a1909

Please sign in to comment.