4.50 beta

This commit is contained in:
Igor Pavlov
2007-07-24 00:00:00 +00:00
committed by Kornel Lesiński
parent 7038848692
commit 980e181dcc
104 changed files with 1419 additions and 4952 deletions

View File

@@ -10,9 +10,16 @@
#include "../../ICoder.h"
#include "../../IPassword.h"
extern "C"
{
#include "../../../../C/Crypto/Aes.h"
}
namespace NCrypto {
namespace NRar29 {
const kRarAesKeySize = 16;
class CDecoder:
public ICompressFilter,
public ICompressSetDecoderProperties2,
@@ -22,11 +29,11 @@ class CDecoder:
Byte _salt[8];
bool _thereIsSalt;
CByteBuffer buffer;
Byte aesKey[16];
Byte aesInit[16];
Byte aesKey[kRarAesKeySize];
Byte aesInit[AES_BLOCK_SIZE];
bool _needCalculate;
CMyComPtr<ICompressFilter> _aesFilter;
CAesCbc Aes;
bool _rar350Mode;