-
Notifications
You must be signed in to change notification settings - Fork 727
crypto: require matching keys for CertifiedKey construction #2553
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
base: main
Are you sure you want to change the base?
Conversation
This forces creation via one of the defined constructors.
Error running benchmarksCause:
Checkout details:
LogsCandidatecommand:
cwd:
stdout:
stderr:
command:
cwd:
stdout: empty. stderr: empty. command:
cwd:
stdout: empty. stderr:
command:
cwd:
stdout: empty. stderr:
command:
cwd:
stdout: empty. stderr:
command:
cwd:
stdout: empty. stderr:
BaselineNot available |
4c123f9
to
b7dae68
Compare
b7dae68
to
5343fc9
Compare
5343fc9
to
fd69e8a
Compare
Haven't reviewed this in detail, but I think we need to continue avoiding:
|
Self::InconsistentKeys(why) => { | ||
write!(f, "keys may not be consistent: {why:?}") | ||
Self::InconsistentKeys => { | ||
write!(f, "public key does not match private key") |
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.
write!(f, "public key does not match private key") | |
write!(f, "public key in certificate does not match private key") |
fn public_key(&self) -> Option<SubjectPublicKeyInfoDer<'_>>; | ||
fn public_key(&self) -> SubjectPublicKeyInfoDer<'_>; |
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.
Obsolete rustdoc comment above this.
Would be good to get these things mentioned/described in comments at least:
What specifically are the constraints here? Does this mean we can't even make the change to have
Why not? |
One more part of #2119.