-
Notifications
You must be signed in to change notification settings - Fork 813
imgtool: Add tests for imgtool commands part 1 #1983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rustammendel
wants to merge
13
commits into
mcu-tools:main
Choose a base branch
from
rustammendel:tests2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
e7298be
imgtool: Add pre-generated images and keys
rustammendel 647ba35
imgtool: Add missing copyright notice to test_keys.py
davidvincze 1bec135
imgtool: Add new tests for key operations
rustammendel 8c92cc0
imgtool: Improve key type checks and invalid pass-phrase handling
rustammendel 833feaa
imgtool: Add tests for signing
rustammendel 487c31f
imgtool: Add testing for verify command
rustammendel 42ad808
imgtool: Add tests for dumpinfo command
rustammendel efd7607
imgtool: Add verification tests for hex files
rustammendel 83d64a0
imgtool: Add support for hex files in dumpinfo and tests
rustammendel bbe9d90
imgtool: Unify File not found error messages
rustammendel 66bfe00
imgtool: Fix test paths
rustammendel cae6bf6
imgtool: Install imgtool dependencies in fih-test
rustammendel 358a2f7
imgtool: Install imgtool dependencies in zephyr-build
rustammendel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
:10000A0031313131313131313131313131313131D6 | ||
:10001A0031313131313131313131313131313131C6 | ||
:10002A0031313131313131313131313131313131B6 | ||
:10003A0031313131313131313131313131313131A6 | ||
:10004A003131313131313131313131313131313196 | ||
:10005A003131313131313131313131313131313186 | ||
:10006A003131313131313131313131313131313176 | ||
:10007A003131313131313131313131313131313166 | ||
:10008A003131313131313131313131313131313156 | ||
:10009A003131313131313131313131313131313146 | ||
:1000AA003131313131313131313131313131313136 | ||
:1000BA003131313131313131313131313131313126 | ||
:1000CA003131313131313131313131313131313116 | ||
:1000DA003131313131313131313131313131313106 | ||
:1000EA0031313131313131313131313131313131F6 | ||
:1000FA0031313131313131313131313131313131E6 | ||
:10010A0031313131313131313131313131313131D5 | ||
:10011A0031313131313131313131313131313131C5 | ||
:10012A0031313131313131313131313131313131B5 | ||
:10013A0031313131313131313131313131313131A5 | ||
:10014A003131313131313131313131313131313195 | ||
:10015A003131313131313131313131313131313185 | ||
:10016A003131313131313131313131313131313175 | ||
:10017A003131313131313131313131313131313165 | ||
:10018A003131313131313131313131313131313155 | ||
:10019A003131313131313131313131313131313145 | ||
:1001AA003131313131313131313131313131313135 | ||
:1001BA003131313131313131313131313131313125 | ||
:1001CA003131313131313131313131313131313115 | ||
:1001DA003131313131313131313131313131313105 | ||
:1001EA0031313131313131313131313131313131F5 | ||
:1001FA0031313131313131313131313131313131E5 | ||
:10020A0031313131313131313131313131313131D4 | ||
:10021A0031313131313131313131313131313131C4 | ||
:10022A0031313131313131313131313131313131B4 | ||
:10023A0031313131313131313131313131313131A4 | ||
:10024A003131313131313131313131313131313194 | ||
:10025A003131313131313131313131313131313184 | ||
:10026A003131313131313131313131313131313174 | ||
:10027A003131313131313131313131313131313164 | ||
:10028A003131313131313131313131313131313154 | ||
:10029A003131313131313131313131313131313144 | ||
:1002AA003131313131313131313131313131313134 | ||
:1002BA003131313131313131313131313131313124 | ||
:1002CA003131313131313131313131313131313114 | ||
:1002DA003131313131313131313131313131313104 | ||
:1002EA0031313131313131313131313131313131F4 | ||
:1002FA0031313131313131313131313131313131E4 | ||
:10030A0031313131313131313131313131313131D3 | ||
:10031A0031313131313131313131313131313131C3 | ||
:10032A0031313131313131313131313131313131B3 | ||
:10033A0031313131313131313131313131313131A3 | ||
:10034A003131313131313131313131313131313193 | ||
:10035A003131313131313131313131313131313183 | ||
:10036A003131313131313131313131313131313173 | ||
:10037A003131313131313131313131313131313163 | ||
:10038A003131313131313131313131313131313153 | ||
:10039A003131313131313131313131313131313143 | ||
:1003AA003131313131313131313131313131313133 | ||
:1003BA003131313131313131313131313131313123 | ||
:1003CA003131313131313131313131313131313113 | ||
:1003DA003131313131313131313131313131313103 | ||
:1003EA0031313131313131313131313131313131F3 | ||
:1003FA0031313131313131313131313131313131E3 | ||
:00000001FF |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please consider verifying if password is correct at first since
msg1
contains "Invalid passphrase" in it.ValueError: Bad decrypt. Incorrect password?
ValueError: Incorrect password, could not decrypt key
In case of public key there is no such substring in
msg1
:ValueError: Could not deserialize key data. The data may be in an incorrect format or it may be encrypted with an unsupported algorithm.
ValueError: Valid PEM but no BEGIN/END delimiters for a private key found. Are you sure this is a private key?