Skip to content

Commit 17e3e7e

Browse files
committed
[nrf fromtree] bootutil: Remove bootutil_verify_img
No longer needed. (cherry picked from commit 7f35491) Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
1 parent 30860cf commit 17e3e7e

2 files changed

Lines changed: 0 additions & 25 deletions

File tree

boot/bootutil/src/bootutil_priv.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,6 @@ struct boot_sector_buffer {
311311
fih_ret bootutil_verify_sig(uint8_t *msg, uint32_t mlen, uint8_t *sig,
312312
size_t slen, uint8_t key_id);
313313

314-
/* The function is intended for direct verification of image
315-
* against provided signature.
316-
*/
317-
fih_ret bootutil_verify_img(uint8_t *img, uint32_t size,
318-
uint8_t *sig, size_t slen, uint8_t key_id);
319-
320314
fih_ret boot_fih_memequal(const void *s1, const void *s2, size_t n);
321315

322316
const struct flash_area *boot_find_status(const struct boot_loader_state *state,

boot/bootutil/src/image_ed25519.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -180,23 +180,4 @@ bootutil_verify_sig(uint8_t *msg, uint32_t mlen,
180180
FIH_RET(fih_rc);
181181
}
182182

183-
/* Image verification function.
184-
* The function directly calls bootutil_verify to verify signature
185-
* of image.
186-
*/
187-
fih_ret
188-
bootutil_verify_img(uint8_t *img, uint32_t size,
189-
uint8_t *sig, size_t slen,
190-
uint8_t key_id)
191-
{
192-
FIH_DECLARE(fih_rc, FIH_FAILURE);
193-
194-
BOOT_LOG_DBG("bootutil_verify_img: ED25519 key_id %d", (int)key_id);
195-
196-
FIH_CALL(bootutil_verify, fih_rc, img, size, sig,
197-
slen, key_id);
198-
199-
FIH_RET(fih_rc);
200-
}
201-
202183
#endif /* MCUBOOT_SIGN_ED25519 */

0 commit comments

Comments
 (0)