gcry_randomize()

Denis Corbin dar.linux at free.fr
Thu Aug 6 22:54:51 CEST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

Beside user provided passwords, I use randomly generated keys for
several symmetric ciphers. Such keys are generated by a call to
gcry_randomize(...,GCRY_STRONG_RANDOM). The length of such password
matches the longest acceptable key for the algorithm as returned by
libgcrypt.

Sometimes when the cipher is blowfish, I get libgcrypt reporting such
random password as weak...

Is there a better way to generate a random passwords?

OK, I guess I'm a slightly out of topics in regard to this
mailing-list... sorry if so.

Regards,
Denis.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIVAwUBVcPJmggxsL0D2LGCAQIEkw//Qs/IxgnYnaRLuRmi9yQMCfsZEGBmPrxD
KF6Sz6X89J3QhPz1tiXFlr6+6MOWWeUsfK5xL4FTnCMlB7J1Bw1SS8GMM86GyHnW
FWX0WkAwaUBendQbVqEudBzk/ngI3/7ya2fR5xAkw2j750miBSK7UGb4dFcDd1bs
1U97kF0+6S4ikqR6olMjFFLJ9vvDvU4g5wbdTejd3aYX3IiRp2xozkNiO0c4lW/3
3Fdit6p7xHkuKLCXiXxdHjnGYOq5RGG86m5uxhHJWhvLBguMCz3fnvrpsXt6Qoam
XOZjtlFqrodsMB3I5JYO9yHedXvSixvX1YYQ07QOh8Vw/lk8VnEgAudBJm+IuQtv
noYAXZsVThaXkuGSZg4qjrYD3o+rxKoYQMUB/5C1pdrw9HzVk+bsmuop6eEU+V+G
Zg0O+je7ZFDhAibptrttExyQqvAi/Jx7TgrLhlAVlIep9CyEypmgnwXBiOz/nMHP
9NBZtj0bzpbG/aVqrT8t6ShpUJnsiOtPNkf73na3sk8PLFIMJbHw98HuMyp7ZLoy
BrYO5cFQ8TxVeeQCZbuKe/2EXHq+++WtDlS2qSSMG1jqu4wkpuTyEiCWTn6CTYqV
xCQfzCjrvg1VqNUm2PZpk2n717vTxZWY+jbJH/nJPn4lt/diNm5xzubaIdShNQrv
6AL6ZE/t0CY=
=qMpY
-----END PGP SIGNATURE-----




More information about the Gcrypt-devel mailing list