Comments (13)
I have installed the GMP library on Ubuntu 18.04 and then installed the relic library following the steps below.
cd relic-main
mkdir relic-target
cd relic-target
cmake ..
make
make install
I encountered the following issue while using relic.
my program calling the relic library is as follows.
Can you help me solve this problem?
from relic.
Hi,
Support to the SM2-P256 curve is not complete and may be buggy. I suggest picking another curve for your implementation and experiments.
from relic.
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.
from relic.
I believe the latest commit on HEAD
solves the issue for curve SM2_P256
. Can you please try to update, build the library+binaries and reopen the issue if it still persists?
from relic.
I want to use the curves in 'relic_ep.h', I modified my program, but it still has errors.
from relic.
How do I use these curves? Do I need to add ../presets/.sh ../
during the installation process?"
from relic.
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.
from relic.
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?
from relic.
I just tried the code below with the latest version and I saw no errors:
#include "relic.h"
int main() {
ep_t p;
core_init();
ep_param_set(NIST_P256);
ep_param_print();
ep_rand(p);
ep_print(p);
ep_param_set(SM2_P256);
ep_param_print();
ep_rand(p);
ep_print(p);
core_clean();
return 0;
}
from relic.
I downloaded the project again for configuration, ran your program, and encountered this error. Is it possibly due to the system?
from relic.
I'm sorry, I had pushed the fix to another branch. Not it's back on main
.
Can you please try again?
from relic.
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.
#include "relic.h"
int main() {
ep_t p;
core_init();
ep_param_set(BSI_P256);
ep_param_print();
ep_rand(p);
ep_print(p);
core_clean();
return 0;
}
from relic.
BSI_P256 should be fixed now as well.
from relic.
Related Issues (20)
- Want to use BN_254 curve HOT 1
- Build failure since recent commit HOT 1
- Compile failure on recent master HOT 4
- Compiling on M1 Mac HOT 1
- Compile Failue with x64-ecc-128 preset HOT 3
- cmake error the target not found HOT 2
- Homegaming HOT 1
- Leak the Secret Key of BBS Short Signature in Relic via Rowhammer HOT 4
- /demo/ers-etrs code running error HOT 3
- `bn_gcd_ext_binar` returns different Bezout coefficients HOT 2
- Problem while compiling HOT 12
- Error generating lib file HOT 2
- Alerts for errors HOT 4
- How to flexibly utilize bilinear mappings? HOT 29
- ERROR in bn_mod_basic(); HOT 2
- Error on sha256 HOT 6
- Dose it support SGX(Software Guard Extensions )? HOT 1
- Compatibility Inquiry: Bare Metal ARM Cortex-M0+ (Raspberry Pi Pico) with RELIC Library
- Solved compiling for android with Mac m1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from relic.