MASS: An efficient and secure broadcast authentication scheme for resource constrained devices