New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ep_curve_set_map() #295
Comments
Hi, Support to the SM2-P256 curve is not complete and may be buggy. I suggest picking another curve for your implementation and experiments. |
However, I encountered the same issue when I chose other curves. Could you please tell me if I missed any steps during the installation process? When using ep_param_set_any(), the displayed curve is NIST-P256, but no other curves can be used. |
I believe the latest commit on |
How do I use these curves? Do I need to add |
You cannot pass NIST-P192 because the library by default is built for 256-bit fields. You need to reconfigure+recompile for that. Yes, the presets configure the library correctly for many parameter sets. I will continue looking into the other error. |
I understand that I cannot use NIST-P192, but I still don't know how to use SM2-P256. I'm new to this area, so please forgive my ignorance. And by default, can 256-bit fields only use NIST-P256? |
I just tried the code below with the latest version and I saw no errors:
|
I'm sorry, I had pushed the fix to another branch. Not it's back on Can you please try again? |
Thank you very much, the SM2_P256 curve is usable. I also want to ask another question, when I call the BSI_P256 curve in the same way, an error occurs. The other P256 curves do not have an error and can be called normally.
|
BSI_P256 should be fixed now as well. |
I installed the library by running 'cmake ..; make;', but when using 'ep_param_set(SM2_P256)', I encountered an ERROR in ep_curve_set_map() at /home/yang/relic/relic-main/src/ep/relic_ep_curve.c, line 180: invalid value passed as input. CAUGHT in ep_curve_set_map() at /home/yang/relic/relic-main/src/ep/relic_ep_curve.c, line 185. CAUGHT in ep_param_set() at /home/yang/relic/relic-main/src/ep/relic_ep_param.c, line 1372.
The text was updated successfully, but these errors were encountered: