Measuring and Evaluating the Security Level of Circuits