Make sure gcrypt is initalized when SymmetricCipherGcrypt objects are created.
This commit is contained in:
@@ -17,6 +17,13 @@
|
||||
|
||||
#include "SymmetricCipherGcrypt.h"
|
||||
|
||||
#include "crypto/Crypto.h"
|
||||
|
||||
SymmetricCipherGcrypt::SymmetricCipherGcrypt()
|
||||
{
|
||||
Q_ASSERT(Crypto::initalized());
|
||||
}
|
||||
|
||||
SymmetricCipherGcrypt::~SymmetricCipherGcrypt()
|
||||
{
|
||||
gcry_cipher_close(m_ctx);
|
||||
|
||||
Reference in New Issue
Block a user