Ignore:
Timestamp:
Mar 24, 2021, 2:51:34 PM (8 months ago)
Author:
kopal
Message:

Complete CrypTool 2 project

  • renamed "Cryptool" namespace to "CrypTool" namespace
File:
1 edited

Legend:

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

    r8617 r8983  
    2121using System.Net;
    2222using System.Text;
    23 using Cryptool.PluginBase;
     23using CrypTool.PluginBase;
    2424using System.Windows.Controls;
    2525using System.ComponentModel;
    26 using Cryptool.PluginBase.Control;
     26using CrypTool.PluginBase.Control;
    2727using System.Collections;
    2828using System.Collections.Generic;
    2929using System.Threading;
    3030using System.Windows.Threading;
    31 using Cryptool.PluginBase.IO;
     31using CrypTool.PluginBase.IO;
    3232using System.Numerics;
    3333using CrypCloud.Core.CloudComponent;
     
    4141namespace KeySearcher
    4242{
    43     [Author("Sven Rech, Nils Kopal, Raoul Falk, Dennis Nolte", "rech@cryptool.org", "Uni Duisburg-Essen", "http://www.uni-due.de")]
     43    [Author("Sven Rech, Nils Kopal, Raoul Falk, Dennis Nolte", "rech@CrypTool.org", "Uni Duisburg-Essen", "http://www.uni-due.de")]
    4444    [PluginInfo("KeySearcher.Properties.Resources", "PluginCaption", "PluginTooltip", "KeySearcher/DetailedDescription/doc.xml", "KeySearcher/Images/icon.png")]
    4545    [ComponentCategory(ComponentCategory.CryptanalysisSpecific)]
     
    158158
    159159        /* BEGIN: following lines are from Arnie - 2010.01.12 */
    160         private ICryptoolStream csEncryptedData;
     160        private ICrypToolStream csEncryptedData;
    161161        [PropertyInfo(Direction.InputData, "CSEncryptedDataCaption", "CSEncryptedDataTooltip", false)]
    162         public virtual ICryptoolStream CSEncryptedData
     162        public virtual ICrypToolStream CSEncryptedData
    163163        {
    164164            get { return this.csEncryptedData; }
     
    168168                {
    169169                    this.csEncryptedData = value;
    170                     this.encryptedData = GetByteFromCryptoolStream(value);
     170                    this.encryptedData = GetByteFromCrypToolStream(value);
    171171                    OnPropertyChanged("CSEncryptedData");
    172172                }
     
    193193        /// When the Input-Slot changed, set this variable to true, so the new Stream will be transformed to byte[]
    194194        /// </summary>
    195         private byte[] GetByteFromCryptoolStream(ICryptoolStream cryptoolStream)
     195        private byte[] GetByteFromCrypToolStream(ICrypToolStream CrypToolStream)
    196196        {
    197197            byte[] encryptedByteData = null;
    198198
    199             if (cryptoolStream != null)
    200             {
    201                 using (CStreamReader reader = cryptoolStream.CreateReader())
     199            if (CrypToolStream != null)
     200            {
     201                using (CStreamReader reader = CrypToolStream.CreateReader())
    202202                {
    203203                    if (reader.Length > Int32.MaxValue)
    204                     throw(new Exception("CryptoolStream length is longer than the Int32.MaxValue"));
     204                    throw(new Exception("CrypToolStream length is longer than the Int32.MaxValue"));
    205205
    206206                    encryptedByteData = reader.ReadFully();
     
    412412                localBruteForceStopwatch.Reset();
    413413
    414                 //either byte[] CStream input or CryptoolStream Object input
     414                //either byte[] CStream input or CrypToolStream Object input
    415415                if (encryptedData != null || csEncryptedData != null) //to prevent execution on initialization
    416416                {
     
    13271327            if (path == "")
    13281328            {
    1329                 //using the default save folder %APPDATA%\Local\Cryptool2
     1329                //using the default save folder %APPDATA%\Local\CrypTool2
    13301330                path = string.Format("{0}\\UserRanking{1}.csv", DirectoryHelper.DirectoryLocal, dataIdentifier);
    13311331            }
     
    13551355                try
    13561356                {
    1357                     //using the default save folder %APPDATA%\Local\Cryptool2
     1357                    //using the default save folder %APPDATA%\Local\CrypTool2
    13581358                    using (StreamWriter sw = new StreamWriter(string.Format("{0}\\Maschine{1}.csv", DirectoryHelper.DirectoryLocal, dataIdentifier)))
    13591359                    {
Note: See TracChangeset for help on using the changeset viewer.