On Mon, Apr 8, 2019 at 11:58 AM Santiago A. <s...@ciberpiula.net> wrote:
> There is no simple solution for a complex problem. I don't think you will > find anything much more simpler. > Santiago, you should reconsider, the original poster asked for PublicKey/PrivateKey algorithm, in ECC.pas from XMLRAD hosted at SourceForge the unit is 1K line of pure pascal, this unit provide essential elements with 4 functions, it may give you ideas how simple it could be while providing ECDSA256 (secp256r1) which the de-facto high security standard as-of april 2019: function EccMakeKey(out PublicKey: TPublicKey; out PrivateKey: TPrivateKey): Boolean; function EcdhSharedSecret(const PublicKey: TPublicKey; const PrivateKey: TPrivateKey; out Secret: TEccSecretKey): Boolean; function EcdsaSign(const PrivateKey: TPrivateKey; const Hash: TEccHash; out Signature: TSignature): Boolean; function EcdsaVerify(const PublicKey: TPublicKey; const Hash: TEccHash; const Signature: TSignature): Boolean;
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal