add explicit ISD select

This commit is contained in:
Michele Balistreri 2022-06-13 08:56:09 +02:00
parent aafe062ad0
commit efe6c94bbf

View File

@ -472,6 +472,12 @@ func (kc *keycardContext) factoryReset() error {
}
cmdSet := globalplatform.NewCommandSet(kc.c)
if err := cmdSet.Select(); err != nil {
l("select ISD failed", "error", err)
return err
}
if err := cmdSet.OpenSecureChannel(); err != nil {
l("open secure channel failed", "error", err)
return err