예제 #1
0
        public SigabaCore(Sigaba facade, SigabaPresentation sigpa)
        {
            _sigpa    = sigpa;
            _facade   = facade;
            _settings = (SigabaSettings)_facade.Settings;

            CodeWheels = new Rotor[15];

            CipherRotors  = new Rotor[5];
            ControlRotors = new Rotor[5];
            IndexRotors   = new Rotor[5];
        }
예제 #2
0
파일: Sigaba.cs 프로젝트: xgalv/Cryptool2
        public Sigaba()
        {
            SigabaPresentation sigpa = new SigabaPresentation(this, _settings);

            Presentation = sigpa;
            this._settings.PropertyChanged += sigpa.settings_OnPropertyChange;

            _core     = new SigabaCore(this, sigpa);
            _fastCore = new SigabaCoreFast();
            _keys     = new string[5];

            this._settings.PropertyChanged += _core.settings_OnPropertyChange;
        }