-
Notifications
You must be signed in to change notification settings - Fork 674
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imgtool: Add support for calculating SHA512
The adds support for hashing image with SHA512. The PureEdDSA that is used here to sing the hash, not a perfect usage, uses sha512 internally so change at least allows to compile in single hash algorithm, the sha512, instead of sha512 and sha256. It also improves, slightly, collision resistance as longer message is used for signature. To support above --sha parameter has been added that can take value: auto, 256, 384, 512 to select sha, where auto brings the default behaviour, or current, behaviour. The sha provided here is tested against key so not all combinations are supported. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
- Loading branch information
Showing
2 changed files
with
96 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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 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