public McElieseWizardPage2(McElieseWizardData mcElieseWizardData) { InitializeComponent(); this.DataContext = this; N = 8; K = 2; D = 6; T = 2; try { _mcElieseWizardData = mcElieseWizardData; _mcElieseWizardData.McEliese = new McElieseEllyptic(N, K, D, T, _mcElieseWizardData.GaloisField); ScamblerMatrix_Preview.ItemsSource = BindingHelper.GetBindable2DArray(_mcElieseWizardData.McEliese.PrivateKey.ScramblerMatrix); InverseScamblerMatrix_Preview.ItemsSource = BindingHelper.GetBindable2DArray(_mcElieseWizardData.McEliese.PrivateKey.InverseScramblerMatrix); Permutation_Preview.ItemsSource = BindingHelper.GetBindable2DArray(_mcElieseWizardData.McEliese.PrivateKey.Permutation); Mask_Preview.ItemsSource = BindingHelper.GetBindable2DArray(_mcElieseWizardData.McEliese.PrivateKey.Mask); InversePermutation_Preview.ItemsSource = BindingHelper.GetBindable2DArray(_mcElieseWizardData.McEliese.PrivateKey.InversePermutation); InverseMask_Preview.ItemsSource = BindingHelper.GetBindable2DArray(_mcElieseWizardData.McEliese.PrivateKey.InverseMask); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public McElieseWizardPage1(McElieseWizardData mcElieseWizardData) { InitializeComponent(); this.DataContext = this; FieldBase = 2; FieldPower = 2; _mcElieseWizardData = mcElieseWizardData; }
public McElieseWizardPage3(McElieseWizardData mcElieseWizardData) { InitializeComponent(); N = 8; K = 2; D = 6; T = 2; _mcElieseWizardData = mcElieseWizardData; }