Update archivers/unrar to version 5.30,5
[dports.git] / archivers / unrar / files / patch-rijndael.hpp
1 --- rijndael.hpp.orig   2014-06-10 17:14:06 UTC
2 +++ rijndael.hpp
3 @@ -16,6 +16,9 @@
4  class Rijndael
5  { 
6    private:
7 +#ifdef OPENSSL_AES
8 +    EVP_CIPHER_CTX ctx;
9 +#else // OPENSSL_AES
10  #ifdef USE_SSE
11      void blockEncryptSSE(const byte *input,size_t numBlocks,byte *outBuffer);
12      void blockDecryptSSE(const byte *input, size_t numBlocks, byte *outBuffer);
13 @@ -25,6 +28,7 @@
14      void keySched(byte key[_MAX_KEY_COLUMNS][4]);
15      void keyEncToDec();
16      void GenerateTables();
17 +#endif // OPENSSL_AES
18  
19      // RAR always uses CBC, but we may need to turn it off when calling
20      // this code from other archive formats with CTR and other modes.