MSCHAPv2 Question on maximum password size

Soh Kam Yung sohkamyung
Thu Jul 23 03:18:18 PDT 2009


I am writing a C-based wpa_supplicant front end for a linux based
system to join a WPA-Enterprise PEAP-MSCHAPv2 network.

I looked at the MSCHAPv2 document []
to determine the maximum char array size for the username and

In Section 8 of the document, the Pseudocode mentions the following:

IN  0-to-256-char         UserName
IN  0-to-256-unicode-char Password

For UserName, the maximum array size is 256 chars.

But for Password, what should be the maximum char array size?

Soh Kam Yung
my Google Reader Shared links:
my Google Reader Shared SFAS links:

More information about the Hostap mailing list