Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '7zip/Crypto/7zAES/7zAES.cpp')
-rwxr-xr-x7zip/Crypto/7zAES/7zAES.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/7zip/Crypto/7zAES/7zAES.cpp b/7zip/Crypto/7zAES/7zAES.cpp
index dcf69cb6..a0d0882b 100755
--- a/7zip/Crypto/7zAES/7zAES.cpp
+++ b/7zip/Crypto/7zAES/7zAES.cpp
@@ -5,6 +5,7 @@
#include "Windows/Defs.h"
#include "Windows/Synchronization.h"
#include "../../Common/StreamObjects.h"
+#include "../../Common/StreamUtils.h"
#include "7zAES.h"
// #include "../../Hash/Common/CryptoHashInterface.h"
@@ -169,11 +170,11 @@ STDMETHODIMP CEncoder::WriteCoderProperties(ISequentialOutStream *outStream)
RINOK(outStream->Write(&secondByte, 1, NULL));
if (_key.SaltSize > 0)
{
- RINOK(outStream->Write(_key.Salt, _key.SaltSize, NULL));
+ RINOK(WriteStream(outStream, _key.Salt, _key.SaltSize, NULL));
}
if (ivSize > 0)
{
- RINOK(outStream->Write(_iv, ivSize, NULL));
+ RINOK(WriteStream(outStream, _iv, ivSize, NULL));
}
return S_OK;
}