summaryrefslogtreecommitdiffstats
path: root/crypt/hybridcrypt.cpp
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-09-04 15:44:36 +0200
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-09-04 15:44:36 +0200
commitee895e9a12b1bad4f1151aba4766102fcef1073e (patch)
tree867e7c59be957e1bd7e2ed1adefe56b57e3b862e /crypt/hybridcrypt.cpp
parent96aa529561d6eaf3227e1f9764e5bb8ae5fafead (diff)
downloadsrc-ee895e9a12b1bad4f1151aba4766102fcef1073e.tar.gz
src-ee895e9a12b1bad4f1151aba4766102fcef1073e.zip
Füge OpenSSL in die Abhängigkeiten ein und nutze RAND daraus
Diffstat (limited to 'crypt/hybridcrypt.cpp')
-rw-r--r--crypt/hybridcrypt.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/crypt/hybridcrypt.cpp b/crypt/hybridcrypt.cpp
index 199c513..b197f75 100644
--- a/crypt/hybridcrypt.cpp
+++ b/crypt/hybridcrypt.cpp
@@ -2,13 +2,14 @@
HybridCrypt::HybridCrypt()
{
-
+ // Teste ob der Zufallszahlengenerator initialisiert ist
+ qDebug() << "Zufallszahlengenerator wurde erfolgreich initialisiert: " << isCsprngSeeded();
}
void HybridCrypt::encrypt(QString infileName, QString outfileName,
QVector<QString> recipientKeyfileNames)
{
-
+ qDebug() << "Zufallszahlengenerator wurde ausreichend geseeded: " << isCsprngSeeded();
}
void HybridCrypt::decrypt(QString infileName, QString outfileName)
@@ -36,3 +37,8 @@ void HybridCrypt::exportPublicUserKey(QString keyfileName)
}
+bool HybridCrypt::isCsprngSeeded()
+{
+ return RAND_status() == 1;
+}
+