merge gjoll_decrypt_header and gjoll_decrypt_data, and fix buffer overflow