-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to include multiple AES ciphers #6
Comments
No there should be no harm calling twice. The if statement is there because aead file name pattern is different from other filenames. |
@nrbrook somewhat off-topic, I'm using nRF5 SDK v16
and I'm getting this as an error output:
Trying one or the other produces the same results. Commenting them both out, the build succeeds. Any idea what might be happening? |
It works without any changes to the original repo, however in my working project it doesn't--at this point I'm assuming its due to length of the directory? |
It could be yes - have a look at the makefiles that are created to see the raw commands produced |
@nrbrook I can confirm its related to string length limitations. I was able to run without issues when moving my repository to root of "C:/". Do you have any thoughts on how to "fix" this without moving my project's location? Lastly, how do I properly add mbedTLS backend? All I have in my CMakeLists.txt is
Do I have to call |
Yes you should call both: nRF5_includeMBEDTLS("${CMAKE_CURRENT_SOURCE_DIR}") # path to `sdk_config.h`
nRF5_addMBED(${target} crypto) # crypto is the most minimal library option See the macro definitions for more info, I've added better comments. |
@nrbrook I made a repo here to reproduce my issues. You should be able to do the following (note the submodule is set to use
At this point, everything should build successfully. Next step would be to uncomment lines 41-44 to include mbedTLS info. Two things to note:
|
Also it is worth mentioning--I think a Another point worth mentioning is I noticed in the example projects, when opening the SEGGER Embedded Studio project file, the projects are set up to compile the mbedTLS source as part of the project rather than compiling mbedTLS into a static |
I use backend mbedtls w/ nRF5 SDK. I want to include files so both AES256CCM as well as AES256ECB gets compiled. AES 256 CCM cipher is in mbedtls_backend_aes_aead.c and AES 256 ECB cipher is in mbedtls_backend_aes.c. My suspicion is that they the if-statement used here is broken up because of the additional "_" in case of the
aead
.Would the best way be to change:
macro(nRF5_addCryptoBackend TYPE BACKEND)
to something like:
macro(nRF5_addCryptoBackend TYPE BACKEND USE_AEAD)
Is there any harm in calling setup macro twice?
If not, no change may be needed. If there is an issue, I can create a PR with the change when I finished setting up my project because I'll have to get it working anyways.
The text was updated successfully, but these errors were encountered: