Unverified Commit 0e037ef3 authored by Sofia Celi's avatar Sofia Celi

Michael Hamburg commit: Add missing FIELD_LITERAL for RISTRETTO_FACTOR (only for ed448 on this lib)

parent 3dfea889
......@@ -49,9 +49,9 @@ static const scalar_t point_scalarmul_adjustment = {{{
const uint8_t decaf_x448_base_point[DECAF_X448_PUBLIC_BYTES] = { 0x05 };
#define RISTRETTO_FACTOR DECAF_448_RISTRETTO_FACTOR
const gf RISTRETTO_FACTOR = {{{
const gf RISTRETTO_FACTOR = {FIELD_LITERAL(
0x42ef0f45572736, 0x7bf6aa20ce5296, 0xf4fd6eded26033, 0x968c14ba839a66, 0xb8d54b64a2d780, 0x6aa0a1f1a7b8a5, 0x683bf68d722fa2, 0x22d962fbeb24f7
}}};
)};
#define TWISTED_D ((EDWARDS_D)-1)
......
......@@ -38,9 +38,9 @@ static const scalar_t point_scalarmul_adjustment = {{{
const uint8_t decaf_x448_base_point[DECAF_X448_PUBLIC_BYTES] = { $(ser(mont_base,8)) };
#define RISTRETTO_FACTOR $(C_NS)_RISTRETTO_FACTOR
const gf RISTRETTO_FACTOR = {{{
const gf RISTRETTO_FACTOR = {FIELD_LITERAL(
$(ser(msqrt(-d,modulus,hi_bit_clear=True),gf_lit_limb_bits))
}}};
)};
#define TWISTED_D ((EDWARDS_D)-1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment