Browse Source

add proper Copy method for TBigNum when using CryptoLib

Ugochukwu Mmaduekwe 6 years ago
parent
commit
3143983786
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/UCrypto.pas

+ 1 - 1
src/core/UCrypto.pas

@@ -828,7 +828,7 @@ begin
   {$IFDEF Use_OpenSSL}
   {$IFDEF Use_OpenSSL}
   BN_copy(Result.FBN,FBN);
   BN_copy(Result.FBN,FBN);
   {$ELSE}
   {$ELSE}
-  Result.FBigInteger := FBigInteger; // Make a copy
+  Result.FBigInteger := FBigInteger.Clone();
   {$ENDIF}
   {$ENDIF}
 end;
 end;