This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Need conditional compilation for sdk_config crypto macros.

Hi Team,

We need conditional compilation between crypto engine related macros for CC310 and mbed TLS and micro-ECC.

If we add our own macros in "sdk_config.h" file we are getting some issues adn unable to add user defined macros in that file.

Our intention is at a time one crypto engine should be active and that is enabled from based on one macro which is user configurable. Is there any way or mechanism defined for this.

Eg: If we want CC310 crypto engine,

#if CC310_CYPTO   //  we will define this macros in any user defined .h file

       //All CC310 Related macro come here

#else MBED_TLS_CRYPTO

     //All mbed TLS  Related macro come here

#endif

Regards,

Srinivas.V