Use 0 not -1 (since type is size_t) for finalisation argument to do_cipher:
the NULL value for the input buffer is sufficient to notice this case.
Please register or sign in to comment
the NULL value for the input buffer is sufficient to notice this case.