Commit d12a8da
committed
imgtool: fix validation with protected TLVs
After the change to support protected TLVs, the `verify` command was not
updated with proper support. Fix it by skipping any protected TLV found,
and fix the size of the hashed/signed region to also include the
protected TLV area.
Signed-off-by: Fabio Utzig <[email protected]>1 parent da2580d commit d12a8da
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
| 547 | + | |
| 548 | + | |
548 | 549 | | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
549 | 555 | | |
550 | 556 | | |
551 | 557 | | |
552 | 558 | | |
553 | | - | |
| 559 | + | |
| 560 | + | |
554 | 561 | | |
555 | 562 | | |
556 | | - | |
557 | 563 | | |
558 | 564 | | |
559 | 565 | | |
| |||
569 | 575 | | |
570 | 576 | | |
571 | 577 | | |
572 | | - | |
| 578 | + | |
573 | 579 | | |
574 | 580 | | |
575 | 581 | | |
| |||
0 commit comments