CHARIOT: Cloud-assisted access control for the internet of things