diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-09-19 00:39:23 +0200 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-09-19 00:50:27 +0200 |
| commit | aac2957ab6f98d087f8fb9ff68da39fe68c40e3d (patch) | |
| tree | 8760ca11276ea47e9eb9d3ed5c063a39ffb76869 /crypt/hybridcrypt.h | |
| parent | d0d366731425ad6c5a221d5c12968632e7ba1478 (diff) | |
| download | src-aac2957ab6f98d087f8fb9ff68da39fe68c40e3d.tar.gz src-aac2957ab6f98d087f8fb9ff68da39fe68c40e3d.zip | |
Werfe mehr Fehler und nutze mehr Funktionen
Diffstat (limited to 'crypt/hybridcrypt.h')
| -rw-r--r-- | crypt/hybridcrypt.h | 26 |
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 |
