-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
proposal: x/crypto/ssh: make the number of rounds for Passphrase encrypted keys configurable #68700
Labels
Milestone
Comments
ianlancetaylor
added
the
Proposal-Crypto
Proposal related to crypto packages or other security issues
label
Aug 1, 2024
CC @golang/security |
seankhliao
changed the title
proposal: x/crypto: Make the number of rounds for Passphrase encrypted keys configurable
proposal: x/crypto/ssh: make the number of rounds for Passphrase encrypted keys configurable
Aug 1, 2024
drakkan
added a commit
to drakkan/proposal
that referenced
this issue
Sep 15, 2024
…Options PrivateKeySigner is a Signer that can also return the associated crypto.Signer. This means ParseRawPrivateKey and ParseRawPrivateKeyWithPassphrase can be private now. MarshalPrivateKeyOptions defines the options to Marshal a private key in OpenSSH format. We can pass the passphrase as option to MarshalPrivateKey and so we don't need MarshalPrivateKeyWithPassphrase. Additionally we can also configure the salt rounds that is currently hard coded (see golang/go#68700) and easly add more options in the future.
Change https://go.dev/cl/613036 mentions this issue: |
gopherbot
pushed a commit
to golang/proposal
that referenced
this issue
Sep 15, 2024
… Options PrivateKeySigner is a Signer that can also return the associated crypto.Signer. This means ParseRawPrivateKey and ParseRawPrivateKeyWithPassphrase can be private now. MarshalPrivateKeyOptions defines the options to Marshal a private key in OpenSSH format. We can pass the passphrase as option to MarshalPrivateKey and so we don't need MarshalPrivateKeyWithPassphrase. Additionally we can also configure the salt rounds that is currently hard coded (see golang/go#68700) and easly add more options in the future. Change-Id: Id5c30f69fc600d19ef579aa2cf54dc8620677bb8 GitHub-Last-Rev: 98ee61e GitHub-Pull-Request: #52 Reviewed-on: https://go-review.googlesource.com/c/proposal/+/613036 Commit-Queue: Nicola Murino <[email protected]> Reviewed-by: Nicola Murino <[email protected]> Auto-Submit: Nicola Murino <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Proposal Details
Hey,
Currently, someone can create a private ssh-key with
ssh.MarshalPrivateKeyWithPassphrase()
. This API doesn't expose the configured rounds.The rounds are currently hard-coded in:
It would be nice if this is configurable as it is in
ssh-keygen -a
The text was updated successfully, but these errors were encountered: