- Notifications
You must be signed in to change notification settings - Fork184
pkinit: Correctly pad Diffie-Hellman key#1177
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -230,6 +230,7 @@ generate_dh_keyblock(krb5_context context, | ||
size -= dh_gen_keylen; | ||
memmove(dh_gen_key + size, dh_gen_key, dh_gen_keylen); | ||
memset(dh_gen_key, 0, size); | ||
dh_gen_keylen += size; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Does the buggy client mean we need to try both possibilities now? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Yes, if we want to interoperate with buggy Heimdal clients without sporadic failures. For the other way round, interoperating with buggy Heimdal servers, the client probably would need to keep regenerating the key until it got a working one. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more.
I don’t know. I haven’t tested that. | ||
} | ||
} else if (client_params->keyex == USE_ECDH) { | ||
if (client_params->u.ecdh.public_key == NULL) { | ||