EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Java KeyPairGenerator to Pascal

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
Posted: 06/22/2016 07:25:18
by Horvath Zoltan  (Basic support level)
Joined: 06/22/2016
Posts: 3


Please let me know how can I translate it from Java to Pascal!

//create random demonstration ECC keys
KeyPairGenerator kpg = KeyPairGenerator.getInstance("EC");
kpg.initialize(256); //256 bit ECDSA key

//create a key pair for the demo Certificate Authority
KeyPair caKeyPair = kpg.generateKeyPair();

//get references to private keys for the CA and the signing key
PrivateKey caKey = caKeyPair.getPrivate();

Greetings and thanks for your help.
Posted: 06/22/2016 08:02:28
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

You can use our TElECKeyMaterial class and its Generate method. Details: https://www.eldos.com/documentation/sb...erate.html

Code sample:

var Km: TElECKeyMaterial;
  Km := TElECKeyMaterial.Create;
  // then use Km instace with TElECDSAPublicKeyCrypto to sign data
Posted: 06/22/2016 09:09:52
by Horvath Zoltan  (Basic support level)
Joined: 06/22/2016
Posts: 3

Thanks for the quick reply, but throws an error in the code: Invalid elliptic curve domain parameters
Posted: 06/22/2016 09:19:08
by Vsevolod Ievgiienko (EldoS Corp.)

You should also choose a curve to use via TElECKeyMaterial.Curve property: https://www.eldos.com/documentation/sb...curve.html

Also I’ve noticed there is no Support Access Ticket linked to your user account on EldoS site. Technical Support is provided to customers with the linked Support Access Ticket. You will find your Support Access Ticket together with all the details about how to use it in the registration e-mail that we’ve sent to you upon the purchase.

If you are evaluating the product and don't have a license yet, please let us know and then you can have support according to Basic support level. Basic support level includes answering basic technical questions that appear during product evaluation period. We also offer Premium support for a purchase from https://www.eldos.com/support/calc.php . You can use Premium Support to get higher level of assistance during your evaluation of our products.
Posted: 06/22/2016 09:39:33
by Horvath Zoltan  (Basic support level)
Joined: 06/22/2016
Posts: 3

Thank you for your help, now I test it worth buying the product.
Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.



Topic viewed 534 times

Number of guests: 2, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!