diff --git a/reference/mcrypt/functions/mcrypt-generic-init.xml b/reference/mcrypt/functions/mcrypt-generic-init.xml index 4530f3b994..15a8719f8f 100644 --- a/reference/mcrypt/functions/mcrypt-generic-init.xml +++ b/reference/mcrypt/functions/mcrypt-generic-init.xml @@ -1,5 +1,5 @@ - + @@ -24,7 +24,13 @@ and OFB modes. It needs to be random and unique (but not secret). The same IV must be used for encryption/decryption. If you do not want to use it you should set it to zeros, but this is not - recommended. The function returns a negative value on error. + recommended. + + + The function returns a negative value on error, -3 when the key length + was incorrect, -4 when there was a memory allocation problem and any + other return value is an unknown error. If an error occurs a warning will + be displayed accordingly. You need to call this function before every call to