Changeset 715 for trunk/CrypPlugins/SDES


Ignore:
Timestamp:
Oct 13, 2009, 11:29:05 AM (12 years ago)
Author:
kopal
Message:

changes on KeySearcher and SDES (still not running correctly)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/SDES/SDES.cs

    r705 r715  
    219219        private void process(int action)
    220220        {
    221            
     221
     222            if (this.ControlSlave is object && this.InputStream is object && this.InputIV is object)
     223            {
     224                this.controlSlave.onStatusChanged();
     225            }
     226
    222227            try
    223228            {
     
    372377        #endregion
    373378
    374         private IControlEncryption controlSlave;
     379        private SDESControl controlSlave;
    375380        [PropertyInfo(Direction.ControlSlave, "SDES Slave", "Direct access to SDES.", "", DisplayLevel.Beginner)]
    376381        public IControlEncryption ControlSlave
     
    431436    public class SDESControl : IControlEncryption
    432437    {
    433         public event KeyPatternChanged keyPatternChanged;
     438        public static int counter=0;
     439
     440        public event KeyPatternChanged keyPatternChanged; //not used, because we only have one key length
    434441        public event IControlStatusChangedEventHandler OnStatusChanged;
    435442        private SDES plugin;
     
    437444        public SDESControl(SDES Plugin)
    438445        {
    439             this.plugin = Plugin;
     446            this.plugin = Plugin;     
     447            counter++;
     448            plugin.GuiLogMessage("Counter:" + counter,NotificationLevel.Info);
     449        }
     450
     451        public void onStatusChanged()
     452        {
     453            if(OnStatusChanged != null)
     454                OnStatusChanged(this, true);
    440455        }
    441456
Note: See TracChangeset for help on using the changeset viewer.