Skip to content

Commit 157e2cf

Browse files
committed
bootutil: Remove bootutil_verify_img
No longer needed. Signed-off-by: Dominik Ermel <[email protected]>
1 parent ea3fd87 commit 157e2cf

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

boot/bootutil/src/bootutil_priv.h

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

293-
/* The function is intended for direct verification of image
294-
* against provided signature.
295-
*/
296-
fih_ret bootutil_verify_img(uint8_t *img, uint32_t size,
297-
uint8_t *sig, size_t slen, uint8_t key_id);
298-
299293
fih_ret boot_fih_memequal(const void *s1, const void *s2, size_t n);
300294

301295
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
@@ -171,23 +171,4 @@ bootutil_verify_sig(uint8_t *msg, uint32_t mlen,
171171
FIH_RET(fih_rc);
172172
}
173173

174-
/* Image verification function.
175-
* The function directly calls bootutil_verify to verify signature
176-
* of image.
177-
*/
178-
fih_ret
179-
bootutil_verify_img(uint8_t *img, uint32_t size,
180-
uint8_t *sig, size_t slen,
181-
uint8_t key_id)
182-
{
183-
FIH_DECLARE(fih_rc, FIH_FAILURE);
184-
185-
BOOT_LOG_DBG("bootutil_verify_img: ED25519 key_id %d", (int)key_id);
186-
187-
FIH_CALL(bootutil_verify, fih_rc, img, size, sig,
188-
slen, key_id);
189-
190-
FIH_RET(fih_rc);
191-
}
192-
193174
#endif /* MCUBOOT_SIGN_ED25519 */

0 commit comments

Comments
 (0)