Membership authentication for hierarchical multigroups using a master secret key