summaryrefslogtreecommitdiff
path: root/archivers/unrar/files/patch-rijndael.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/unrar/files/patch-rijndael.hpp')
-rw-r--r--archivers/unrar/files/patch-rijndael.hpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/archivers/unrar/files/patch-rijndael.hpp b/archivers/unrar/files/patch-rijndael.hpp
index 816a0c91aad3..d37dc6620330 100644
--- a/archivers/unrar/files/patch-rijndael.hpp
+++ b/archivers/unrar/files/patch-rijndael.hpp
@@ -1,5 +1,5 @@
---- rijndael.hpp.orig 2013-12-01 16:10:14.000000000 +0800
-+++ rijndael.hpp 2014-02-04 08:48:42.137144316 +0800
+--- rijndael.hpp.orig 2014-06-11 01:14:06.000000000 +0800
++++ rijndael.hpp 2014-07-31 22:47:47.292079919 +0800
@@ -16,6 +16,9 @@
class Rijndael
{
@@ -7,10 +7,20 @@
+#ifdef OPENSSL_AES
+ EVP_CIPHER_CTX ctx;
+#else // OPENSSL_AES
+ #ifdef USE_SSE
+ void blockEncryptSSE(const byte *input,size_t numBlocks,byte *outBuffer);
+ void blockDecryptSSE(const byte *input, size_t numBlocks, byte *outBuffer);
+@@ -25,14 +28,17 @@
void keySched(byte key[_MAX_KEY_COLUMNS][4]);
void keyEncToDec();
- void encrypt(const byte a[16], byte b[16]);
-@@ -25,6 +28,7 @@
+ void GenerateTables();
++#endif // OPENSSL_AES
+
+ // RAR always uses CBC, but we may need to turn it off when calling
+ // this code from other archive formats with CTR and other modes.
+ bool CBCMode;
+
++#ifdef OPENSSL_AES
int m_uRounds;
byte m_initVector[MAX_IV_SIZE];
byte m_expandedKey[_MAX_ROUNDS+1][4][4];