Android compilation

  I'm trying to use the cryptography pack on Android using Delphi Berlin.
  The blog (http://www.tmssoftware.com/site/blog.asp?post=352) says it works on Android, but the only documentation I found (http://www.tmssoftware.biz/Download/Manuals/TMSCryptographyPack.pdf) doesn't show how to.

  I open TMSCryptoPkgDXE10.dproj project change the Target platform to Android and it builds successfully, despite not finding where it writes the libTMSCryptoPkgDXE10.so

  When try to build the cryptoDemoFMX it gives me the error:
arm-linux-androideabi-ld.exe: error: cannot find -lCrypto

  So I got the file libcrytpto.a from https://github.com/emileb/OpenSSL-for-Android-Prebuilt/tree/master/openssl-1.0.2 and put it into the Descriptor, but it din't work too.

  After that I got de --libpath: argument from the dccaarm.exe command line (in the Output window) and copied the file into it. Still getting the same error.

  Changing the capital letter "C" to libCrytpto.a (althought compiling on Windows, it seems to be case sensitive) it finds de file, but now giving me another error:
MiscObj.o: in function Miscobj::CharToHexa(unsigned char*, int, unsigned char*):MiscObj(.text._ZN7Miscobj10CharToHexaEPhiS0_+0x4): error: undefined reference to 'CharToHexa'
MiscObj.o: in function Miscobj::HexaToChar(unsigned char*, unsigned char*):MiscObj(.text._ZN7Miscobj10HexaToCharEPhS0_+0x4): error: undefined reference to 'HexaToChar'
MiscObj.o: in function Miscobj::Base64ToChar(unsigned char*, unsigned char*):MiscObj(.text._ZN7Miscobj12Base64ToCharEPhS0_+0x4): error: undefined reference to 'Base64ToChar'
Miscobj::CharToBase64(unsigned char*, int, unsigned char*):MiscObj(.text._ZN7Miscobj12CharToBase64EPhiS0_+0x4): error: undefined reference to 'CharToBase64'
Miscobj::ErrorMessage(int, unsigned char*, int):MiscObj(.text._ZN7Miscobj12ErrorMessageEiPhi+0x4): error: undefined reference to 'ErrorMessage'
ESObj.o: in function Aesobj::AES_ECB_EncryptFile(unsigned char*, unsigned char*, unsigned char*, int):AESObj(.text._ZN6Aesobj19AES_ECB_EncryptFileEPhS0_S0_i+0x4): error: undefined reference to 'AES_ECB_EncryptFile'
[and so on...]

  It there some tip of how to get it working on Android?

Dear Emile,

libCrypto.a is included into TMS Cryptography Pack. You can find it in the Android folder.

To link it to your application, you can go to Project -> Options -> Delphi compiler and change the search path value to the Android folder path.

Best regards,
Marion Candau

I installed the version 1.2.0.1. I coudn't find the Android folder. It seams this folder wasn't created/copied.

This is my folter listing:
C:\Users\Public\Documents\tmssoftware\TMS Cryptography Pack>dir
 Volume in drive C has no label.
 Volume Serial Number is 0E47-DCC4

 Directory of C:\Users\Public\Documents\tmssoftware\TMS Cryptography Pack

08/29/2016  08:18 PM    <DIR>          .
08/29/2016  08:18 PM    <DIR>          ..
07/28/2016  09:05 AM           107,036 AESObj.pas
08/29/2016  06:58 PM    <DIR>          bpl
07/28/2016  09:05 AM             2,582 CryptBase.pas
08/29/2016  06:58 PM    <DIR>          Delphi101Berlin
08/29/2016  06:58 PM    <DIR>          Demo
08/29/2016  06:58 PM    <DIR>          Doc
07/28/2016  09:05 AM            41,696 ECCObj.pas
07/28/2016  09:05 AM            32,777 HashObj.pas
07/28/2016  09:23 AM            13,036 MiscObj.pas
01/10/2008  01:30 PM               222 movefiles.bat
08/29/2016  06:58 PM    <DIR>          OSX32
07/28/2016  09:05 AM            23,691 RSAObj.pas
07/28/2016  09:23 AM            13,356 SalsaObj.pas
02/01/2016  10:10 AM             3,620 single developer license.txt
02/01/2016  10:10 AM             3,640 site license.txt
07/28/2016  09:05 AM            88,540 SPECKObj.pas
07/19/2016  05:00 PM               814 TMSCryptoPkgD2011.dpk
07/22/2016  10:51 AM            28,128 TMSCryptoPkgDXE10.dpro
07/29/2016  05:09 PM                32 TMSCryptoPkgDXE10.res
07/22/2016  10:51 AM               896 TMSCryptoPkgDXE2.dpk
07/22/2016  10:51 AM             8,422 TMSCryptoPkgDXE2.dproj
07/22/2016  10:51 AM               448 TMSCryptoPkgDXE2.res
07/22/2016  10:51 AM               896 TMSCryptoPkgDXE3.dpk
07/22/2016  10:51 AM             9,619 TMSCryptoPkgDXE3.dproj
07/20/2016  10:39 AM                32 TMSCryptoPkgDXE3.res
07/22/2016  10:51 AM               896 TMSCryptoPkgDXE4.dpk
07/22/2016  10:51 AM             9,748 TMSCryptoPkgDXE4.dproj
07/19/2016  05:00 PM                32 TMSCryptoPkgDXE4.res
07/22/2016  10:51 AM               896 TMSCryptoPkgDXE5.dpk
07/22/2016  10:51 AM            10,062 TMSCryptoPkgDXE5.dproj
07/22/2016  10:51 AM                96 TMSCryptoPkgDXE5.res
07/22/2016  10:51 AM               897 TMSCryptoPkgDXE6.dpk
07/22/2016  10:51 AM            10,300 TMSCryptoPkgDXE6.dproj
07/22/2016  10:51 AM                96 TMSCryptoPkgDXE6.res
07/22/2016  10:51 AM               897 TMSCryptoPkgDXE7.dpk
07/22/2016  10:51 AM            11,037 TMSCryptoPkgDXE7.dproj
07/22/2016  10:51 AM                96 TMSCryptoPkgDXE7.res
07/22/2016  10:51 AM               897 TMSCryptoPkgDXE8.dpk
07/22/2016  10:51 AM            26,766 TMSCryptoPkgDXE8.dproj
07/20/2016  10:31 AM                96 TMSCryptoPkgDXE8.res
07/22/2016  10:51 AM               897 TMSCryptoPkgDXE9.dpk
07/22/2016  10:51 AM            27,483 TMSCryptoPkgDXE9.dpro
07/20/2016  10:31 AM                32 TMSCryptoPkgDXE9.res
07/19/2016  05:00 PM             9,424 tmsdefs.inc
07/19/2016  05:00 PM             9,424 tmsdefs_reg.inc
07/19/2016  05:00 PM             9,446 tmsdefs_trial.inc
07/19/2016  05:00 PM             1,169 trial.inc
08/29/2016  06:58 PM           717,803 unins000.dat
08/29/2016  06:56 PM           745,888 unins000.exe
08/29/2016  06:58 PM            10,562 unins000.msg
05/26/2016  10:44 AM            32,038 vcl.ico
08/29/2016  06:58 PM    <DIR>          Win32
08/29/2016  06:58 PM    <DIR>          Win64
              48 File(s)      2,022,847 bytes
               9 Dir(s)  191,823,392,768 bytes free

C:\Users\Public\Documents\tmssoftware\TMS Cryptography Pack>

This issue was fixed off-line and is now
available in version 1.3
Bruno Fierens2016-09-12 18:12:31