C++ interface to test security of smart meter