Topic: wolfCrypt with mwcceppc
Hello,
I am using mwcceppc (Freescale C/C++ Compiler for Embedded PowerPC) in Eclipse IDE for Embedded C/C++ Developers to build a project with wolfCrypt for ST Microelectronics SPC560P Chip. I include the wolfCrypt libraries in the makefile and just add the line #include <wolfssl/wolfcrypt/aes.h>.
Upon building the project, I get the error:
..\..\Desktop\Crypt\wolfssl-5.7.2\wolfssl\wolfcrypt\wc_port.h:828: undefined identifier 'DIR'
..\..\Desktop\Crypt\wolfssl-5.7.2\wolfssl\wolfcrypt\wc_port.h:828: (included from:
..\..\Desktop\Crypt\wolfssl-5.7.2\wolfssl\wolfcrypt\wc_port.h:828: C:\Users\asn\Desktop\Crypt\wolfssl-5.7.2\wolfssl\wolfcrypt\types.h:35
..\..\Desktop\Crypt\wolfssl-5.7.2\wolfssl\wolfcrypt\wc_port.h:828: C:\Users\asn\Desktop\Crypt\wolfssl-5.7.2\wolfssl\wolfcrypt\aes.h:41
..\..\Desktop\Crypt\wolfssl-5.7.2\wolfssl\wolfcrypt\wc_port.h:828: C:\Users\asn\e_workspace\cryptoProject\application\scheduler\main.c:15)
The only change in the wolfCrypt code I have done is #define SINGLE_THREADED in the aes.h file.
Any suggestion how I can resolve this ?
I see that in settings.h file, there is no settings for PowerPC but I believe the wolfCrypt can be used with PowerPC after a little bit of changes. I would be happy if someone can confirm this ?