decrypt drsuapi attributes
[wireshark-sm.git] / epan / crypt / wep-wpadefs.h
blobae6aa988cf5e0f68db2765e577805a4aeb2fead5
1 /* wap-wpadefs.h
3 * Copyright (c) 2006 CACE Technologies, Davis (California)
4 * All rights reserved.
6 * SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only)
7 */
9 #ifndef __WEP_WPADEFS_H__
10 #define __WEP_WPADEFS_H__
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
16 /** @file
17 * WEP and WPA definitions
19 * Copied from airpcap.h.
22 /**
23 * Maximum number of encryption keys. This determines the size of
24 * structures in packet-ieee80211.c, as well as the number of keys
25 * in the IEEE 802.11 preferences.
27 #define MAX_ENCRYPTION_KEYS 64
29 /**
30 * Maximum size of a WEP key, in bytes. This is the size of an entry in the
31 * AirpcapWepKeysCollection structure.
33 #define WEP_KEY_MAX_SIZE 32
35 /**
36 * WEP_KEY_MAX_SIZE is in bytes, but each byte is represented as a
37 * hexadecimal string.
39 #define WEP_KEY_MAX_CHAR_SIZE (WEP_KEY_MAX_SIZE*2)
41 /**
42 * WEP_KEY_MAX_SIZE is in bytes, this is in bits...
44 #define WEP_KEY_MAX_BIT_SIZE (WEP_KEY_MAX_SIZE*8)
46 #define WEP_KEY_MIN_CHAR_SIZE 2
47 #define WEP_KEY_MIN_BIT_SIZE 8
49 /**
50 * WPA key sizes.
52 #define WPA_KEY_MAX_SIZE 63 /* 63 chars followed by a '\0' */
54 #define WPA_KEY_MAX_CHAR_SIZE (WPA_KEY_MAX_SIZE*1)
55 #define WPA_KEY_MAX_BIT_SIZE (WPA_KEY_MAX_SIZE*8)
56 #define WPA_KEY_MIN_CHAR_SIZE 8
57 #define WPA_KEY_MIN_BIT_SIZE (WPA_KEY_MIN_CHAR_SIZE*8)
59 /**
60 * SSID sizes
62 #define WPA_SSID_MAX_SIZE 32
64 #define WPA_SSID_MAX_CHAR_SIZE (WPA_SSID_MAX_SIZE*1)
65 #define WPA_SSID_MAX_BIT_SIZE (WPA_SSID_MAX_SIZE*8)
66 #define WPA_SSID_MIN_CHAR_SIZE 0
67 #define WPA_SSID_MIN_BIT_SIZE (WPA_SSID_MIN_CHAR_SIZE*8)
69 /**
70 * Prefix definitions for preferences
72 #define STRING_KEY_TYPE_WEP "wep"
73 #define STRING_KEY_TYPE_WPA_PWD "wpa-pwd"
74 #define STRING_KEY_TYPE_WPA_PSK "wpa-psk"
75 #define STRING_KEY_TYPE_TK "tk"
76 #define STRING_KEY_TYPE_MSK "msk"
79 #ifdef __cplusplus
81 #endif
83 #endif /* __WEP_WPADEFS_H__ */