mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-29 02:51:45 -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
|
@ -24,6 +24,8 @@
|
|||
|
||||
#include "ui_GenCertDialog.h"
|
||||
|
||||
class QMouseEvent ;
|
||||
|
||||
class GenCertDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -32,11 +34,14 @@ public:
|
|||
/** Default constructor */
|
||||
GenCertDialog(bool onlyGenerateIdentity, QWidget *parent = 0);
|
||||
|
||||
virtual ~GenCertDialog() ;
|
||||
virtual void mouseMoveEvent(QMouseEvent *e) ;
|
||||
private slots:
|
||||
void genPerson();
|
||||
void importIdentity();
|
||||
void exportIdentity();
|
||||
void newGPGKeyGenUiSetup();
|
||||
void grabMouse();
|
||||
|
||||
private:
|
||||
void init();
|
||||
|
@ -46,6 +51,8 @@ private:
|
|||
|
||||
bool genNewGPGKey;
|
||||
bool mOnlyGenerateIdentity;
|
||||
|
||||
QTimer *entropy_timer ;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue