Hi, Le mercredi 17 juin 2009 13:26:46, Victor Stinner a écrit : > Extract (1): > -------- > http://www.gnupg.org/documentation/manuals/gcrypt/Controlling-the-library.h >tml GCRYCTL_USE_SECURE_RNDPOOL; Arguments: none > This command tells the PRNG to store random numbers in secure memory. This > command should be run right after gcry_check_version and not later than the > command GCRYCTL_INIT_SECMEM. Note that in FIPS mode the secure memory is > always used. > -------- > > Does it mean that GCRYCTL_USE_SECURE_RNDPOOL can be used before > GCRYCTL_INIT_SECMEM? Because if I use both, I get this: > > Oops, secure memory pool already initialized
I found my error. It was not the usage of GCRYCTL_USE_SECURE_RNDPOOL + GCRYCTL_INIT_SECMEM, but that I load gcrypt twice using dlopen(), and that I do initialize it twice. But at the second dlopen() call, i just get the same reference to the first dlopen() and so the library is already open. I was my fault :-p -- Victor Stinner http://www.haypocalc.com/ _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users