Enabling trust using code verification