blob: 816a0c91aad3d3cca05d4af9253aa4d5aadd19c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- rijndael.hpp.orig 2013-12-01 16:10:14.000000000 +0800
+++ rijndael.hpp 2014-02-04 08:48:42.137144316 +0800
@@ -16,6 +16,9 @@
class Rijndael
{
private:
+#ifdef OPENSSL_AES
+ EVP_CIPHER_CTX ctx;
+#else // OPENSSL_AES
void keySched(byte key[_MAX_KEY_COLUMNS][4]);
void keyEncToDec();
void encrypt(const byte a[16], byte b[16]);
@@ -25,6 +28,7 @@
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);
|