Hi @pohl7567
As mentioned in this anouncement , Mbed TLS is now maintained under open governance at TrustedFirmware.org.
I would suggest you post your question there, as it doesn’t seem your question is Pelion related.
At a glance, I believe you are using a hardware acceleration AES-CCM. Is this correct? Is the static memory where the tests vectors are defined accessible by your hardware accelerator?
Have you tried copying testVectorCCM.authdata
and testVectorCCM.plaintext
to local authdata
and plaintext
buffers , before calling mbedtls_ccm_encrypt_and_tag()
, and copying testVectorCCM.ciphertext
to a local ciphertext
before calling mbedtls_ccm_auth_decrypt()
?
Note that thsi is what’s done in teh ccm_selftest
for similar reasons. Have ou tried the self test in your platform?
Regards,
mbed Support
Ron