Security and privacy in smart grid context : problems and solutions