diff --git a/boot/bootutil/src/loader.c b/boot/bootutil/src/loader.c index 7795e884a..888923e38 100644 --- a/boot/bootutil/src/loader.c +++ b/boot/bootutil/src/loader.c @@ -787,8 +787,9 @@ boot_image_check(struct boot_loader_state *state, struct image_header *hdr, (void)bs; (void)rc; -/* In the case of ram loading the image has already been decrypted as it is - * decrypted when copied in ram */ + /* In the case of ram loading the image has already been decrypted as it is + * decrypted when copied in ram + */ #if defined(MCUBOOT_ENC_IMAGES) && !defined(MCUBOOT_RAM_LOAD) if (MUST_DECRYPT(fap, BOOT_CURR_IMG(state), hdr)) { rc = boot_enc_load(BOOT_CURR_ENC(state), 1, hdr, fap, bs); @@ -1347,7 +1348,7 @@ boot_copy_region(struct boot_loader_state *state, #ifdef MCUBOOT_ENC_IMAGES /* If only copy, then does not matter if header indicates need for - * encryptio/decryptio, we just copy data. */ + * encryption/decryption, we just copy data. */ if (!only_copy && IS_ENCRYPTED(hdr)) { #if defined(MCUBOOT_SWAP_USING_OFFSET) uint32_t abs_off = off - sector_off + bytes_copied;