Make AES_ENCRYPT and AES_DECRYPT macros instead of static constants.
PR: 411
This commit is contained in:
parent
316bfb77b5
commit
aa18245f7e
@ -56,8 +56,9 @@
|
|||||||
#error AES is disabled.
|
#error AES is disabled.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const int AES_DECRYPT = 0;
|
#define AES_ENCRYPT 1
|
||||||
static const int AES_ENCRYPT = 1;
|
#define AES_DECRYPT 0
|
||||||
|
|
||||||
/* Because array size can't be a const in C, the following two are macros.
|
/* Because array size can't be a const in C, the following two are macros.
|
||||||
Both sizes are in bytes. */
|
Both sizes are in bytes. */
|
||||||
#define AES_MAXNR 14
|
#define AES_MAXNR 14
|
||||||
|
Loading…
x
Reference in New Issue
Block a user