diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2011-08-31 11:47:27 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2011-08-31 11:47:27 +0000 |
commit | 84b3c5da84829bff2d89bcdc4351ab451a332ce8 (patch) | |
tree | dcba77617a427261533eace98c505c5cfc198a33 /epan/crypt | |
parent | 5198e05412667027ef63aaabc097f11fb8f7f781 (diff) |
Make lookup functions for accessing crc32c_table and crc32_ccitt_table.
svn path=/trunk/; revision=38817
Diffstat (limited to 'epan/crypt')
-rw-r--r-- | epan/crypt/airpdcap_wep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/crypt/airpdcap_wep.c b/epan/crypt/airpdcap_wep.c index 6007f115ba..9353d06f77 100644 --- a/epan/crypt/airpdcap_wep.c +++ b/epan/crypt/airpdcap_wep.c @@ -80,7 +80,7 @@ INT AirPDcapWepDecrypt( j = (j + S[i]) & 0xff; S_SWAP(i, j); *cypher_text ^= S[(S[i] + S[j]) & 0xff]; - crc = crc32_ccitt_table[(crc ^ *cypher_text) & 0xff] ^ (crc >> 8); + crc = crc32_ccitt_table_lookup((crc ^ *cypher_text) & 0xff) ^ (crc >> 8); cypher_text++; } |