Recent

Author Topic: compiling turbo power lockbox on ubuntu 64  (Read 10280 times)

herux

  • Full Member
  • ***
  • Posts: 102
compiling turbo power lockbox on ubuntu 64
« on: July 26, 2011, 08:30:04 am »
Hi,
I use RSA encryption library lockbox turbo power.
in a windows environment I managed to compile and the apps working well, I use {$ mode delphi}.
but when I compile it on ubuntu 64bit, there is an error when compiling


component/LockBox/LbCipher.pas(708,10) Error: Unknown identifier "EBX"
component/LockBox/LbCipher.pas(708,10) Warning: No size specified and unable to determine the size of the operands, using DWORD as default
component/LockBox/LbCipher.pas(709,10) Error: Unknown identifier "EAX"
component/LockBox/LbCipher.pas(709,10) Warning: No size specified and unable to determine the size of the operands, using DWORD as default
component/LockBox/LbCipher.pas(710,13) Error: Unknown identifier "EAX"
component/LockBox/LbCipher.pas(710,15) Error: Assembler syntax error in operand
component/LockBox/LbCipher.pas(710,19) Error: Unknown identifier "EAX"
component/LockBox/LbCipher.pas(710,19) Error: Assembler syntax error in operand
component/LockBox/LbCipher.pas(711,12) Error: Unknown identifier "BH"
component/LockBox/LbCipher.pas(711,14) Error: Unknown identifier "AL"
component/LockBox/LbCipher.pas(712,12) Error: Unknown identifier "BL"
component/LockBox/LbCipher.pas(712,14) Error: Unknown identifier "AH"
component/LockBox/LbCipher.pas(713,13) Error: Unknown identifier "EBX"
so on ...

asm delphi like code doesn't compiled right ? but why on windows compiled ?

update:

I am trying to cross compile it in windows, for linux x86_64, and produces the same error.
whether the asm code is not supported for 64bit?
« Last Edit: July 26, 2011, 08:43:22 am by herux »

herux

  • Full Member
  • ***
  • Posts: 102
Re: compiling turbo power lockbox on ubuntu 64
« Reply #1 on: July 26, 2011, 08:49:22 am »
i found this docs http://www.freepascal.org/docs-html/ref/refse55.html
http://www.freepascal.org/docs-html/prog/progch3.html#x127-1280003

I'll read it first, if anyone can explain it better, please info

jarto

  • Full Member
  • ***
  • Posts: 106
Re: compiling turbo power lockbox on ubuntu 64
« Reply #2 on: January 26, 2013, 10:44:38 am »
Let me resurrect this old topic.

After looking around for another library that supports RSA, I had to conclude, that there are not many options to choose from. LockBox3 is a complete rewrite and it's so heavily married to Delphi and Windows, that it'd be a total nightmare to get it to compile on Linux and/or FPC.

LockBox2 compiles and works nicely on both Kylix and 32 bit FPC. But it contains some libc-bindings and ASM-code, that prevents it from being compiled on 64 bit FPC.

I've rewritten the ASM code as pascal and removed the libc-bindings and have a version of LockBox2, that does compile and run on:

Lazarus/FPC Windows 32 bit
Lazarus/FPC Windows 64 bit
Lazarus/FPC Linux 32 bit
Lazarus/FPC Linux 64 bit
Delphi (at least 2007, but probably even newer versions)

And then to the question: Does anyone know, who maintains LockBox2? The sourceforge site has pretty much abandoned it and concentrates on LockBox3. I'd like to discuss my changes with the maintaner and contribute them instead of making a new fork.

jarto

  • Full Member
  • ***
  • Posts: 106
Re: compiling turbo power lockbox on ubuntu 64
« Reply #3 on: January 27, 2013, 11:25:31 am »
Answering my own question: Sebastian Zierer is maintaining LockBox2 for Delphi and we are cooperating and improving it. We'll probably soon release a version, which supports:

FPC Windows 32
FPC Windows 64
FPC Linux 32
FPC Linux 64
Delphi 32 bit
Delphi 64 bit
Delphi Mac

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: compiling turbo power lockbox on ubuntu 64
« Reply #4 on: January 27, 2013, 11:37:16 am »
Great news, thanks, Jarto!
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

jarto

  • Full Member
  • ***
  • Posts: 106
Re: compiling turbo power lockbox on ubuntu 64
« Reply #5 on: February 10, 2013, 01:46:12 pm »
I haven't heard from Sebastian in a long time, so I decided to set up a github account and push all my changes there. So here's a version of LockBox2, which also compiles on 64 bit FPC.

https://github.com/jarto/lockbox2

Any contributions and comments are welcome.

 

TinyPortal © 2005-2018