diff options
author | Anders Broman <anders.broman@ericsson.com> | 2011-09-12 08:23:15 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2011-09-12 08:23:15 +0000 |
commit | c7c6bbf831e23cb2db4b1cedcd22c8c059ab2f8f (patch) | |
tree | 54a95e93aff9342fe7eef41174ae94912145773c /wsutil/crc32.h | |
parent | 7a0cb7ea93b3a7222d607899c658e281189d67e9 (diff) | |
download | wireshark-c7c6bbf831e23cb2db4b1cedcd22c8c059ab2f8f.tar.gz |
Move airpcap_wep.c to /wsutil
svn path=/trunk/; revision=38969
Diffstat (limited to 'wsutil/crc32.h')
-rw-r--r-- | wsutil/crc32.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wsutil/crc32.h b/wsutil/crc32.h index 854f5fa035..514a437596 100644 --- a/wsutil/crc32.h +++ b/wsutil/crc32.h @@ -43,6 +43,8 @@ extern "C" { #define CRC32C(c,d) (c=(c>>8)^crc32c_table_lookup((c^(d))&0xFF)) +extern const guint32 crc32_ccitt_table[256]; + /** Lookup the crc value in the crc32c_table @param pos Position in the table. */ extern guint32 crc32c_table_lookup (guchar pos); @@ -73,6 +75,13 @@ extern guint32 crc32_ccitt(const guint8 *buf, guint len); @return The CRC32 CCITT checksum (using the given seed). */ extern guint32 crc32_ccitt_seed(const guint8 *buf, guint len, guint32 seed); + +int AirPDcapWepDecrypt( + const guchar *seed, + const size_t seed_len, + guchar *cypher_text, + const size_t data_len); + #ifdef __cplusplus } #endif /* __cplusplus */ |