diff options
author | Jason Gross <jgross@mit.edu> | 2017-11-03 12:23:44 -0400 |
---|---|---|
committer | Jason Gross <jgross@mit.edu> | 2017-11-03 12:23:51 -0400 |
commit | 3023b36389d67185786cb2537dad161d9ff630d5 (patch) | |
tree | 2d421ba0a460a03c3a08c796b0f09c51b80b5fe4 | |
parent | b6a1834ee7790a03033598c8efdf4c8249898b88 (diff) |
Add a24_val, a24_hex compiler params
This is so that we pass a24 correctly to gmp{var,sec,xx}.
-rw-r--r-- | generate_parameters.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/generate_parameters.py b/generate_parameters.py index f9c021fa9..76b50e0f4 100644 --- a/generate_parameters.py +++ b/generate_parameters.py @@ -154,6 +154,8 @@ def get_extra_compiler_params(q, base, bitwidth, sz): 'modulus_bytes_val' : repr(str(modulus_bytes)), 'modulus_array' : repr('{%s}' % ','.join(reversed(list('0x%02x' % ((q_int >> 8*i)&0xff) for i in range(modulus_bytes))))), 'a_minus_two_over_four_array' : repr('{%s}' % ','.join(reversed(list('0x%02x' % ((a24 >> 8*i)&0xff) for i in range(modulus_bytes))))), + 'a24_val' : repr(str(a24)), + 'a24_hex' : repr(hex(a24)), 'limb_t' : 'uint%d_t' % bitwidth, 'modulus_limbs' : repr(str(sz)), 'limb_weight_gaps_array' : limb_widths |