IO-less interface for Tool_mkelection
IO-less interface for Tool_tkeygen