summaryrefslogtreecommitdiffstats
path: root/crypt/hybridcrypt.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypt/hybridcrypt.h')
-rw-r--r--crypt/hybridcrypt.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/crypt/hybridcrypt.h b/crypt/hybridcrypt.h
index d2a3b34..710cf47 100644
--- a/crypt/hybridcrypt.h
+++ b/crypt/hybridcrypt.h
@@ -5,8 +5,11 @@
#include <QFile>
#include <QString>
#include <QVector>
+#include <QDebug>
#include <openssl/evp.h>
+#include <openssl/err.h>
+#include <openssl/rand.h>
class HybridCrypt
{
@@ -70,6 +73,13 @@ public:
private:
EVP_PKEY privateUserkey;
EVP_PKEY publicUserkey;
+
+ /**
+ * @brief isCsprngSeeded
+ * Gibt an, ob der Zufallszahlengenerator von OpenSSL mit ausreichend Entropie initialisiert wurde.
+ * @return Gibt wahr zurück wenn ausreichend intialisert wurde, ansonsten falsch.
+ */
+ bool isCsprngSeeded();
};
#endif // HYBRIDCRYPT_H