mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Code cleanup.
This commit is contained in:
parent
7cbbf8cf37
commit
a49cf184ea
@ -40,6 +40,7 @@ HashedBlockStream::HashedBlockStream(QIODevice* baseDevice, qint32 blockSize)
|
||||
|
||||
void HashedBlockStream::init()
|
||||
{
|
||||
m_buffer.clear();
|
||||
m_bufferPos = 0;
|
||||
m_blockIndex = 0;
|
||||
m_eof = false;
|
||||
@ -62,7 +63,6 @@ bool HashedBlockStream::reset()
|
||||
}
|
||||
|
||||
init();
|
||||
m_buffer.clear();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -17,8 +17,9 @@
|
||||
|
||||
#include "SymmetricCipherStream.h"
|
||||
|
||||
SymmetricCipherStream::SymmetricCipherStream(QIODevice* baseDevice, SymmetricCipher::Algorithm algo, SymmetricCipher::Mode mode,
|
||||
SymmetricCipher::Direction direction, const QByteArray& key, const QByteArray& iv)
|
||||
SymmetricCipherStream::SymmetricCipherStream(QIODevice* baseDevice, SymmetricCipher::Algorithm algo,
|
||||
SymmetricCipher::Mode mode, SymmetricCipher::Direction direction,
|
||||
const QByteArray& key, const QByteArray& iv)
|
||||
: LayeredStream(baseDevice)
|
||||
, m_bufferPos(0)
|
||||
, m_bufferFilling(false)
|
||||
|
Loading…
Reference in New Issue
Block a user