Ignore:
Timestamp:
Oct 16, 2009, 7:00:16 PM (12 years ago)
Author:
Thomas Schmid
Message:
  • added cube attack to core sln
  • tried to fix Trivium key access (@sören: please check if changes achieve your idea)
File:
1 edited

Legend:

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

    r728 r734  
    7777            }
    7878        }
    79 
    80 
    8179
    8280        [PropertyInfo(Direction.InputData, "IV", "Must be 10 bytes (80 bit) in Hex.", "", true, false, DisplayLevel.Beginner, QuickWatchFormat.Hex, null)]
     
    724722            if (key == null)
    725723            {
    726                 //key = new int[pluginSettings.InputKey.Length * 4];
    727                 //key = plugin.hextobin(pluginSettings.InputKey.ToCharArray());
    728                 key = new int[] { 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1 };
     724                key = new int[((TriviumSettings)plugin.Settings).InputKey.Length * 4];
     725                key = plugin.hextobin(((TriviumSettings)plugin.Settings).InputKey.ToCharArray());
     726                // key = new int[] { 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1 };
    729727            }
    730728           
Note: See TracChangeset for help on using the changeset viewer.