Closed jkhourybbn closed 2 years ago
@dfaranha I just tried building latest master demo/link-test and getting segmentation fault
demo/link-test
root@2a1d0152b60a:/relic-toolkit/demo/link-test# ./test -- Curve SS-P1536: 1B44E91AF9FC6E8A BF0D198AA67F3BF6 77E7838377EF67EB 3B1F97CDD590746F 2A4189A82AFF79A5 0273F55728C8B019 D9A1BD59B78F8EAF 2BED542A81857343 67876633DAC6C19C 9B7620AE8EF38BDF E5A938BC0F86CADC 08E761375E1E46E0 19FC7B5CA79C720A C9D1C30A04D403A3 D8D11A545D436AC0 A3C0DE44AD0A215F 2B5FDB5B13E8E841 762284D0F642FA4B 83352526F1CBFF3D 8956A6AA6E98DECE 01964603C592B9B7 59ECA0A2745E644D EC83518BF26E61C3 C068D1E63D38B63E 4CC82EDFE4925539 B0A345B23A7F33EF 4BF824401E3C1560 E45B14F53984A212 D1E2579AADA8B203 BDE0C47934BDD00A 2091D021C49259E9 F9A7CA5EF0C92C60 5732C65B959D999A 22945013D03036E3 9BE6AEEADF73F803 18B720504B1A640E 9316850A85AD7898 1C102C3513B07DCF 4F3981FE8F51C98F E88DF84EDEE24F52 2E1545E606FC4A41 4087122322161BF5 AD7F05EC5A13B1C8 9B5484FD2921577D 550ECF01AD9FF5D6 E2350958D34796FE 5D9A2A82331C1B7A 9DAED0D6BE91D8BF Is pairing symmetric? 1 Is pairing asymmetric? 0 Segmentation fault
I checked that function2 (type3) works if I comment out the call to function1 in test.c
function2
function1
test.c
root@2a1d0152b60a:/relic-toolkit/demo/link-test# gcc -o test test.c test2.o /usr/local/lib/librelic_s_*.a -lgmp root@2a1d0152b60a:/relic-toolkit/demo/link-test# ./test -- Curve B12-P381: 11408264E10E52C7 92B099E560A6470C 5FAE83C721D251C5 85E48A4836C51AF5 BE69607A0AF6C46E 26B8BED9448FC6CD 0BCA15AEC91CB997 B51C27C82768080B 7EA758CDBC254EF1 134F44E4BE5E9E76 C2F4A46A41743E9E 88453EE68B1E6851 09FCD528F85F9A8C 3ACE7049C542BE3E 8F224B5E8D2BB89B 39C8713E95B84063 E24394627101D129 0C34704C390F980F 1243517E02C33D37 1DEAD9F8F6EF509E A0D4DCDBAC8705BF BE5A5BCC8B26CE3E 470DB8B8F46E3E0E 1DD47EE9C4BEE89B 19EED9A237008918 DB8E2D968CCD2000 8AC14E6D6772A4BB C1CCAA6990D53664 F340E3BA8954BE4E FF79A08D3487C349 15D7CC8C59037062 610312A0C00B1CD0 CE5D3888468C78F8 8A0DA36BB3FA9EC4 D11D8099AED784DD 66939CDF5D641C65 06AA234F2488A21B 3B3652310BE5A0F0 1AEA8D1626ACF2E8 43B46A503C11FAFB D8D7EE9D5687FE86 0D4721A83EA93E29 150B25E5752F15D0 7589B9D4F852EBA4 2B54C1770DAC51C1 5BB6400F38BDFC7E DDE8FDC855E9E522 2C3156EDF72D7FEB 013565144891CBE3 0D784ECBDA87809D E5602B12EA14E9BE 841637802980089C 1AE0FA044A02C7BF C8E4F39B1F7805E7 0EC042FBAF2BCABF 7A7B31B47A38310F 45B2663E42A149D4 A212A01F832A25E6 EF660911566926FA 878FC12FCE669F4C 03EAAA3EF3EE1FB7 3C23DE90115C6C04 42A5FD864E004420 4AF6F69F1CF59D66 49362E413D7065FE 86472F493CFE2751 081DF9B324FAA1AC 101770EE23467105 0415F2A7CFCCC649 B7769F6A7BB9BDF4 6470DA306845CEEE D3188649CD9165C4 Is pairing symmetric? 0 Is pairing asymmetric? 1
Thoughts?
I had to add to update the header
diff --git a/include/relic_label.h b/include/relic_label.h index e9115163..806567f8 100644 --- a/include/relic_label.h +++ b/include/relic_label.h @@ -250,6 +250,7 @@ #undef bn_mxp_slide #undef bn_mxp_monty #undef bn_mxp_dig +#undef bn_mxp_crt #undef bn_srt #undef bn_gcd_basic #undef bn_gcd_lehme @@ -358,6 +359,7 @@ #define bn_mxp_slide RLC_PREFIX(bn_mxp_slide) #define bn_mxp_monty RLC_PREFIX(bn_mxp_monty) #define bn_mxp_dig RLC_PREFIX(bn_mxp_dig) +#define bn_mxp_crt RLC_PREFIX(bn_mxp_crt) #define bn_srt RLC_PREFIX(bn_srt) #define bn_gcd_basic RLC_PREFIX(bn_gcd_basic) #define bn_gcd_lehme RLC_PREFIX(bn_gcd_lehme)
within a docker
There was a lot of newer stuff from the library not handled correctly for LABEL. It should be fixed now
Thanks!
@dfaranha I just tried building latest master
demo/link-test
and getting segmentation faultI checked that
function2
(type3) works if I comment out the call tofunction1
intest.c
Thoughts?
I had to add to update the header
within a docker