Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Algorithmen, Datenstrukturen und Klassendesign (https://www.delphipraxis.net/78-algorithmen-datenstrukturen-und-klassendesign/)
-   -   Delphi Hagens "Delphi Encryption Compendium" für 64-Bit (https://www.delphipraxis.net/196467-hagens-delphi-encryption-compendium-fuer-64-bit.html)

Hobbycoder 23. Mai 2018 06:59

Hagens "Delphi Encryption Compendium" für 64-Bit
 
Hi,

wird Hagens Delphi Encryption Compendium noch weiterentwickelt? Bzw. hat das jemand so, dass es sich für eine 64-Bit-Windows-Application compilieren läßt? Die letzte mir bekannte Version ist die 5.2.

Ich bekomme in der CRC.pas ab Zeile 138 den Fehler: "Ungültige Kombination von Opcode und Operanden", und das danach folgend für alle PUSH und POP-Befehle.
Delphi-Quellcode:
function CRCSetup(var CRCDef: TCRCDef; Polynomial, Bits, InitVector,
  FinalVector: Cardinal; Inverse: LongBool): Boolean; register;
asm // initialize CRCDef according to the parameters, calculate the lookup table
       CMP  ECX,8
       JB   @@8
       PUSH EBX  //<---Hier tritt der Fehler auf
       PUSH EDI
Meine Assamblerkenntnisse sind seit dem 8086/Z80 auf nahezu 0 geschrumpft. Daher ist ein Debuggen für mich unmöglich. Vielleicht hat ja jemand auch einen Tipp, wie ich das für 64-Bit anpassen kann.

KodeZwerg 23. Mai 2018 07:22

AW: Hagens "Delphi Encryption Compendium" für 64-Bit
 
Hallo Hobbycoder,
ich habe es noch nicht getestet aber Beschreibung besagt das diese Version mit Delphi\64bit kompatibel ist.
DelphiEncryptionCompendium
Zitat:

The following environments have been tested:

Delphi XE2 Win32
Delphi 10.2 Win32 & Win64
FPC 2.6.4 Linux x86_64
FPC 3.1.1 Linux ARM
FPC 3.1.1 Win32
Delphi-Quellcode:
function CRCSetup(var CRCDef: TCRCDef; Polynomial, Bits, InitVector,
  FinalVector: Cardinal; Inverse: LongBool): Boolean; {$IFDEF UseASM86}register;{$ENDIF}
{$IFDEF UseASM86}
asm // initialize CRCDef according to the parameters, calculate the lookup table
       CMP  ECX,8
       JB   @@8
       PUSH EBX
       PUSH EDI
       PUSH ESI
       MOV  [EAX].TCRCDef.Polynomial,EDX
So fängt besagte Stelle da an.

Hobbycoder 23. Mai 2018 07:29

AW: Hagens "Delphi Encryption Compendium" für 64-Bit
 
You made my day ;-)

Hatte angenommen, das 5.2 = 5.2 ist. Hatte mir das bei winkelsdorf/DelphiEncryptionCompendium bei Github angeschaut.
Jetzt funzt es aber. Hab vielen Dank.

KodeZwerg 23. Mai 2018 07:32

AW: Hagens "Delphi Encryption Compendium" für 64-Bit
 
Winkelsdorf ist Delphi 2009 build, mein Link ist eigentlich für FreePascal, aber noch Delphi kompatibel.
Viel Spaß und gern geschehen ;)


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:05 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz