This is an automated email from the ASF dual-hosted git repository.
sandreoli pushed a commit to branch issue51
in repository https://gitbox.apache.org/repos/asf/incubator-milagro-crypto-c.git
The following commit(s) were added to refs/heads/issue51 by this push:
new 796fdb0 add big consistency tests for all paillier ff levels
796fdb0 is described below
commit 796fdb0c0892165204bd518f1da06b9522fa84af
Author: samuele-andreoli <[email protected]>
AuthorDate: Mon Dec 9 09:43:02 2019 +0000
add big consistency tests for all paillier ff levels
---
test/CMakeLists.txt | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 28f96a5..5c13d80 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -272,8 +272,14 @@ endif()
if(BUILD_PAILLIER)
set(deps "amcl_core;amcl_paillier")
- amcl_rsa_test(2048 test_ff_consistency_2048 test_ff_consistency_WWW.c.in
"${deps}" "SUCCESS")
- amcl_rsa_test(4096 test_ff_consistency_4096 test_ff_consistency_WWW.c.in
"${deps}" "SUCCESS")
+ foreach(level 2048 4096)
+ amcl_rsa_field(BD "${level}")
+ amcl_rsa_field(TFF "${level}")
+
+ amcl_rsa_test(${level} test_big_arithmetics_${BD}
test_big_arithmetics_XXX.c.in "${deps}" "SUCCESS" "big/test_vector_big.txt")
+ amcl_rsa_test(${level} test_big_consistency_${BD}
test_big_consistency_XXX.c.in "${deps}" "SUCCESS")
+ amcl_rsa_test(${level} test_ff_consistency_${TFF}
test_ff_consistency_WWW.c.in "${deps}" "SUCCESS")
+ endforeach()
amcl_test(test_paillier_consistency test_paillier_consistency.c "${deps}"
"SUCCESS")
amcl_test(test_paillier_decrypt test_paillier_decrypt.c "${deps}" "SUCCESS"
"paillier/decrypt.txt")