projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/stm32f4: Add usart driver for usart6
[fw/altos]
/
src
/
test
/
ao_aes_test.c
diff --git
a/src/test/ao_aes_test.c
b/src/test/ao_aes_test.c
index 4b65df8d8d8716f4f50ddb4ff368f4ccbc7b3ccd..e1ed5728d803137cc2d7a7516b01f53933eb417c 100644
(file)
--- a/
src/test/ao_aes_test.c
+++ b/
src/test/ao_aes_test.c
@@
-16,11
+16,7
@@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#define __pdata
-#define __data
-#define __xdata
-#define __code
-#define __reentrant
+#define const
#include <string.h>
#include <stdio.h>
#include <string.h>
#include <stdio.h>
@@
-30,7
+26,7
@@
#include "../aes/ao_aes_tables.c"
#include "../aes/ao_aes.c"
#include "../aes/ao_aes_tables.c"
#include "../aes/ao_aes.c"
-static uint8_t
key[16
];
+static uint8_t
my_key[64
];
static uint8_t text[16];
static uint8_t cbc[16];
static uint8_t text[16];
static uint8_t cbc[16];
@@
-41,7
+37,7
@@
main (int argc, char **argv)
ao_aes_init();
ao_aes_set_mode(ao_aes_mode_cbc_mac);
ao_aes_init();
ao_aes_set_mode(ao_aes_mode_cbc_mac);
- ao_aes_set_key(key);
+ ao_aes_set_key(
my_
key);
ao_aes_zero_iv();
ao_aes_run(text, cbc);
ao_aes_zero_iv();
ao_aes_run(text, cbc);