-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make interface.generate_*_keypair funcs protected
'interface.generate_and_write{rsa,ed25519.ecdsa}_keypair' functions were recently changed to disable default password prompts and generally make the private key encryption behavior more explicit. This change also made it so that a default call of the functions would leave private keys unencrypted, which is not desirable as per the principle of 'secure defaults' (see heated discussion in #288). This commit makes the corresponding functions protected, so that they may still be used internally (in securesystemslib/in-toto/tuf). Corresponding public interface functions that neither offer unexpected prompts, and encrypt by default will be added in subsequent commits.
- Loading branch information
Showing
3 changed files
with
34 additions
and
34 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