Malte 0bdddc12e7 rand: Refactoring finished
now there are only 4 static functions left:
static mp_digit read_int_dev_random();
static mp_digit read_int_dev_urandom();
static mp_digit make_small_int(mp_digit random_int, int* sign);
static mp_digit make_big_int(mp_digit random_int, int* sign);
Every function is used twice.
the next goal to copy free code is to make a single function
with function pointer out of these 4:
pb_poly *ntru_get_urnd_poly_small(ntru_context *ctx);
pb_poly *ntru_get_rnd_poly_small(ntru_context *ctx);
pb_poly *ntru_get_urnd_poly_big(ntru_context *ctx);
pb_poly *ntru_get_rnd_poly_big(ntru_context *ctx);
But this need to be checkt by a other group member
2014-05-12 20:32:34 +02:00
2014-05-12 20:32:34 +02:00
2014-04-15 14:27:06 +02:00
2014-04-14 23:58:19 +02:00
2014-04-14 22:50:16 +02:00
2014-04-15 14:13:03 +02:00
Description
No description provided
4.9 MiB
Languages
C 94.3%
Makefile 3.8%
Objective-C 1.4%
Shell 0.5%