Browse Source

recategorize a couple of todos and unbreak arch_ref64

master
Michael Hamburg 9 years ago
parent
commit
40cc1d24c7
3 changed files with 6 additions and 6 deletions
  1. +1
    -1
      src/decaf_fast.c
  2. +4
    -4
      src/p25519/arch_ref64/f_impl.c
  3. +1
    -1
      src/p448/arch_x86_64/x86-64-arith.h

+ 1
- 1
src/decaf_fast.c View File

@@ -1497,7 +1497,7 @@ void API_NS(scalar_cond_sel) (
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) (
uint8_t scaled[SER_BYTES],
const uint8_t base[SER_BYTES],


+ 4
- 4
src/p25519/arch_ref64/f_impl.c View File

@@ -79,15 +79,15 @@ gf_25519_mulw (
}

void
gf_25519_t qr (
gf_25519_sqr (
gf_25519_t __restrict__ cs,
const gf_25519_t as
) {
gf_25519_mul(cs,as,as); // TODO
gf_25519_mul(cs,as,as); // PERF
}

void
gf_25519_t trong_reduce (
gf_25519_strong_reduce (
gf_25519_t a
) {
uint64_t mask = (1ull<<51)-1;
@@ -128,7 +128,7 @@ gf_25519_t trong_reduce (
}

void
gf_25519_t erialize (
gf_25519_serialize (
uint8_t serial[32],
const struct gf_25519_t x
) {


+ 1
- 1
src/p448/arch_x86_64/x86-64-arith.h View File

@@ -7,7 +7,7 @@

#include <stdint.h>

/* TODO: non x86-64 versions of these.
/* FUTURE: non x86-64 versions of these.
* FUTURE: autogenerate
*/



Loading…
Cancel
Save