mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-13 03:22:34 -04:00
added entropy collection system based on mouse movement to location/identity creation, to make keys less predictable
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6753 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6b1613d8bb
commit
cda8557b73
5 changed files with 316 additions and 140 deletions
|
@ -51,6 +51,7 @@
|
|||
#include <dirent.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <openssl/rand.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#if (defined(__unix__) || defined(unix)) && !defined(USG)
|
||||
|
@ -1217,6 +1218,12 @@ bool RsInit::SelectGPGAccount(const std::string& gpgId)
|
|||
return retVal;
|
||||
}
|
||||
|
||||
bool RsInit::collectEntropy(uint32_t n)
|
||||
{
|
||||
RAND_seed(&n,4) ;
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
bool RsInit::GeneratePGPCertificate(const std::string& name, const std::string& email, const std::string& passwd, std::string &pgpId, std::string &errString)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue