aboutsummaryrefslogtreecommitdiffstats
path: root/airpdcap/airpdcap_sha1.h
blob: c696a0b698cf6b5ee0a0fe2335a41190eebc2329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef	_AIRPDCAP_SHA1
#define	_AIRPDCAP_SHA1

/******************************************************************************/
/*	File includes																					*/
/*																										*/
#include "airpdcap_interop.h"
/*																										*/
/*																										*/
/******************************************************************************/

/******************************************************************************/
/*	Definitions																						*/
/*																										*/
/* Maximum HMAC block length																	*/
#define HMAC_MAX_BLOCK_LEN	SHA2_512_HMAC_BLOCK_LEN
#define HMAC_IPAD_VAL	0x36
#define HMAC_OPAD_VAL	0x5C
/*																										*/
/******************************************************************************/

/******************************************************************************/
/*	External function prototypes declarations												*/
/*																										*/
void AirPDcapAlgHmacSha1(
								 const UCHAR *key_len,
								 const size_t keylen,
								 UCHAR *buffer,
								 const size_t digest_len,
								 UCHAR digest[20])
					;
/*																										*/
/******************************************************************************/

#endif