We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eca76ef commit 47815c0Copy full SHA for 47815c0
1 file changed
src/libwolfboot.c
@@ -1788,7 +1788,9 @@ int aes_init(void)
1788
stored_nonce = enc_key->initial_vector;
1789
wolfCrypt_Init(); /* required to setup the crypto callback defaults */
1790
#elif defined(CUSTOM_ENCRYPT_KEY)
1791
- wolfBoot_get_encrypt_key(key, stored_nonce);
+ ret = wolfBoot_get_encrypt_key(key, stored_nonce);
1792
+ if (ret != 0)
1793
+ goto exit;
1794
#else
1795
#if defined(MMU) || defined(UNIT_TEST)
1796
key = ENCRYPT_KEY;
0 commit comments