Frank wrote:
I'm sorry you are correct. I thought I had this right but I'm not comming
up with the right key on each side.  if I want to multiply a pt and an
integer is this The way i woudl do it?

EC_POINT_mul(group, resultingPt, &(group->order), thePtToMulti,
theIntegerToMulti, ctx);

No, EC_POINT_mul(group, P, n, Q, m, ctx) calculates P = n * G + m *Q, where G is the generator of the group => if you want to multiply the generator with n and store the result in P then you must call: EC_POINT_mul(group, P, n, NULL, NULL, ctx) If you want to multiply an arbitrary point Q (i.e. not the generator) with a integer n call: EC_POINT_mul(group, P, NULL, Q, n, ctx)

Nils

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to