An online/offline distributed attribute-based authentication scheme