SHA256
1
0
forked from pool/libff

Accepting request 869577 from home:etamPL:branches:network:cryptocurrencies

- update to 1.0.0
  * no upstream changelog
- refreshed patches

OBS-URL: https://build.opensuse.org/request/show/869577
OBS-URL: https://build.opensuse.org/package/show/network:cryptocurrencies/libff?expand=0&rev=2
This commit is contained in:
Martin Pluskal 2021-02-05 06:54:29 +00:00 committed by Git OBS Bridge
parent f6964937cf
commit 6940042683
8 changed files with 99 additions and 86 deletions

View File

@ -7,10 +7,10 @@ Subject: disable BN128
BN128 uses internally bundled dependencies, which would require more work to
package properly.
Index: libff-0~git63/CMakeLists.txt
Index: libff-1.0.0/CMakeLists.txt
===================================================================
--- libff-0~git63.orig/CMakeLists.txt
+++ libff-0~git63/CMakeLists.txt
--- libff-1.0.0.orig/CMakeLists.txt
+++ libff-1.0.0/CMakeLists.txt
@@ -9,10 +9,10 @@ endif()
set(
@ -45,10 +45,10 @@ Index: libff-0~git63/CMakeLists.txt
- add_subdirectory(depends)
endif()
add_subdirectory(libff)
Index: libff-0~git63/libff/CMakeLists.txt
Index: libff-1.0.0/libff/CMakeLists.txt
===================================================================
--- libff-0~git63.orig/libff/CMakeLists.txt
+++ libff-0~git63/libff/CMakeLists.txt
--- libff-1.0.0.orig/libff/CMakeLists.txt
+++ libff-1.0.0/libff/CMakeLists.txt
@@ -1,25 +1,3 @@
-set(FF_EXTRASRCS)
-set(FF_EXTRALIBS)
@ -111,10 +111,10 @@ Index: libff-0~git63/libff/CMakeLists.txt
-
- add_dependencies(profile multiexp_profile)
endif()
Index: libff-0~git63/libff/algebra/curves/tests/test_bilinearity.cpp
Index: libff-1.0.0/libff/algebra/curves/tests/test_bilinearity.cpp
===================================================================
--- libff-0~git63.orig/libff/algebra/curves/tests/test_bilinearity.cpp
+++ libff-0~git63/libff/algebra/curves/tests/test_bilinearity.cpp
--- libff-1.0.0.orig/libff/algebra/curves/tests/test_bilinearity.cpp
+++ libff-1.0.0/libff/algebra/curves/tests/test_bilinearity.cpp
@@ -6,9 +6,6 @@
*****************************************************************************/
#include <libff/algebra/curves/edwards/edwards_pp.hpp>
@ -125,7 +125,7 @@ Index: libff-0~git63/libff/algebra/curves/tests/test_bilinearity.cpp
#include <libff/algebra/curves/alt_bn128/alt_bn128_pp.hpp>
#include <libff/algebra/curves/mnt/mnt4/mnt4_pp.hpp>
#include <libff/algebra/curves/mnt/mnt6/mnt6_pp.hpp>
@@ -127,10 +124,4 @@ int main(void)
@@ -128,12 +125,6 @@ int main(void)
alt_bn128_pp::init_public_params();
pairing_test<alt_bn128_pp>();
double_miller_loop_test<alt_bn128_pp>();
@ -136,10 +136,12 @@ Index: libff-0~git63/libff/algebra/curves/tests/test_bilinearity.cpp
- double_miller_loop_test<bn128_pp>();
-#endif
}
Index: libff-0~git63/libff/algebra/curves/tests/test_groups.cpp
#else // NDEBUG
Index: libff-1.0.0/libff/algebra/curves/tests/test_groups.cpp
===================================================================
--- libff-0~git63.orig/libff/algebra/curves/tests/test_groups.cpp
+++ libff-0~git63/libff/algebra/curves/tests/test_groups.cpp
--- libff-1.0.0.orig/libff/algebra/curves/tests/test_groups.cpp
+++ libff-1.0.0/libff/algebra/curves/tests/test_groups.cpp
@@ -8,9 +8,6 @@
#include <libff/algebra/curves/mnt/mnt4/mnt4_pp.hpp>
#include <libff/algebra/curves/mnt/mnt6/mnt6_pp.hpp>
@ -150,7 +152,7 @@ Index: libff-0~git63/libff/algebra/curves/tests/test_groups.cpp
#include <sstream>
#include <libff/algebra/curves/alt_bn128/alt_bn128_pp.hpp>
@@ -165,12 +162,4 @@ int main(void)
@@ -166,14 +163,6 @@ int main(void)
test_group<G2<alt_bn128_pp> >();
test_output<G2<alt_bn128_pp> >();
test_mul_by_q<G2<alt_bn128_pp> >();
@ -163,10 +165,12 @@ Index: libff-0~git63/libff/algebra/curves/tests/test_groups.cpp
- test_output<G2<bn128_pp> >();
-#endif
}
Index: libff-0~git63/libff/algebra/fields/tests/test_fields.cpp
#else // NDEBUG
Index: libff-1.0.0/libff/algebra/fields/tests/test_fields.cpp
===================================================================
--- libff-0~git63.orig/libff/algebra/fields/tests/test_fields.cpp
+++ libff-0~git63/libff/algebra/fields/tests/test_fields.cpp
--- libff-1.0.0.orig/libff/algebra/fields/tests/test_fields.cpp
+++ libff-1.0.0/libff/algebra/fields/tests/test_fields.cpp
@@ -8,9 +8,6 @@
#include <libff/algebra/curves/mnt/mnt4/mnt4_pp.hpp>
#include <libff/algebra/curves/mnt/mnt6/mnt6_pp.hpp>
@ -177,7 +181,7 @@ Index: libff-0~git63/libff/algebra/fields/tests/test_fields.cpp
#include <libff/algebra/curves/alt_bn128/alt_bn128_pp.hpp>
#include <libff/algebra/fields/fp12_2over3over2.hpp>
#include <libff/algebra/fields/fp6_3over2.hpp>
@@ -236,10 +233,4 @@ int main(void)
@@ -237,12 +234,6 @@ int main()
test_field<alt_bn128_Fq6>();
test_Frobenius<alt_bn128_Fq6>();
test_all_fields<alt_bn128_pp>();
@ -188,10 +192,12 @@ Index: libff-0~git63/libff/algebra/fields/tests/test_fields.cpp
- test_field<Fq<bn128_pp> >();
-#endif
}
Index: libff-0~git63/libff/common/default_types/ec_pp.hpp
#else // NDEBUG
Index: libff-1.0.0/libff/common/default_types/ec_pp.hpp
===================================================================
--- libff-0~git63.orig/libff/common/default_types/ec_pp.hpp
+++ libff-0~git63/libff/common/default_types/ec_pp.hpp
--- libff-1.0.0.orig/libff/common/default_types/ec_pp.hpp
+++ libff-1.0.0/libff/common/default_types/ec_pp.hpp
@@ -23,14 +23,6 @@ typedef alt_bn128_pp default_ec_pp;
} // libff
#endif

