Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
jsutton24 wants to merge1 commit intoheimdal:master
base:master
Choose a base branch
Loading
fromjsutton24:dh-pad
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletionskdc/pkinit.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Does the buggy client mean we need to try both possibilities now?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The 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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Back in 2010 there were interop problems with MIT which resulted in the submission of both7639f83 and then6e05462. Does the existing code successfully interoperate with MIT?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Does the existing code successfully interoperate with MIT?

I don’t know. I haven’t tested that.

}
} else if (client_params->keyex == USE_ECDH) {
if (client_params->u.ecdh.public_key == NULL) {
Expand Down
1 change: 1 addition & 0 deletionslib/krb5/pkinit.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1493,6 +1493,7 @@ pk_rd_pa_reply_dh(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;
}

} else {
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp