| @@ -1497,7 +1497,7 @@ void API_NS(scalar_cond_sel) ( | |||||
| constant_time_select(out,b,a,sizeof(scalar_t),pick_b); | constant_time_select(out,b,a,sizeof(scalar_t),pick_b); | ||||
| } | } | ||||
| /* TODO: restore Curve25519 Montgomery ladder? */ | |||||
| /* FUTURE: restore Curve25519 Montgomery ladder? */ | |||||
| decaf_error_t API_NS(direct_scalarmul) ( | decaf_error_t API_NS(direct_scalarmul) ( | ||||
| uint8_t scaled[SER_BYTES], | uint8_t scaled[SER_BYTES], | ||||
| const uint8_t base[SER_BYTES], | const uint8_t base[SER_BYTES], | ||||
| @@ -79,15 +79,15 @@ gf_25519_mulw ( | |||||
| } | } | ||||
| void | void | ||||
| gf_25519_t qr ( | |||||
| gf_25519_sqr ( | |||||
| gf_25519_t __restrict__ cs, | gf_25519_t __restrict__ cs, | ||||
| const gf_25519_t as | const gf_25519_t as | ||||
| ) { | ) { | ||||
| gf_25519_mul(cs,as,as); // TODO | |||||
| gf_25519_mul(cs,as,as); // PERF | |||||
| } | } | ||||
| void | void | ||||
| gf_25519_t trong_reduce ( | |||||
| gf_25519_strong_reduce ( | |||||
| gf_25519_t a | gf_25519_t a | ||||
| ) { | ) { | ||||
| uint64_t mask = (1ull<<51)-1; | uint64_t mask = (1ull<<51)-1; | ||||
| @@ -128,7 +128,7 @@ gf_25519_t trong_reduce ( | |||||
| } | } | ||||
| void | void | ||||
| gf_25519_t erialize ( | |||||
| gf_25519_serialize ( | |||||
| uint8_t serial[32], | uint8_t serial[32], | ||||
| const struct gf_25519_t x | const struct gf_25519_t x | ||||
| ) { | ) { | ||||
| @@ -7,7 +7,7 @@ | |||||
| #include <stdint.h> | #include <stdint.h> | ||||
| /* TODO: non x86-64 versions of these. | |||||
| /* FUTURE: non x86-64 versions of these. | |||||
| * FUTURE: autogenerate | * FUTURE: autogenerate | ||||
| */ | */ | ||||