Ejemplo n.º 1
0
        public MainWindow()
        {
            ecs = new EllipticCurve[9];
            for (int i = 0; i < 9; i++)
            {
                ecs[i] = new EllipticCurve(i);
            }

            InitializeComponent();
            label_ecs = new System.Windows.Controls.Label[9];
            for(int i=0;i<9;i++)
            {
                label_ecs[i] = FindName("label_ecs_"+i) as System.Windows.Controls.Label;
                label_ecs[i].Content = ecs[i];
            }
            this.choose_ec(this.label_ecs_index);
            this.init();
            this.scroll_viewer_1.PreviewMouseWheel += this.scroll_viewer_1_PreviewMouseWheel;
            this.log("init system");
        }
Ejemplo n.º 2
0
 public Signer(EllipticCurve ec)
 {
     s0 = 4;
     q = 23;
     this.ec = ec;
 }
Ejemplo n.º 3
0
 public User(int index)
 {
     ec = new EllipticCurve(index);
     m = ec.multiply(3, ec.G);
     signer = new Signer(ec);
 }
Ejemplo n.º 4
0
 private void choose_ec(int index)
 {
     user = new User(index);
     ec = user.EC;
     signer = user.SIGNER;
 }