Text this: On the security of a provably secure, efficient, and flexible authentication scheme for ad hoc wireless sensor networks