Is a 64-bit WEP key supported?

Discussions related to the WiServer add-on code for WiShield. WiServer is a friendly, easy-to-use front end for webserver and webclient usages.

Moderator: shard7

Is a 64-bit WEP key supported?

Postby Uberhund » Mon Aug 17, 2009 7:24 pm

Hopeful that I will someday get even one of the WiShield sketches to compile without errors for my brand new WiShield, I have begun looking to the future and the WiServer.pde example sketch.

The WEP key is evidently entered into the area of the sketch as shown below:
Code: Select all
// WEP 128-bit keys
// sample HEX keys
prog_uchar wep_keys[] PROGMEM = { (bunch of HEX digits separated by commas here)


However, my wireless environment is WEP encoded to 64-bits, thus only a 10-digit HEX string is required for Key 0. Can I simply plug my 10 HEX characters into the progmem space and hope that WiShield will somehow figure out how to log onto the network?
If you're going to stand while riding the escalator - please stand to the right so others may pass.

http://www.youtube.com/user/PretzelTheDog - my geek projects
User avatar
Uberhund
 
Posts: 20
Joined: Mon Aug 10, 2009 12:34 pm

Re: Is a 64-bit WEP key supported?

Postby benquark » Mon Aug 17, 2009 11:02 pm

Yes, it does support 64-bit WEP.

You will have to put your key into the array in the sketch and zero out all the unused bytes,
Code: Select all
// WEP 64-bit keys
// sample HEX keys
prog_uchar wep_keys[] PROGMEM = {
              0x01,0x02,0x03,0x04,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Key 0
              0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Key 1
              0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Key 2
              0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00  // Key 3
            };


Also, change keyLen from 13 to 5 in the following function in g2100.c,
Code: Select all
void zg_write_wep_key(U8* cmd_buf)
{
   zg_wep_key_req_t* cmd = (zg_wep_key_req_t*)cmd_buf;

   cmd->slot = 3;      // WEP key slot
   cmd->keyLen = 5;   // Key length: 5 bytes (64-bit WEP); 13 bytes (128-bit WEP)
   cmd->defID = 0;      // Default key ID: Key 0, 1, 2, 3
   cmd->ssidLen = ssid_len;
   memset(cmd->ssid, 0x00, 32);
   memcpy_P(cmd->ssid, ssid, ssid_len);
   memcpy_P(cmd->key, wep_keys, ZG_MAX_ENCRYPTION_KEYS * ZG_MAX_ENCRYPTION_KEY_SIZE);

   return;
}
benquark
 
Posts: 63
Joined: Wed May 06, 2009 3:57 pm

Re: Is a 64-bit WEP key supported?

Postby Uberhund » Tue Aug 18, 2009 7:47 am

Thanks for the tip, Benquark.

The change was made, and I deleted the corresponding .o file.

Nice to have your expert help while I try to bring this thing up.
If you're going to stand while riding the escalator - please stand to the right so others may pass.

http://www.youtube.com/user/PretzelTheDog - my geek projects
User avatar
Uberhund
 
Posts: 20
Joined: Mon Aug 10, 2009 12:34 pm

Re: Is a 64-bit WEP key supported?

Postby techiebot » Sun Dec 27, 2009 7:32 pm

OK, one last (I hope) question. Looks like there are only 5 hex numbers to enter. But my key is 9709462240. Does that mean I only put in the first 5 digits? i.e. 0x39,0x37,0x30,0x39,0x34, and the rest of the digits are 0x00. Is this true?

Thanks so very much!!!
techiebot
 
Posts: 12
Joined: Sun Dec 27, 2009 1:25 pm

Re: Is a 64-bit WEP key supported?

Postby GregEigsti » Sun Dec 27, 2009 7:37 pm

I think you will want to enter in all ten - two per hex digit.

9709462240 becomes 0x97, 0x09, 0x46, 0x22, 0x40

Let us know if it works!
Greg
Check out the wiki!
uIP Stack Docs
Compatible Access Point List
WiShield user contrib branch - DNS, DHCP, AP Scanning, bug fixes, etc.
SlackLab.org - My geek projects blog.
User avatar
GregEigsti
 
Posts: 1067
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)
  • Website

Re: Is a 64-bit WEP key supported?

Postby MTT727 » Mon Sep 20, 2010 11:01 am

It worked for me.

Many thanks.
Mac
MTT727
 
Posts: 6
Joined: Mon Sep 20, 2010 10:59 am


Return to WiServer

Who is online

Users browsing this forum: No registered users and 2 guests