GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / include / bcmcrypto / tkhash.h
blobd1b76298c0972525d609580c68f9743ff69553d9
1 /*
2 * tkhash.h
3 * Prototypes for TKIP hash functions.
5 * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation; the
6 * contents of this file may not be disclosed to third parties, copied or
7 * duplicated in any form, in whole or in part, without the prior written
8 * permission of Broadcom Corporation.
10 * Copyright (C) 2012, Broadcom Corporation. All Rights Reserved.
12 * Permission to use, copy, modify, and/or distribute this software for any
13 * purpose with or without fee is hereby granted, provided that the above
14 * copyright notice and this permission notice appear in all copies.
16 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
17 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
18 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
19 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
20 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
21 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
22 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
24 * $Id: tkhash.h 241182 2011-02-17 21:50:03Z $
27 #ifndef _TKHASH_H_
28 #define _TKHASH_H_
30 #include <typedefs.h>
32 #define TKHASH_P1_KEY_SIZE 10 /* size of TKHash Phase1 output, in bytes */
33 #define TKHASH_P2_KEY_SIZE 16 /* size of TKHash Phase2 output */
35 extern void BCMROMFN(tkhash_phase1)(uint16 *P1K, const uint8 *TK, const uint8 *TA, uint32 IV32);
36 extern void BCMROMFN(tkhash_phase2)(uint8 *RC4KEY, const uint8 *TK, const uint16 *P1K, uint16 IV16);
38 #endif /* _TKHASH_H_ */