/*====================================================================*
*
* keys.h -
*
*. Intellon Linux Toolkit;
*: Snapshot 2006-2008 by Intellon Corporation; charles.maier@atheros.com;
*; For demonstration or evaluation only; Not for production use;
*
*--------------------------------------------------------------------*/
#ifndef KEYS_HEADER
#define KEYS_HEADER
/*====================================================================*
* system header files;
*--------------------------------------------------------------------*/
#include <stdint.h>
/*====================================================================*
* custom header files;
*--------------------------------------------------------------------*/
#include "../tools/types.h"
#include "../crypt/HPAVKey.h"
/*====================================================================*
* constants;
*--------------------------------------------------------------------*/
#define PASSWORD_SILENCE (1 << 0)
#define PASSWORD_VERBOSE (1 << 1)
#define VENDOR_MAX 0x00FFFFFF
#define DEVICE_MAX 0x00FFFFFF
#define DAK1 "689F074B8B0275A2710B0B5779AD1630"
#define DAK2 "F084B4E8F6069FF1300C9BDB812367FF"
#define NMK1 "50D3E4933F855B7040784DF815AA8DB7"
#define NMK2 "B59319D7E8157BA001B018669CCEE30D"
#define KEYS 3
/*====================================================================*
* variables;
*--------------------------------------------------------------------*/
typedef struct key
{
const char * phrase;
uint8_t DAK [HPAVKEY_DAK_LEN];
uint8_t NMK [HPAVKEY_NMK_LEN];
}
key;
/*====================================================================*
*
*--------------------------------------------------------------------*/
extern const struct key keys [];
/*====================================================================*
* functions;
*--------------------------------------------------------------------*/
void MACPasswords (uint32_t vendor, uint32_t device, unsigned devices, unsigned letters, unsigned bunch, unsigned space, flag_t flags);
/*====================================================================*
*
*--------------------------------------------------------------------*/
#endif