summaryrefslogtreecommitdiffstats
path: root/crypt/hybridcrypt.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypt/hybridcrypt.h')
-rw-r--r--crypt/hybridcrypt.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/crypt/hybridcrypt.h b/crypt/hybridcrypt.h
index 602844e..ce8a553 100644
--- a/crypt/hybridcrypt.h
+++ b/crypt/hybridcrypt.h
@@ -118,11 +118,37 @@ private:
void throwExceptionIfEvpKeyIsNotRsa(EVP_PKEY **key);
/**
+ * @brief throwExceptionIfCsprngIsNotSeeded
+ * Wirft eine Exception, falls der Zufallszahlengenerator nicht initialisiert wurde.
+ */
+ void throwExceptionIfCsprngIsNotSeeded();
+
+ /**
+ * @brief throwExceptionIfUserKeyIsNull
+ * Wift eine Exception, falls kein Nutzerschlüssel vorhanden ist.
+ */
+ void throwExceptionIfUserKeyIsNull();
+
+ /**
* @brief freeEvpKey
* Räumt den Schlüssel hinter key ab.
* @param key Der Pointer, der auf NULL gesetzt wird.
*/
void freeEvpKey(EVP_PKEY **key);
+
+ /**
+ * @brief freeCipherCtx
+ * Räumt den Kontext hinter ctx ab.
+ * @param ctx Der Pointer, der auf NULL gesetzt wird.
+ */
+ void freeCipherCtx(EVP_CIPHER_CTX **ctx);
+
+ /**
+ * @brief freePkeyCtx
+ * Räumt den Kontext hinter ctx ab.
+ * @param ctx Der Pointer, der auf NULL gesetzt wird.
+ */
+ void freePkeyCtx(EVP_PKEY_CTX **ctx);
};
#endif // HYBRIDCRYPT_H