Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

ECC Key Generation Linux

 Post Reply Post Reply
Author
Schumann Michael View Drop Down
Member
Member
Avatar

Joined: 26 Sep 2015
Posts: 68
Post Options Post Options   Quote Schumann Michael Quote  Post ReplyReply Direct Link To This Post Topic: ECC Key Generation Linux
    Posted: 05 Feb 2019 at 9:12pm
Thanks for fixing everything this fast. 
Back to Top
Schumann Michael View Drop Down
Member
Member
Avatar

Joined: 26 Sep 2015
Posts: 68
Post Options Post Options   Quote Schumann Michael Quote  Post ReplyReply Direct Link To This Post Posted: 04 Feb 2019 at 1:41pm
If I can help by testing at least the ECC and AES parts, I just have to include it in my automated Unit Tests going across Ubuntu Server, Windows and OSX Mojave Machines on my Servers.
Back to Top
Schumann Michael View Drop Down
Member
Member
Avatar

Joined: 26 Sep 2015
Posts: 68
Post Options Post Options   Quote Schumann Michael Quote  Post ReplyReply Direct Link To This Post Posted: 04 Feb 2019 at 12:11pm
Thanks a lot. I love the TMS cryptography pack! Linux indeed involves a lot more effort in Delphi, I also experienced that in my development.

Best regards
Michael
Back to Top
Marion Candau View Drop Down
Member
Member
Avatar

Joined: 12 Aug 2016
Posts: 70
Post Options Post Options   Quote Marion Candau Quote  Post ReplyReply Direct Link To This Post Posted: 04 Feb 2019 at 11:32am
Hello,
Linux is a particular platform for us, because we cannot use PAnsiChar on it (as in Windows or MacOS) but it is a desktop platform so string index begins to 1 and not 0. That is why there could be more bugs than on other platforms.
I have fixed the bug, I will release a new version soon.
Best regards,
Marion
Back to Top
Schumann Michael View Drop Down
Member
Member
Avatar

Joined: 26 Sep 2015
Posts: 68
Post Options Post Options   Quote Schumann Michael Quote  Post ReplyReply Direct Link To This Post Posted: 02 Feb 2019 at 6:13pm
Hello Marion,

ECC may not be the problem any more but the update introduced a new problem. I have a big bunch of unit tests running on my foundation classes and they ran fine in Linux in the last version when I commented out the ECC stuff, WIndows and OSX are fine with everything. 

With Version 3.3.2.1 AES decryption has a Problem. I encrypt "Penner17" and get "enner17#0#0#0...." as a result using the same routines like before and only in Linux. 

Would you mind looking into that once more?

Best regards,

Michael

Back to Top
Schumann Michael View Drop Down
Member
Member
Avatar

Joined: 26 Sep 2015
Posts: 68
Post Options Post Options   Quote Schumann Michael Quote  Post ReplyReply Direct Link To This Post Posted: 01 Feb 2019 at 2:11pm
Hello Marion, 
yes, I use 3.3.2.1. 
Best regards
Michael
Back to Top
Marion Candau View Drop Down
Member
Member
Avatar

Joined: 12 Aug 2016
Posts: 70
Post Options Post Options   Quote Marion Candau Quote  Post ReplyReply Direct Link To This Post Posted: 01 Feb 2019 at 10:03am
Do you have the 3.3.2.1 version of TMS Cryptography Pack?
Marion
Back to Top
Marion Candau View Drop Down
Member
Member
Avatar

Joined: 12 Aug 2016
Posts: 70
Post Options Post Options   Quote Marion Candau Quote  Post ReplyReply Direct Link To This Post Posted: 01 Feb 2019 at 9:21am
Hi,
I have just tested on Ubuntu 64-bit server 16.04 and it works on it. In the latest version, I have just changed the libTMSCPlib.a file in libLinux folder. Maybe there was an issue with the update of this file!?
I will check that.
Best regards,
Marion
Back to Top
Schumann Michael View Drop Down
Member
Member
Avatar

Joined: 26 Sep 2015
Posts: 68
Post Options Post Options   Quote Schumann Michael Quote  Post ReplyReply Direct Link To This Post Posted: 31 Jan 2019 at 8:32pm
Hi, I installed the latest version (as of 24.1.) but unfortunately key generation still hangs run on the latest ubuntu server 64bit. Would you mind looking into it once more?
Back to Top
Schumann Michael View Drop Down
Member
Member
Avatar

Joined: 26 Sep 2015
Posts: 68
Post Options Post Options   Quote Schumann Michael Quote  Post ReplyReply Direct Link To This Post Posted: 21 Jan 2019 at 4:03pm
Thanks, you guys are awsome!
Back to Top
Marion Candau View Drop Down
Member
Member
Avatar

Joined: 12 Aug 2016
Posts: 70
Post Options Post Options   Quote Marion Candau Quote  Post ReplyReply Direct Link To This Post Posted: 21 Jan 2019 at 2:54pm
Hi,
The problem is that RandomBuffer in Linux is waiting for entropy to run because it calls /dev/random. I will change that to /dev/urandom to not being blocked. I will release a new version in the next days.
Best regards,
Marion
Back to Top
Schumann Michael View Drop Down
Member
Member
Avatar

Joined: 26 Sep 2015
Posts: 68
Post Options Post Options   Quote Schumann Michael Quote  Post ReplyReply Direct Link To This Post Posted: 20 Jan 2019 at 11:11pm
Hello,

This code beglow works in OSX and WIndows perfectly, it hangs infinitively when run in Linux. Can you help, please? Thanks in advance!

Michael

var
  ecc: TEccEncSign;
begin
  ecc := TEccEncSign.create(nil);
  try
    ecc.eccType := cc25519;
    ecc.outputFormat := base64;
    ecc.GenerateKeys;
    pubkey := ecc.PublicKey;
    privkey := ecc.privatekey;
  finally
    ecc.Free;
  end;


Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down