def callbackAdvKeySettings(self, event): if self.secureBootType == uidef.kSecureBootType_BeeCrypto and self.bootDevice == uidef.kBootDevice_FlexspiNor: if self._checkIfSubWinHasBeenOpened(): return if self.keyStorageRegion == uidef.kKeyStorageRegion_FixedOtpmkKey: otpmkKeySettingsFrame = ui_settings_fixed_otpmk_key.secBootUiSettingsFixedOtpmkKey( None) otpmkKeySettingsFrame.SetTitle( uilang.kSubLanguageContentDict['otpmkKey_title'][ self.languageIndex]) otpmkKeySettingsFrame.Show(True) elif self.keyStorageRegion == uidef.kKeyStorageRegion_FlexibleUserKeys: userKeySettingsFrame = ui_settings_flexible_user_keys.secBootUiSettingsFlexibleUserKeys( None) userKeySettingsFrame.SetTitle( uilang.kSubLanguageContentDict['userKey_title'][ self.languageIndex]) userKeySettingsFrame.setNecessaryInfo( self.mcuDevice, self.tgt.flexspiNorMemBase) userKeySettingsFrame.Show(True) else: pass else: self.popupMsgBox( uilang.kMsgLanguageContentDict['keyGenError_onlyForBee'][ self.languageIndex])
def callbackAdvKeySettings( self, event ): if self.secureBootType == uidef.kSecureBootType_BeeCrypto and self.bootDevice == uidef.kBootDevice_FlexspiNor: if self.keyStorageRegion == uidef.kKeyStorageRegion_FixedOtpmkKey: otpmkKeySettingsFrame = ui_settings_fixed_otpmk_key.secBootUiSettingsFixedOtpmkKey(None) otpmkKeySettingsFrame.SetTitle(u"Advanced Key Settings - Fixed OTPMK") otpmkKeySettingsFrame.Show(True) elif self.keyStorageRegion == uidef.kKeyStorageRegion_FlexibleUserKeys: userKeySettingsFrame = ui_settings_flexible_user_keys.secBootUiSettingsFlexibleUserKeys(None) userKeySettingsFrame.SetTitle(u"Advanced Key Settings - Flexible User") userKeySettingsFrame.setNecessaryInfo(self.mcuDevice, self.tgt.flexspiNorMemBase) userKeySettingsFrame.Show(True) else: pass else: self.popupMsgBox('Key setting is only available when booting BEE encrypted image in FlexSPI NOR device!')