myungsu / gnupg-ecc

Automatically exported from code.google.com/p/gnupg-ecc
0 stars 0 forks source link

Not generating keys with libgcrypt 1.5 #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Choice the key cipher ECDSA and ECDH, and it's size (521), validation (0)

2. Input the name, e-mail, comments ... etc...
3. Input the password 2 times and there's is it!

What is the expected output? What do you see instead?
The expected output is the key or a message inform that the generation occurred 
successfully. But I see this:

"We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: incompatible version of gcrypt library (expect named curve logic for ECC)
Key generation failed: Unknown system error"

What version of the product are you using? On what operating system?
I'm using the gnupg2-ecc version 2.1.0, from 2009, Sabayon 13.06 (Gentoo Base 
system 2.2) and libgcrypt 1.5.2-r2
Please provide any additional information below.
Here an strace when happen the problem:

getrusage(RUSAGE_SELF, {ru_utime={0, 16666}, ru_stime={0, 36666}, ...}) = 0
times({tms_utime=1, tms_stime=3, tms_cutime=0, tms_cstime=0}) = 1438415943
write(3, "We need to generate a lot of ran"..., 256We need to generate a lot of 
random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
) = 256
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x65d9f5b0d000
write(2, "gpg: incompatible version of gcr"..., 79gpg: incompatible version of 
gcrypt library (expect named curve logic for ECC)
) = 79
write(3, "Key generation failed: Unknown s"..., 44Key generation failed: 
Unknown system error
) = 44
open("/home/synamics/.gnupg/random_seed", O_WRONLY|O_CREAT, 0600) = 6
fcntl(6, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0
ftruncate(6, 0)                         = 0
write(6, 
"\363\307\364\357B\261B\271\303K\2358\302!/\6g\356\323\206z\\\342\33\264D(\37\23
5\373r\256"..., 600) = 600
close(6)                                = 0
munmap(0x65d9f5b17000, 32768)           = 0
exit_group(0)                           = ?
+++ exited with 0 +++

Original issue reported on code.google.com by syn4m...@gmail.com on 31 May 2013 at 3:40