Coder Social home page Coder Social logo

Comments (9)

liorko87 avatar liorko87 commented on September 13, 2024

Hello,

The code required a config file:
ConfigFile cf(configFile);
What is the path you are passing to the function as configFile?

from libscapi.

andremmvgabriel avatar andremmvgabriel commented on September 13, 2024

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.

andremmvgabriel avatar andremmvgabriel commented on September 13, 2024

Yes, the same error occurs when I specify the entire path to the config file.

from libscapi.

liorko87 avatar liorko87 commented on September 13, 2024

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.

andremmvgabriel avatar andremmvgabriel commented on September 13, 2024

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.

liorko87 avatar liorko87 commented on September 13, 2024

Yes, it should work.

from libscapi.

andremmvgabriel avatar andremmvgabriel commented on September 13, 2024

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.

liorko87 avatar liorko87 commented on September 13, 2024

I tried to run your code with K-163 and it works fine.

from libscapi.

andremmvgabriel avatar andremmvgabriel commented on September 13, 2024

Perfect! Works fine now!

Thank you for all the help you have provided.

from libscapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.