1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Fix build without OPENSSL_AES

PR:		ports/192371
Submitted by:	Zsolt Udvari <udvzsolt@gmail.com>
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2014-08-04 17:37:58 +00:00
parent 84204fa15a
commit 5bcd83db63
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364033

View File

@ -1,5 +1,5 @@
--- rijndael.hpp.orig 2014-06-11 01:14:06.000000000 +0800
+++ rijndael.hpp 2014-07-31 22:47:47.292079919 +0800
+++ rijndael.hpp 2014-08-05 01:31:59.971584264 +0800
@@ -16,6 +16,9 @@
class Rijndael
{
@ -10,7 +10,7 @@
#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 @@
@@ -25,6 +28,7 @@
void keySched(byte key[_MAX_KEY_COLUMNS][4]);
void keyEncToDec();
void GenerateTables();
@ -18,13 +18,3 @@
// 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];
+#endif // OPENSSL_AES
public:
Rijndael();
void Init(bool Encrypt,const byte *key,uint keyLen,const byte *initVector);