mcrypt_generic_end This function terminates encryption &warn.deprecated.function.5-3-0.removed.7-0-0.alternatives; mcrypt_generic_deinit &reftitle.description; boolmcrypt_generic_end resourcetd mcrypt_generic_deinit should be used instead of this function, as it can cause crashes when used with mcrypt_module_close due to multiple buffer frees. This function terminates encryption specified by the encryption descriptor (td). Actually it clears all buffers, and closes all the modules used. Returns &false; on error, or &true; on success.