key gen finiallized