9#ifndef _DOT11DECRYPT_USER_H
10#define _DOT11DECRYPT_USER_H
17#include "ws_symbol_export.h"
27#define DOT11DECRYPT_KEY_TYPE_WEP 0
28#define DOT11DECRYPT_KEY_TYPE_WEP_40 1
29#define DOT11DECRYPT_KEY_TYPE_WEP_104 2
30#define DOT11DECRYPT_KEY_TYPE_WPA_PWD 3
31#define DOT11DECRYPT_KEY_TYPE_WPA_PSK 4
32#define DOT11DECRYPT_KEY_TYPE_WPA_PMK 5
33#define DOT11DECRYPT_KEY_TYPE_TK 6
34#define DOT11DECRYPT_KEY_TYPE_MSK 7
36#define DOT11DECRYPT_KEY_TYPE_TKIP 100
37#define DOT11DECRYPT_KEY_TYPE_CCMP 101
38#define DOT11DECRYPT_KEY_TYPE_CCMP_256 102
39#define DOT11DECRYPT_KEY_TYPE_GCMP 103
40#define DOT11DECRYPT_KEY_TYPE_GCMP_256 104
41#define DOT11DECRYPT_KEY_TYPE_UNKNOWN -1
44#define DOT11DECRYPT_WEP_KEY_MINLEN 1
45#define DOT11DECRYPT_WEP_KEY_MAXLEN 32
46#define DOT11DECRYPT_WEP_40_KEY_LEN 5
47#define DOT11DECRYPT_WEP_104_KEY_LEN 13
49#define DOT11DECRYPT_WPA_PASSPHRASE_MIN_LEN 8
50#define DOT11DECRYPT_WPA_PASSPHRASE_MAX_LEN 63
51#define DOT11DECRYPT_WPA_SSID_MIN_LEN 0
52#define DOT11DECRYPT_WPA_SSID_MAX_LEN 32
53#define DOT11DECRYPT_WPA_PMK_MAX_LEN 48
54#define DOT11DECRYPT_WPA_PWD_PSK_LEN 32
55#define DOT11DECRYPT_TK_MAX_LEN 32
56#define DOT11DECRYPT_MSK_MIN_LEN 64
57#define DOT11DECRYPT_MSK_MAX_LEN 128
122 unsigned char WepKey[DOT11DECRYPT_WEP_KEY_MAXLEN];
138 unsigned char Psk[DOT11DECRYPT_WPA_PMK_MAX_LEN];
139 unsigned char Ptk[DOT11DECRYPT_WPA_PTK_MAX_LEN];
149 uint8_t Tk[DOT11DECRYPT_TK_MAX_LEN];
154 uint8_t Msk[DOT11DECRYPT_MSK_MAX_LEN];
177 char Ssid[DOT11DECRYPT_WPA_SSID_MAX_LEN];
struct _DOT11DECRYPT_KEYS_COLLECTION DOT11DECRYPT_KEYS_COLLECTION
WS_DLL_PUBLIC decryption_key_t * parse_key_string(char *key_string, uint8_t key_type, char **error)
Definition dot11decrypt.c:2734
WS_DLL_PUBLIC void free_key_string(decryption_key_t *dk)
Definition dot11decrypt.c:3011
struct _DOT11DECRYPT_KEY_ITEM DOT11DECRYPT_KEY_ITEM
Definition dot11decrypt_user.h:153
Definition dot11decrypt_user.h:158
char Ssid[DOT11DECRYPT_WPA_SSID_MAX_LEN]
Definition dot11decrypt_user.h:177
size_t PassphraseLen
Definition dot11decrypt_user.h:170
size_t SsidLen
Definition dot11decrypt_user.h:181
char Passphrase[DOT11DECRYPT_WPA_PASSPHRASE_MAX_LEN]
Definition dot11decrypt_user.h:166
Definition dot11decrypt_user.h:148
Definition dot11decrypt_user.h:137
Definition dot11decrypt_user.h:111
size_t WepKeyLen
Definition dot11decrypt_user.h:127
unsigned char WepKey[DOT11DECRYPT_WEP_KEY_MAXLEN]
Definition dot11decrypt_user.h:122
Definition dot11decrypt_user.h:84
uint8_t KeyType
Definition dot11decrypt_user.h:93
Definition dot11decrypt_user.h:188
size_t nKeys
Definition dot11decrypt_user.h:192
DOT11DECRYPT_KEY_ITEM Keys[256]
Definition dot11decrypt_user.h:197
Definition dot11decrypt_user.h:74
Definition dot11decrypt_user.h:110