Ignore:
Timestamp:
Apr 15, 2009, 8:41:06 PM (13 years ago)
Author:
Sören Rinne
Message:
  • modified CLK so that it starts right at the beginning
  • LFSR now reads polynomials and binary sequences as TapSequence input
  • LFSR runs only one round if binary clock is used
  • cleaned code of XORBinary
File:
1 edited

Legend:

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

    r286 r288  
    213213using Cryptool.PluginBase.IO;
    214214using System.Windows.Controls;
     215// for [MethodImpl(MethodImplOptions.Synchronized)]
     216using System.Runtime.CompilerServices;
    215217
    216218namespace Cryptool.XORBinary
    217219{
    218220    [Author("Soeren Rinne", "soeren.rinne@cryptool.de", "Uni Bochum", "http://www.rub.de")]
    219     [PluginInfo(false, "XORBinary", "Simple Binary XOR", "XORBinary/DetailedDescription/Description.xaml",
    220       "XORBinary/Images/icon.png", "XORBinary/Images/icon.png", "XORBinary/Images/icon.png")]
     221    [PluginInfo(false, "XORBinary", "Simple Binary XOR", "XORBinary/DetailedDescription/Description.xaml", "XORBinary/Images/icon.png", "XORBinary/Images/icon.png", "XORBinary/Images/icon.png")]
    221222    public class XORBinary : IThroughput
    222223    {
     
    261262        public bool InputOne
    262263        {
     264            [MethodImpl(MethodImplOptions.Synchronized)]
    263265            get { return this.inputOne; }
     266            [MethodImpl(MethodImplOptions.Synchronized)]
    264267            set
    265268            {
     
    274277        public bool InputTwo
    275278        {
     279            [MethodImpl(MethodImplOptions.Synchronized)]
    276280            get { return this.inputTwo; }
     281            [MethodImpl(MethodImplOptions.Synchronized)]
    277282            set
    278283            {
     
    287292        public bool Output
    288293        {
     294            [MethodImpl(MethodImplOptions.Synchronized)]
    289295            get
    290296            {
     
    292298            }
    293299            set
    294             {
    295                 // is readonly
     300            {   // is readonly
    296301            }
    297302        }
     
    311316        {
    312317        }
    313 
    314         /// <summary>
    315         /// Fire, if progress bar has to be updated
    316         /// </summary>
    317         //public event PluginProgressChangedEventHandler OnPluginProgressChanged;
    318 
    319         /// <summary>
    320         /// Fire, if new message has to be shown in the status bar
    321         /// </summary>
    322         //public event GuiLogNotificationEventHandler OnGuiLogNotificationOccured;
    323318
    324319        public UserControl Presentation
Note: See TracChangeset for help on using the changeset viewer.