-
Notifications
You must be signed in to change notification settings - Fork 156
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
pkcs1v15: make *_with_prefix
methods the default
#290
Conversation
Renames the following: - `SigningKey::new` => `SigningKey::new_unprefixed` - `SigningKey::new_with_prefix` => `SigningKey::new` - `VerifyingKey::new` => `VerifyingKey::new_unprefixed` - `VerifyingKey::new_with_prefix` => `VerifyingKey::new` The `*_with_prefix` methods are preserved with a deprecation warning, which should help people migrate to the new versions. Closes #238
Per #238 having an empty prefix seems to be quite rare. People are reaching for This change might be confusing for anyone who happens to actually be using empty prefixes, though I haven't encountered anyone who is personally. |
cc @lumag |
Ack, LGTM. |
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.
👍
Similar to #290, this renames the following: - `Pss::new` => `Pss::new_unsalted` - `Pss::new_with_salt` => `Pss:new` - `Pss::new_blinded` => `Pss::new_blinded_unsalted` - `Pss::new_blinded_with_salt` => `Pss::new_blinded` - `SigningKey::new` => `SigningKey::new_unsalted` - `SigningKey::new_with_salt_len` => `SigningKey::new` - `SigningKey::random` => `SigningKey::random_unsalted` - `SigningKey::random_with_salt_len` => `SigningKey::random` The `*_with_salt` methods are preserved with a deprecation warning, which should help people migrate to the new versions. This also removes the `From<RsaPrivateKey>` impl for `SigningKey`, since users should consider up front whether or not they need a salt rather than defaulting to unsalted.
Following #290, which amended `pkcs1v15::SigningKey`, this commit makes a corresponding change to `Pkcs1v15Sign` so the method name is consistent with `SigningKey::new_unprefixed`
Following #290, which amended `pkcs1v15::SigningKey`, this commit makes a corresponding change to `Pkcs1v15Sign` so the method name is consistent with `SigningKey::new_unprefixed`
Renames the following:
SigningKey::new
=>SigningKey::new_unprefixed
SigningKey::new_with_prefix
=>SigningKey::new
VerifyingKey::new
=>VerifyingKey::new_unprefixed
VerifyingKey::new_with_prefix
=>VerifyingKey::new
The
*_with_prefix
methods are preserved with a deprecation warning, which should help people migrate to the new versions.Closes #238