View File

@ -3,10 +3,10 @@ Date: 2019-02-12 20:48:31
Upstream: no
Subject: build as shared library
Index: libff-0~git63/libff/CMakeLists.txt
Index: libff-1.0.0/libff/CMakeLists.txt
===================================================================
--- libff-0~git63.orig/libff/CMakeLists.txt
+++ libff-0~git63/libff/CMakeLists.txt
--- libff-1.0.0.orig/libff/CMakeLists.txt
+++ libff-1.0.0/libff/CMakeLists.txt
@@ -1,6 +1,6 @@
add_library(
ff

View File

@ -4,10 +4,10 @@ Upstream: yes
References: https://github.com/scipr-lab/libff/issues/21
Subject: add a configuration header
Index: libff-0~git63/CMakeLists.txt
Index: libff-1.0.0/CMakeLists.txt
===================================================================
--- libff-0~git63.orig/CMakeLists.txt
+++ libff-0~git63/CMakeLists.txt
--- libff-1.0.0.orig/CMakeLists.txt
+++ libff-1.0.0/CMakeLists.txt
@@ -124,13 +124,14 @@ if("${WITH_PROCPS}")
libprocps
)
@ -32,10 +32,10 @@ Index: libff-0~git63/CMakeLists.txt
add_definitions(-DNO_PT_COMPRESSION=1)
endif()
Index: libff-0~git63/libff/CMakeLists.txt
Index: libff-1.0.0/libff/CMakeLists.txt
===================================================================
--- libff-0~git63.orig/libff/CMakeLists.txt
+++ libff-0~git63/libff/CMakeLists.txt
--- libff-1.0.0.orig/libff/CMakeLists.txt
+++ libff-1.0.0/libff/CMakeLists.txt
@@ -1,3 +1,5 @@
+configure_file(config.hpp.in config.hpp)
+
@ -61,10 +61,10 @@ Index: libff-0~git63/libff/CMakeLists.txt
TARGETS ff DESTINATION lib${LIB_SUFFIX}
)
Index: libff-0~git63/libff/config.hpp.in
Index: libff-1.0.0/libff/config.hpp.in
===================================================================
--- /dev/null
+++ libff-0~git63/libff/config.hpp.in
+++ libff-1.0.0/libff/config.hpp.in
@@ -0,0 +1,22 @@
+#ifndef LIBFF_CONFIG_HPP_
+#define LIBFF_CONFIG_HPP_
@ -88,10 +88,10 @@ Index: libff-0~git63/libff/config.hpp.in
+#cmakedefine USE_ASM
+
+#endif // LIBFF_CONFIG_HPP_
Index: libff-0~git63/libff/common/default_types/ec_pp.hpp
Index: libff-1.0.0/libff/common/default_types/ec_pp.hpp
===================================================================
--- libff-0~git63.orig/libff/common/default_types/ec_pp.hpp
+++ libff-0~git63/libff/common/default_types/ec_pp.hpp
--- libff-1.0.0.orig/libff/common/default_types/ec_pp.hpp
+++ libff-1.0.0/libff/common/default_types/ec_pp.hpp
@@ -13,9 +13,11 @@
#ifndef EC_PP_HPP_
#define EC_PP_HPP_
@ -141,10 +141,10 @@ Index: libff-0~git63/libff/common/default_types/ec_pp.hpp
#endif
#endif // EC_PP_HPP_
Index: libff-0~git63/libff/algebra/curves/alt_bn128/alt_bn128_g1.hpp
Index: libff-1.0.0/libff/algebra/curves/alt_bn128/alt_bn128_g1.hpp
===================================================================
--- libff-0~git63.orig/libff/algebra/curves/alt_bn128/alt_bn128_g1.hpp
+++ libff-0~git63/libff/algebra/curves/alt_bn128/alt_bn128_g1.hpp
--- libff-1.0.0.orig/libff/algebra/curves/alt_bn128/alt_bn128_g1.hpp
+++ libff-1.0.0/libff/algebra/curves/alt_bn128/alt_bn128_g1.hpp
@@ -9,6 +9,7 @@
#define ALT_BN128_G1_HPP_
#include <vector>
@ -153,10 +153,10 @@ Index: libff-0~git63/libff/algebra/curves/alt_bn128/alt_bn128_g1.hpp
#include <libff/algebra/curves/alt_bn128/alt_bn128_init.hpp>
#include <libff/algebra/curves/curve_utils.hpp>
Index: libff-0~git63/libff/algebra/curves/alt_bn128/alt_bn128_g2.hpp
Index: libff-1.0.0/libff/algebra/curves/alt_bn128/alt_bn128_g2.hpp
===================================================================
--- libff-0~git63.orig/libff/algebra/curves/alt_bn128/alt_bn128_g2.hpp
+++ libff-0~git63/libff/algebra/curves/alt_bn128/alt_bn128_g2.hpp
--- libff-1.0.0.orig/libff/algebra/curves/alt_bn128/alt_bn128_g2.hpp
+++ libff-1.0.0/libff/algebra/curves/alt_bn128/alt_bn128_g2.hpp
@@ -9,6 +9,7 @@
#define ALT_BN128_G2_HPP_
#include <vector>
@ -165,10 +165,10 @@ Index: libff-0~git63/libff/algebra/curves/alt_bn128/alt_bn128_g2.hpp
#include <libff/algebra/curves/alt_bn128/alt_bn128_init.hpp>
#include <libff/algebra/curves/curve_utils.hpp>
Index: libff-0~git63/libff/algebra/curves/edwards/edwards_g1.hpp
Index: libff-1.0.0/libff/algebra/curves/edwards/edwards_g1.hpp
===================================================================
--- libff-0~git63.orig/libff/algebra/curves/edwards/edwards_g1.hpp
+++ libff-0~git63/libff/algebra/curves/edwards/edwards_g1.hpp
--- libff-1.0.0.orig/libff/algebra/curves/edwards/edwards_g1.hpp
+++ libff-1.0.0/libff/algebra/curves/edwards/edwards_g1.hpp
@@ -9,6 +9,7 @@
#define EDWARDS_G1_HPP_
#include <vector>
@ -177,10 +177,10 @@ Index: libff-0~git63/libff/algebra/curves/edwards/edwards_g1.hpp
#include <libff/algebra/curves/curve_utils.hpp>
#include <libff/algebra/curves/edwards/edwards_init.hpp>
Index: libff-0~git63/libff/algebra/curves/edwards/edwards_g2.hpp
Index: libff-1.0.0/libff/algebra/curves/edwards/edwards_g2.hpp
===================================================================
--- libff-0~git63.orig/libff/algebra/curves/edwards/edwards_g2.hpp
+++ libff-0~git63/libff/algebra/curves/edwards/edwards_g2.hpp
--- libff-1.0.0.orig/libff/algebra/curves/edwards/edwards_g2.hpp
+++ libff-1.0.0/libff/algebra/curves/edwards/edwards_g2.hpp
@@ -10,6 +10,7 @@
#include <iostream>
#include <vector>
@ -189,10 +189,10 @@ Index: libff-0~git63/libff/algebra/curves/edwards/edwards_g2.hpp
#include <libff/algebra/curves/curve_utils.hpp>
#include <libff/algebra/curves/edwards/edwards_init.hpp>
Index: libff-0~git63/libff/algebra/curves/mnt/mnt4/mnt4_g1.hpp
Index: libff-1.0.0/libff/algebra/curves/mnt/mnt4/mnt4_g1.hpp
===================================================================
--- libff-0~git63.orig/libff/algebra/curves/mnt/mnt4/mnt4_g1.hpp
+++ libff-0~git63/libff/algebra/curves/mnt/mnt4/mnt4_g1.hpp
--- libff-1.0.0.orig/libff/algebra/curves/mnt/mnt4/mnt4_g1.hpp
+++ libff-1.0.0/libff/algebra/curves/mnt/mnt4/mnt4_g1.hpp
@@ -14,6 +14,7 @@
#include <vector>
@ -201,10 +201,10 @@ Index: libff-0~git63/libff/algebra/curves/mnt/mnt4/mnt4_g1.hpp
#include <libff/algebra/curves/curve_utils.hpp>
#include <libff/algebra/curves/mnt/mnt4/mnt4_init.hpp>
Index: libff-0~git63/libff/algebra/curves/mnt/mnt4/mnt4_g2.hpp
Index: libff-1.0.0/libff/algebra/curves/mnt/mnt4/mnt4_g2.hpp
===================================================================
--- libff-0~git63.orig/libff/algebra/curves/mnt/mnt4/mnt4_g2.hpp
+++ libff-0~git63/libff/algebra/curves/mnt/mnt4/mnt4_g2.hpp
--- libff-1.0.0.orig/libff/algebra/curves/mnt/mnt4/mnt4_g2.hpp
+++ libff-1.0.0/libff/algebra/curves/mnt/mnt4/mnt4_g2.hpp
@@ -14,6 +14,7 @@
#include <vector>
@ -213,10 +213,10 @@ Index: libff-0~git63/libff/algebra/curves/mnt/mnt4/mnt4_g2.hpp
#include <libff/algebra/curves/curve_utils.hpp>
#include <libff/algebra/curves/mnt/mnt4/mnt4_init.hpp>
Index: libff-0~git63/libff/algebra/curves/mnt/mnt6/mnt6_g1.hpp
Index: libff-1.0.0/libff/algebra/curves/mnt/mnt6/mnt6_g1.hpp
===================================================================
--- libff-0~git63.orig/libff/algebra/curves/mnt/mnt6/mnt6_g1.hpp
+++ libff-0~git63/libff/algebra/curves/mnt/mnt6/mnt6_g1.hpp
--- libff-1.0.0.orig/libff/algebra/curves/mnt/mnt6/mnt6_g1.hpp
+++ libff-1.0.0/libff/algebra/curves/mnt/mnt6/mnt6_g1.hpp
@@ -14,6 +14,7 @@
#include <vector>
@ -225,10 +225,10 @@ Index: libff-0~git63/libff/algebra/curves/mnt/mnt6/mnt6_g1.hpp
#include <libff/algebra/curves/curve_utils.hpp>
#include <libff/algebra/curves/mnt/mnt6/mnt6_init.hpp>
Index: libff-0~git63/libff/algebra/curves/mnt/mnt6/mnt6_g2.hpp
Index: libff-1.0.0/libff/algebra/curves/mnt/mnt6/mnt6_g2.hpp
===================================================================
--- libff-0~git63.orig/libff/algebra/curves/mnt/mnt6/mnt6_g2.hpp
+++ libff-0~git63/libff/algebra/curves/mnt/mnt6/mnt6_g2.hpp
--- libff-1.0.0.orig/libff/algebra/curves/mnt/mnt6/mnt6_g2.hpp
+++ libff-1.0.0/libff/algebra/curves/mnt/mnt6/mnt6_g2.hpp
@@ -14,6 +14,7 @@
#include <vector>
@ -237,10 +237,10 @@ Index: libff-0~git63/libff/algebra/curves/mnt/mnt6/mnt6_g2.hpp
#include <libff/algebra/curves/curve_utils.hpp>
#include <libff/algebra/curves/mnt/mnt6/mnt6_init.hpp>
Index: libff-0~git63/libff/algebra/fields/fp2.tcc
Index: libff-1.0.0/libff/algebra/fields/fp2.tcc
===================================================================
--- libff-0~git63.orig/libff/algebra/fields/fp2.tcc
+++ libff-0~git63/libff/algebra/fields/fp2.tcc
--- libff-1.0.0.orig/libff/algebra/fields/fp2.tcc
+++ libff-1.0.0/libff/algebra/fields/fp2.tcc
@@ -10,6 +10,7 @@
#ifndef FP2_TCC_
#define FP2_TCC_
@ -249,10 +249,10 @@ Index: libff-0~git63/libff/algebra/fields/fp2.tcc
#include <libff/algebra/fields/field_utils.hpp>
namespace libff {
Index: libff-0~git63/libff/algebra/fields/fp3.tcc
Index: libff-1.0.0/libff/algebra/fields/fp3.tcc
===================================================================
--- libff-0~git63.orig/libff/algebra/fields/fp3.tcc
+++ libff-0~git63/libff/algebra/fields/fp3.tcc
--- libff-1.0.0.orig/libff/algebra/fields/fp3.tcc
+++ libff-1.0.0/libff/algebra/fields/fp3.tcc
@@ -10,6 +10,7 @@
#ifndef FP3_TCC_
#define FP3_TCC_
@ -261,10 +261,10 @@ Index: libff-0~git63/libff/algebra/fields/fp3.tcc
#include <libff/algebra/fields/field_utils.hpp>
namespace libff {
Index: libff-0~git63/libff/algebra/scalar_multiplication/multiexp.tcc
Index: libff-1.0.0/libff/algebra/scalar_multiplication/multiexp.tcc
===================================================================
--- libff-0~git63.orig/libff/algebra/scalar_multiplication/multiexp.tcc
+++ libff-0~git63/libff/algebra/scalar_multiplication/multiexp.tcc
--- libff-1.0.0.orig/libff/algebra/scalar_multiplication/multiexp.tcc
+++ libff-1.0.0/libff/algebra/scalar_multiplication/multiexp.tcc
@@ -18,6 +18,7 @@
#include <cassert>
#include <type_traits>
@ -273,10 +273,10 @@ Index: libff-0~git63/libff/algebra/scalar_multiplication/multiexp.tcc
#include <libff/algebra/fields/bigint.hpp>
#include <libff/algebra/fields/fp_aux.tcc>
#include <libff/algebra/scalar_multiplication/multiexp.hpp>
Index: libff-0~git63/libff/common/utils.hpp
Index: libff-1.0.0/libff/common/utils.hpp
===================================================================
--- libff-0~git63.orig/libff/common/utils.hpp
+++ libff-0~git63/libff/common/utils.hpp
--- libff-1.0.0.orig/libff/common/utils.hpp
+++ libff-1.0.0/libff/common/utils.hpp
@@ -16,6 +16,8 @@
#include <string>
#include <vector>
@ -286,10 +286,10 @@ Index: libff-0~git63/libff/common/utils.hpp
namespace libff {
typedef std::vector<bool> bit_vector;
Index: libff-0~git63/libff/algebra/fields/bigint.tcc
Index: libff-1.0.0/libff/algebra/fields/bigint.tcc
===================================================================
--- libff-0~git63.orig/libff/algebra/fields/bigint.tcc
+++ libff-0~git63/libff/algebra/fields/bigint.tcc
--- libff-1.0.0.orig/libff/algebra/fields/bigint.tcc
+++ libff-1.0.0/libff/algebra/fields/bigint.tcc
@@ -13,6 +13,8 @@
#include <cstring>
#include <random>
@ -299,10 +299,10 @@ Index: libff-0~git63/libff/algebra/fields/bigint.tcc
namespace libff {
template<mp_size_t n>
Index: libff-0~git63/libff/algebra/fields/fp.hpp
Index: libff-1.0.0/libff/algebra/fields/fp.hpp
===================================================================
--- libff-0~git63.orig/libff/algebra/fields/fp.hpp
+++ libff-0~git63/libff/algebra/fields/fp.hpp
--- libff-1.0.0.orig/libff/algebra/fields/fp.hpp
+++ libff-1.0.0/libff/algebra/fields/fp.hpp
@@ -10,6 +10,7 @@
#ifndef FP_HPP_
#define FP_HPP_
@ -311,10 +311,10 @@ Index: libff-0~git63/libff/algebra/fields/fp.hpp
#include <libff/algebra/exponentiation/exponentiation.hpp>
#include <libff/algebra/fields/bigint.hpp>
Index: libff-0~git63/libff/common/serialization.hpp
Index: libff-1.0.0/libff/common/serialization.hpp
===================================================================
--- libff-0~git63.orig/libff/common/serialization.hpp
+++ libff-0~git63/libff/common/serialization.hpp
--- libff-1.0.0.orig/libff/common/serialization.hpp
+++ libff-1.0.0/libff/common/serialization.hpp
@@ -18,6 +18,8 @@
#include <set>
#include <vector>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:323114b1e62ea3729c0916c149f606ceb86e517802577090a016e5e888dfa0e8
size 68264

3
libff-1.0.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:df555119aca4668417c9d7936db39cd22f078e6ee43585de87dc73d75391d57e
size 68488

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Oct 30 07:43:39 UTC 2020 - Adam Mizerski <adam@mizerski.pl>
- update to 1.0.0
* no upstream changelog
- refreshed patches
-------------------------------------------------------------------
Mon Jan 21 21:26:14 UTC 2019 - Adam Mizerski <adam@mizerski.pl>

View File

@ -17,7 +17,7 @@
Name: libff
Version: 0~git63
Version: 1.0.0
Release: 0
Summary: C++ library for Finite Fields and Elliptic Curves
License: MIT

View File

@ -4,8 +4,8 @@
git clone https://github.com/scipr-lab/libff.git
cd libff
# https://en.opensuse.org/openSUSE:Package_naming_guidelines#SCM_snapshots
version="0~git$(git rev-list master | wc -l)"
version="1.0.0"
git checkout "v${version}"
rm -rf .git*