Improve AAD and GCM tag handling in cipher API