Tuts 4 You

# Help with Implementing ECC in Delphi

## Recommended Posts

Well guys, I went back to school as I went through the certicom ecc theories.

Now, I wanna implement ECC, & I am having a lil problem.

I am using delphi, & FGInt.

I am using ECB as the parameter generator.

But the Point G (base point of the curve), is represented as X & Y coordinate.

I But in the ECDSA unit available, the G is a function parameter of TECPoint type.

I saw in Crypto++ there is a function to combine the X & Y coordinates into a Point.

Is there any delphi eqivalent of that ?

Would be glad if any 1 points me 2 the right direction

I don't know if this is of any use to you, but the following page has examples of different crypto implementations:

HR,

Ghandi

Thx man.. But I already have that

If ya download the ECDSA using for the given link, ya will see that the BASE Point G is a function parameter.

I am using ECB to generate my curve parameters, & the basepoint is represented as X & Y coordinate.

I am searcing for a way to encapsulate the two coordinates into a single point (the base point here).

as I remember, there is no function like that

there is only ecurve_init and ecc arithmetics

also you can use Miracl

there you can find epoint_set function.

as I remember, there is no function like that

there is only ecurve_init and ecc arithmetics

also you can use Miracl

there you can find epoint_set function.

Thats the problem..

I need ti implement it in delphi, and as for as I know Miracl doesn't work with delphi.

So, any suggestions, on how to use ECB to gen the curve params for use in delphi ?

uhm... you just need to initialize a record?

Edited by baguette

uhm... you just need to initialize a record?

As in ?

Suppose :

X = 664737823

Y = 372723849

Can ya give a small example ?

*edit*

Edited by KKR_WE_RULE