Browse Source

actually elligator only almost works because of r=1 being weird. round-trip doesnt work

master
Michael Hamburg 9 years ago
parent
commit
371192bfa0
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/decaf_fast.c

+ 3
- 0
src/decaf_fast.c View File

@@ -866,6 +866,7 @@ siv constant_time_lookup_xx (
decaf_word_t n_table, decaf_word_t n_table,
decaf_word_t idx decaf_word_t idx
) { ) {
/*
big_register_t big_one = br_set_to_mask(1), big_i = br_set_to_mask(idx); big_register_t big_one = br_set_to_mask(1), big_i = br_set_to_mask(idx);
big_register_t *out = (big_register_t *)out_; big_register_t *out = (big_register_t *)out_;
const unsigned char *table = (const unsigned char *)table_; const unsigned char *table = (const unsigned char *)table_;
@@ -881,6 +882,8 @@ siv constant_time_lookup_xx (
out[k] |= br_mask & *(const big_register_t*)(&table[k*sizeof(big_register_t)+j*elem_bytes]); out[k] |= br_mask & *(const big_register_t*)(&table[k*sizeof(big_register_t)+j*elem_bytes]);
} }
} }
*/
constant_time_lookup(out_,table_,elem_bytes,n_table,idx);
} }


snv prepare_fixed_window( snv prepare_fixed_window(


Loading…
Cancel
Save