This repository has been archived by the owner on Jan 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
signing: access private key only once (#330)
Pass a Signing() object 'signer' to Package() and Package.sign_firmware(), instead of a 'key_file' string (path). Access the private key only once, when generating 'signer', which: 1. Fixes a security issue where caller must write private key to disk instead of passing it purely in memory eg: nrfutil --key-file $(secure-key-retrieval) 2. Gives a small speed improvement. Fixes #327 Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
- Loading branch information
1 parent
a0034f2
commit a540fe4
Showing
5 changed files
with
79 additions
and
48 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
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
Oops, something went wrong.