A cross-authentication model and implementation