Ignore:
Timestamp:
May 20, 2010, 12:35:16 PM (12 years ago)
Author:
Sven Rech
Message:

replaced all BigInteger stuff with the new BigInteger class from .net 4.0

But there are still problems with some plugins (Keysearcher, BigInteger Operations...)

Location:
trunk/CrypPlugins/KeyPatternJob
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeyPatternJob/DistributableKeyPatternJob.cs

    r1223 r1448  
    2020using KeySearcher;
    2121using Cryptool.PluginBase.Miscellaneous;
     22using System.Numerics;
    2223
    2324namespace Cryptool.Plugins.PeerToPeer.Jobs
     
    120121        {
    121122            byte[] serializedJob = null;
    122             jobId = null;
     123            jobId = -1;
    123124
    124125            if (this.patternBuffer.Count > 0)
  • trunk/CrypPlugins/KeyPatternJob/KeyPatternJob.csproj

    r1416 r1448  
    103103      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    104104    </Reference>
     105    <Reference Include="System.Numerics" />
    105106    <Reference Include="System.Xml.Linq">
    106107      <RequiredTargetFramework>3.5</RequiredTargetFramework>
  • trunk/CrypPlugins/KeyPatternJob/KeyPatternJobPart.cs

    r1137 r1448  
    2222using System.IO;
    2323using Cryptool.PluginBase.Miscellaneous;
     24using System.Numerics;
    2425
    2526/*
     
    9798                byte[] jobIdByte = new byte[BitConverter.ToInt32(intBuffer, 0)];
    9899                memStream.Read(jobIdByte, 0, jobIdByte.Length);
    99                 BigInteger temp_jobId = new BigInteger(jobIdByte, jobIdByte.Length);
     100                BigInteger temp_jobId = new BigInteger(jobIdByte);
    100101               
    101102                // deserialize KeyPattern
     
    160161            {
    161162                // serialize JobId
    162                 byte[] byteJobId = this.JobId.getBytes();
     163                byte[] byteJobId = this.JobId.ToByteArray();
    163164                byte[] jobIdLen = BitConverter.GetBytes(byteJobId.Length);
    164165                memStream.Write(jobIdLen, 0, jobIdLen.Length);
  • trunk/CrypPlugins/KeyPatternJob/KeyPatternJobResult.cs

    r1137 r1448  
    2020using Cryptool.PluginBase.Miscellaneous;
    2121using System.IO;
     22using System.Numerics;
    2223
    2324namespace Cryptool.Plugins.PeerToPeer.Jobs
Note: See TracChangeset for help on using the changeset viewer.