Skip to content

Commit

Permalink
Fix: Added variables that MSVC complained but with wrong values. I be…
Browse files Browse the repository at this point in the history
…t they aren`t used
  • Loading branch information
henriqueaklein committed Jan 10, 2025
1 parent d3e0d46 commit b1f31fc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/nil/crypto3/algebra/fields/curve25519/base_field.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ namespace nil {
#else
constexpr static const integral_type modulus =
0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed_cppui255;
constexpr static const integral_type group_order_minus_one_half =
0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed_cppui255;

typedef typename policy_type::modular_backend modular_backend;
constexpr static const modular_params_type modulus_params = modulus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ namespace nil {

constexpr static const integral_type modulus =
0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed_cppui253;
constexpr static const integral_type group_order_minus_one_half =
0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed_cppui253;

typedef typename policy_type::modular_backend modular_backend;
constexpr static const modular_params_type modulus_params = modulus;
Expand Down
3 changes: 3 additions & 0 deletions include/nil/crypto3/algebra/fields/pallas/base_field.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ namespace nil {
constexpr static const integral_type modulus =

0x40000000000000000000000000000000224698fc094cf91b992d30ed00000001_cppui255;
constexpr static const integral_type group_order_minus_one_half =

0x40000000000000000000000000000000224698fc094cf91b992d30ed00000001_cppui255;

typedef typename policy_type::modular_backend modular_backend;
constexpr static const modular_params_type modulus_params = modulus;
Expand Down
2 changes: 2 additions & 0 deletions include/nil/crypto3/algebra/fields/vesta/base_field.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ namespace nil {

constexpr static const integral_type modulus =
0x40000000000000000000000000000000224698fc0994a8dd8c46eb2100000001_cppui255;
constexpr static const integral_type group_order_minus_one_half =
0x40000000000000000000000000000000224698fc0994a8dd8c46eb2100000001_cppui255;

typedef typename policy_type::modular_backend modular_backend;
constexpr static const modular_params_type modulus_params = modulus;
Expand Down

0 comments on commit b1f31fc

Please sign in to comment.