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...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.