"test_ec" Failed For FP_PRIME=384

11 views
Skip to first unread message

Ismet Kaan CEKİS

unread,
Apr 20, 2024, 8:04:34 PMApr 20
to relic-discuss
Hi,

I am experiencing some issues with testing the elliptic curve (EC) module of the RELIC library. I installed the library with a specific configuration for the FP_PRIME and LABEL settings using CMake, followed by the make and install commands. Below are the steps I used for the installation:

cmake -DFP_PRIME=384 -DLABEL=me ../ \
&& make \
&& make install \

After installation, I attempted to run tests(make test) and encountered errors specifically with the test for the EC module. Here is a logs of the test execution and the errors:

12/19 Testing: test_ec
12/19 Test: test_ec
Command: ".../relic/relic-384/bin/test_ec"
Directory: .../relic/relic-384/test
"test_ec" start time: Apr 20 23:48 UTC
Output:
----------------------------------------------------------

-- Tests for the EC module:

ERROR in ep_curve_set_map() at .../relic/src/ep/relic_ep_curve.c,180: invalid value passed as input.
CAUGHT in ep_curve_set_map() at .../relic/src/ep/relic_ep_curve.c,185.
CAUGHT in me_ep_param_set() at .../relic/src/ep/relic_ep_param.c,1372.

-- Curve NIST-P384:

** Utilities:

Testing if memory can be allocated...                                         [1;32m[PASS]
[0mTesting if comparison is consistent...                                        
ERROR in me_bn_div_rem() at .../relic/src/bn/relic_bn_div.c,145: invalid value passed as input.
CAUGHT in me_bn_rand_mod() at .../relic/src/bn/relic_bn_util.c,227.
CAUGHT in me_ep_rand() at .../relic/src/ep/relic_ep_util.c,72.
FATAL ERROR!
<end of output>
Test time =   0.01 sec
----------------------------------------------------------
Test Failed.
"test_ec" end time: Apr 20 23:48 UTC
"test_ec" time elapsed: 00:00:00
----------------------------------------------------------

Could anyone please help diagnose the problem or provide guidance on how to address these errors? Any suggestions or recommendations would be greatly appreciated.

Thank you for your assistance!

Best regards,
Ismet Kaan Cekis

Reply all
Reply to author
Forward
0 new messages