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:
authorIgor Pavlov <ipavlov@users.sourceforge.net>2015-08-16 03:00:00 +0300
committerKornel LesiƄski <kornel@geekhood.net>2016-05-28 02:16:55 +0300
commitcba375916fb18db8b9101aedf4fa079e019311b3 (patch)
tree6275ae5fc2a8dd337ab0327180c871807e6ba5d4 /CPP/7zip/Crypto/RarAes.h
parent54490d51d5c6b0d794dcbad2d634d4c95fc25b6c (diff)
15.0615.06
Diffstat (limited to 'CPP/7zip/Crypto/RarAes.h')
-rw-r--r--CPP/7zip/Crypto/RarAes.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/CPP/7zip/Crypto/RarAes.h b/CPP/7zip/Crypto/RarAes.h
index 197a0b2d..083b4104 100644
--- a/CPP/7zip/Crypto/RarAes.h
+++ b/CPP/7zip/Crypto/RarAes.h
@@ -12,14 +12,14 @@
#include "MyAes.h"
namespace NCrypto {
-namespace NRar29 {
+namespace NRar3 {
-const UInt32 kRarAesKeySize = 16;
+const unsigned kAesKeySize = 16;
class CDecoder:
- public CAesCbcDecoder,
+ public CAesCbcDecoder
// public ICompressSetDecoderProperties2,
- public ICryptoSetPassword
+ // public ICryptoSetPassword
{
Byte _salt[8];
bool _thereIsSalt;
@@ -28,17 +28,20 @@ class CDecoder:
CByteBuffer _password;
- Byte _key[kRarAesKeySize];
+ Byte _key[kAesKeySize];
Byte _iv[AES_BLOCK_SIZE];
void CalcKey();
public:
+ /*
MY_UNKNOWN_IMP1(
- ICryptoSetPassword)
+ ICryptoSetPassword
// ICompressSetDecoderProperties2
+ */
STDMETHOD(Init)();
- STDMETHOD(CryptoSetPassword)(const Byte *aData, UInt32 aSize);
- STDMETHOD(SetDecoderProperties2)(const Byte *data, UInt32 size);
+
+ void SetPassword(const Byte *data, unsigned size);
+ HRESULT SetDecoderProperties2(const Byte *data, UInt32 size);
CDecoder();
void SetRar350Mode(bool rar350Mode) { _rar350Mode = rar350Mode; }