0

I wish to run a C program(works fine using gcc) on android. I have installed ndk for eclipse and have setup the basic things correctly. I have linked openssl library(.so files) to the project. Methods such as AES_set_encrypt_key aren't facing any issue but I am getting error at AES_KEY/AES_BLOCK_SIZE saying type/symbol cannot be resolved. How to fix this?

Thanks

jww
  • 97,681
  • 90
  • 411
  • 885
re3el
  • 735
  • 2
  • 12
  • 28
  • Did you `#include` crypto/aes/aes.h ? – Michael Oct 09 '15 at 05:35
  • You will likely have problems in this configuration. For details, see [Changing OpenSSL library in Android app for HttpClient](http://stackoverflow.com/q/28341215). – jww Oct 09 '15 at 15:56

1 Answers1

0

I found the solution. There was a problem with the extern statements in aes.h header file in eclipse IDE. As I was using it in a C code, these aren't required. Once I removed them, the problem got solved!

re3el
  • 735
  • 2
  • 12
  • 28