main.c: main_encrypt: use params->iv_length in malloc, instead of a hardcoded value
implement authentication