Browse Source

CryptoLib4Pascal fixed multithread bug

PascalCoin 5 years ago
parent
commit
32b6dd21f9
1 changed files with 1 additions and 28 deletions
  1. 1 28
      src/libraries/cryptolib4pascal/ClpECAlgorithms.pas

+ 1 - 28
src/libraries/cryptolib4pascal/ClpECAlgorithms.pas

@@ -393,12 +393,6 @@ begin
 
 
   result := ImplShamirsTrickWNaf(preCompP, preCompNegP, wnafP, preCompQ,
   result := ImplShamirsTrickWNaf(preCompP, preCompNegP, wnafP, preCompQ,
     preCompNegQ, wnafQ);
     preCompNegQ, wnafQ);
-
-  infoP.PreComp := Nil; // Review
-  infoP.PreCompNeg := Nil; // Review
-  infoQ.PreComp := Nil; // Review
-  infoQ.PreCompNeg := Nil; // Review
-
 end;
 end;
 
 
 class function TECAlgorithms.ImplShamirsTrickWNaf(const p: IECPoint;
 class function TECAlgorithms.ImplShamirsTrickWNaf(const p: IECPoint;
@@ -435,10 +429,6 @@ begin
   then
   then
   begin
   begin
     result := ImplShamirsTrickFixedPoint(p, k, q, l);
     result := ImplShamirsTrickFixedPoint(p, k, q, l);
-    infoP.PreComp := Nil; // Review
-    infoP.PreCompNeg := Nil; // Review
-    infoQ.PreComp := Nil; // Review
-    infoQ.PreCompNeg := Nil; // Review
     Exit;
     Exit;
   end;
   end;
 
 
@@ -486,10 +476,6 @@ begin
 
 
   result := ImplShamirsTrickWNaf(preCompP, preCompNegP, wnafP, preCompQ,
   result := ImplShamirsTrickWNaf(preCompP, preCompNegP, wnafP, preCompQ,
     preCompNegQ, wnafQ);
     preCompNegQ, wnafQ);
-  infoP.PreComp := Nil; // Review
-  infoP.PreCompNeg := Nil; // Review
-  infoQ.PreComp := Nil; // Review
-  infoQ.PreCompNeg := Nil; // Review
 end;
 end;
 
 
 class function TECAlgorithms.ImplShamirsTrickWNaf(const preCompP,
 class function TECAlgorithms.ImplShamirsTrickWNaf(const preCompP,
@@ -642,13 +628,6 @@ begin
   end;
   end;
 
 
   result := ImplSumOfMultiplies(negs, infos, wnafs);
   result := ImplSumOfMultiplies(negs, infos, wnafs);
-
-  for i := System.Low(infos) to System.High(infos) do
-  begin
-    infos[i].PreComp := Nil; // Review
-    infos[i].PreCompNeg := Nil; // Review
-  end;
-
 end;
 end;
 
 
 class function TECAlgorithms.ImplSumOfMultiplies
 class function TECAlgorithms.ImplSumOfMultiplies
@@ -684,13 +663,6 @@ begin
   end;
   end;
 
 
   result := ImplSumOfMultiplies(negs, infos, wnafs);
   result := ImplSumOfMultiplies(negs, infos, wnafs);
-
-  for i := System.Low(infos) to System.High(infos) do
-  begin
-    infos[i].PreComp := Nil; // Review
-    infos[i].PreCompNeg := Nil; // Review
-  end;
-
 end;
 end;
 
 
 class function TECAlgorithms.ImplSumOfMultiplies
 class function TECAlgorithms.ImplSumOfMultiplies
@@ -1067,3 +1039,4 @@ begin
 end;
 end;
 
 
 end.
 end.
+