Wrap set_authsize in GCM check.
Wrap result check in mode check.