kokke/tiny-AES-c

Getting Error while trying to call the .c files

abhowmik opened this issue · 1 comments

Hi ,
I am trying to test encryption and decryption using the aes.c files but getting the following error:
make -v clean && make && ./test.elf
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
[LD] test.elf
ld: unknown option: -Map
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [test.elf] Error 1

Also can you please share what is the actual syntax to call this .c files please?
Please Advice what could be the issue?
Thanks

I was able to solve the issue by isntead running the following command
make aes.c
gcc -DAES256=1 aes-pii.c test.c -o run_pii
./run_pii