exaexa / codecrypt

Post-quantum cryptography tool (THIS REPOSITORY IS ONLY A MIRROR OF THE MAIN ONE, PLEASE DO NOT FILE BUGS HERE)
https://gitea.blesmrt.net/exa/codecrypt
GNU Lesser General Public License v3.0
308 stars 40 forks source link

Key Generating #12

Closed Kushal08 closed 8 years ago

Kushal08 commented 8 years ago

Hey, I am using th is code on my 64 bit ubuntu system. This command ccr -g sig --name "John Deo" It does not showing anything.I waited for two but keys are not generated. It is not ending. Please help me in this issue.

exaexa commented 8 years ago

Can you install strace and post the output of

strace ccr -g sig --name 'xxx'

(be sure not to post anything secret, strace can reveal e.g. privkeys).

Also, is there completely no output, or just some debugging messages? Generating FMTSeq keys takes some time (make sure you're compiling with -O3, it makes quite a difference), but there should be at least a message saying "gathering random bits" or so.

Kushal08 commented 8 years ago

Sir, Thanks for replying. I ran the command that you said. The output is in the attached file. It stops again at the last line

On Wed, Jun 1, 2016 at 3:06 AM, Mirek Kratochvil notifications@github.com wrote:

Can you install strace and post the output of

strace ccr -g sig --name 'xxx'

(be sure not to post anything secret, strace can reveal e.g. privkeys).

Also, is there completely no output, or just some debugging messages? Generating FMTSeq keys takes some time, but there should be at least a message saying "gathering random bits" or so.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/exaexa/codecrypt/issues/12#issuecomment-222828715, or mute the thread https://github.com/notifications/unsubscribe/AKj50WEElS3ArUhki5oRTSArpW42RCuIks5qHKnSgaJpZM4Iq09F .

exaexa commented 8 years ago

Nothing attached, please retry.

Kushal08 commented 8 years ago

output.txt

exaexa commented 8 years ago

Hm, seems okay. Please wait a bit more, it takes around 1 minute on my laptop. Also, be sure to compile with ./configure CXXFLAGS=-O3. Because the cubehash function (that takes most of the keygen time) is in the compiled source, its speed is directly and very positively affected by the -O3 flag. If nothing happens with -O3 after ~5 minutes, let me know.

Kushal08 commented 8 years ago

screenshot from 2016-06-01 20-08-56 waited for more than 5 min but not showing any output.

exaexa commented 8 years ago

Seems you've forgotten to actually rebuild the source. Sorry for not being verbose enough. :]

So:

./configure CXXFLAGS=-O3
make clean
make

should produce a lot faster code.

Please reopen if the problem persists.