We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4afedc commit 38b28e2Copy full SHA for 38b28e2
source/Service_Libs/CCM_lib/mbedOS/aes_mbedtls_adapter.c
@@ -83,7 +83,9 @@ arm_aes_context_t *arm_aes_start(const uint8_t key[static 16])
83
arm_aes_context_t *context = mbed_tls_context_get();
84
if (context) {
85
mbedtls_aes_init(&context->ctx);
86
- mbedtls_aes_setkey_enc(&context->ctx, key, 128);
+ if (0 != mbedtls_aes_setkey_enc(&context->ctx, key, 128)) {
87
+ return NULL;
88
+ }
89
}
90
return context;
91
0 commit comments