Update aes.c
This commit is contained in:
4
aes.c
4
aes.c
@@ -65,7 +65,7 @@ NOTE: String length must be evenly divisible by 16byte (str_len % 16 == 0)
|
|||||||
|
|
||||||
// jcallan@github points out that declaring Multiply as a function
|
// jcallan@github points out that declaring Multiply as a function
|
||||||
// reduces code size considerably with the Keil ARM compiler.
|
// reduces code size considerably with the Keil ARM compiler.
|
||||||
// See this link for more information: https://github.com/kokke/tiny-AES128-C/pull/3
|
// See this link for more information: https://github.com/kokke/tiny-AES-C/pull/3
|
||||||
#ifndef MULTIPLY_AS_A_FUNCTION
|
#ifndef MULTIPLY_AS_A_FUNCTION
|
||||||
#define MULTIPLY_AS_A_FUNCTION 0
|
#define MULTIPLY_AS_A_FUNCTION 0
|
||||||
#endif
|
#endif
|
||||||
@@ -135,7 +135,7 @@ static const uint8_t Rcon[11] = {
|
|||||||
0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36 };
|
0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36 };
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Jordan Goulder points out in PR #12 (https://github.com/kokke/tiny-AES128-C/pull/12),
|
* Jordan Goulder points out in PR #12 (https://github.com/kokke/tiny-AES-C/pull/12),
|
||||||
* that you can remove most of the elements in the Rcon array, because they are unused.
|
* that you can remove most of the elements in the Rcon array, because they are unused.
|
||||||
*
|
*
|
||||||
* From Wikipedia's article on the Rijndael key schedule @ https://en.wikipedia.org/wiki/Rijndael_key_schedule#Rcon
|
* From Wikipedia's article on the Rijndael key schedule @ https://en.wikipedia.org/wiki/Rijndael_key_schedule#Rcon
|
||||||
|
|||||||
Reference in New Issue
Block a user