curve25519_donna_scalarmult_base.h 385 B

1234567891011
  1. /* Calculates nQ where Q is the x-coordinate of a point on the curve
  2. *
  3. * mypublic: the packed little endian x coordinate of the resulting curve point
  4. * n: a little endian, 32-byte number
  5. * basepoint: a packed little endian point of the curve
  6. */
  7. void curve25519_scalarmult_donna(
  8. curve25519_key mypublic,
  9. const curve25519_key n,
  10. const curve25519_key basepoint);