relic-toolkit / relic

Code
Other
452 stars 179 forks source link

Want to use BN_254 curve #274

Closed anujamodi0107 closed 10 months ago

anujamodi0107 commented 11 months ago

Hello, I want to use the BN_254 curve in my project. However, I cannot figure out how to use it in C code. When I write these two lines, it gives me an error.

The line: ep_param_set(254); ep_param_print(); The error: invalid value passed as input. CAUGHT in ep_param_set()

Can anyone please tell me the correct way to use it?

Thanks.

dfaranha commented 10 months ago

You can use the preset x64-pbc-bn254.sh to configure everything for you. Hope it helps!