Lib: Use function ecies_read_encrypt_header. Fix signed/unsigned comparison warninngs.