Replace "trusted" output flag with security mech ID.