]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS: Pad DH Public Key and Shared Key to 192 octets
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 22 Jan 2009 17:32:58 +0000 (19:32 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 22 Jan 2009 17:32:58 +0000 (19:32 +0200)
commitb3ddab21223455c147bb18334745eddc5773b487
tree1f7b2d08603fd5ed373b076eae56e4f4c09bd6ed
parent96fa129da9f742e76fe0bf9febfeb0ba3042b5c5
WPS: Pad DH Public Key and Shared Key to 192 octets

WPS spec is not very specific on the presentation used for the DH
values. The Public Key attribute is described to be 192 octets long, so
that could be interpreted to imply that other places use fixed length
presentation for the DH keys. Change the DH derivation to use fixed
length bufferd by zero padding them from beginning if needed. This can
resolve infrequent (about 1/256 chance for both Public Key and Shared
Key being shorter) interop issues.
src/utils/wpabuf.c
src/utils/wpabuf.h
src/wps/wps_attr_build.c
src/wps/wps_common.c