Comments (9)
Hello,
The code required a config file:
ConfigFile cf(configFile);
What is the path you are passing to the function as configFile
?
from libscapi.
Hello, and thanks for answering.
I have the config file in the same folder as the cpp file. So, after compiling the cpp, I run the code with the command line:
./exe_oblivious_transfer 1 "test_oblivious_transfer_config.txt"
Since both files are in the same folder, I'm assuming that I can specify its path with only its name "test_oblivious_transfer_config.txt"
Let me check what happens if I specify all the path to it.
from libscapi.
Yes, the same error occurs when I specify the entire path to the config file.
from libscapi.
The error come from this line at your code:
auto dlog = make_shared<OpenSSLDlogECF2m>();
The error message comes from this line at libscapi, and does not related to your OT file.
When you are using this object, it relies that a file called: ../include/configFiles/NISTEC.txt
exists.
from libscapi.
Hmm, I've suspected also that because in the libscapi documentation, in the "Quickstart" tab, you have a sample code with the following line:
DlogGroup* dlog = new OpenSSLDlogECF2m("include/configFiles/NISTEC.txt", "K-233");
Where the path to the NISTEC file is specified. So should the error be fixed if I change the line that is giving an error as following?
auto dlog = make_shared<OpenSSLDlogECF2m>("path_to_NISTEC.txt", "K-233");
from libscapi.
Yes, it should work.
from libscapi.
Okay, so I've changed the error line to:
auto dlog = make_shared<OpenSSLDlogECF2m>("../../../../libscapi/include/configFiles/NISTEC.txt", "K-233");
The error about the const char* was solved indeed! Thanks!
However, now there is another issue showing in the console, which is:
terminate called after throwing an instance of 'std::invalid_argument'
what(): x, y values are not a point on this curve
This happens in the line: output.g0 = dlog->generateElement(false, point);
Is this error because of the "K-233" specified previously?
from libscapi.
I tried to run your code with K-163 and it works fine.
from libscapi.
Perfect! Works fine now!
Thank you for all the help you have provided.
from libscapi.
Related Issues (20)
- Cannot be installed on windows (missing libraries) HOT 2
- get error when following the Tutorials on https://biulibscapi.readthedocs.io/en/latest/quickstart.html HOT 6
- Cannot compile the code HOT 1
- Cannot build the examples HOT 12
- Cannot use DamgardJurik encryption HOT 1
- DamgardJurik Encryption Incorrect Results HOT 2
- Error using AND compositions for Sigma protocols
- libraries in lib does match makefile_lib command HOT 2
- How to implement basic primitives? HOT 5
- Error making libscapi (libOTe) HOT 4
- Error Building SemiHonestYao MPC-Benchmark with libscapi HOT 1
- How to generate circuit using C++? HOT 4
- Make examples error HOT 1
- Sometims, one test case failed. i.e., TrapdoorPermutation Case HOT 1
- Where is CommPartyTcpSslSynced defined?
- Get Segmentation Error when run ./libscapi_example.exe sigma 1 SigmaPrototocls/SigmaConfig.txt
- Unable to build libscapi HOT 1
- Cannot find the libscapi after successfully make
- Error while making the libscapi HOT 2
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 libscapi.