1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-09 17:39:04 +00:00
trezor-firmware/ed25519-donna/curve25519-donna-scalarmult-base.h
2017-08-14 00:08:48 +02:00

9 lines
372 B
C

/* Calculates nQ where Q is the x-coordinate of a point on the curve
*
* mypublic: the packed little endian x coordinate of the resulting curve point
* n: a little endian, 32-byte number
* basepoint: a packed little endian point of the curve
*/
void curve25519_scalarmult_donna(curve25519_key mypublic, const curve25519_key n, const curve25519_key basepoint);