From owner-freebsd-mobile Fri May 5 17:24:38 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by hub.freebsd.org (Postfix) with ESMTP id AB28037B907 for ; Fri, 5 May 2000 17:24:28 -0700 (PDT) (envelope-from darrylo@sr.hp.com) Received: from mina.sr.hp.com (mina.sr.hp.com [15.4.42.247]) by palrel3.hp.com (Postfix) with ESMTP id BAF3CE77C; Fri, 5 May 2000 17:16:39 -0700 (PDT) Received: from localhost (darrylo@localhost [127.0.0.1]) by mina.sr.hp.com with ESMTP (8.9.3 (PHNE_18979)/8.7.3 SMKit7.0) id RAA15450; Fri, 5 May 2000 17:16:30 -0700 (PDT) Message-Id: <200005060016.RAA15450@mina.sr.hp.com> To: freebsd-mobile@freebsd.org Cc: wpaul@ctr.columbia.edu Subject: wicontrol & buggy hex encryption keys? Reply-To: Darryl Okahata Mime-Version: 1.0 (generated by tm-edit 1.5) Content-Type: text/plain; charset=US-ASCII Date: Fri, 05 May 2000 17:16:28 PDT From: Darryl Okahata Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I'm writing some docs on setting up a wireless home lan w/FreeBSD, and I've been running into some strangeness with wicontrol(8). In particular, the wicontrol man page has this note: Note: currently, the field in the structure used to program the key into the NIC is only 14 bytes long, not 16. I'm not sure how this is supposed to allow 128 bits of key info for the gold cards. There is code in wicontrol.c that limits the key to "14 bytes"; however, it appears that the length check is being applied to the length of the key string, regardless of whether or not the string is in hex. In hex, a 14-char limit only allows one to specify 6 key bytes. Is this intentional, or is this a bug? Also, in regards to the mysterious 14-byte limit, check out: http://mail-index.netbsd.org/tech-net/2000/02/04/0001.html It appears that, for 64-bit (silver) cards, you can really only specify 40 (5 bytes) of the 64 bits. Interestingly, for gold cards, an additional 64 bits is 8 bytes, and 5 + 8 gives "13". Add an extra byte for a possible '\0', and you have 14. I wonder if this is what's going on (yuk, this would mean that the sequence number length hasn't increased). -- Darryl Okahata darrylo@soco.agilent.com DISCLAIMER: this message is the author's personal opinion and does not constitute the support, opinion, or policy of Agilent Technologies, or of the little green men that have been following him all day. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message