GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / include / bcmcrypto / rc4.h
blob7626e0b3f8f827c6c4e74403732dbedf2674a220
1 /*
2 * rc4.h
3 * RC4 stream cipher
5 * Copyright (C) 2012, Broadcom Corporation. All Rights Reserved.
6 *
7 * Permission to use, copy, modify, and/or distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
14 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
16 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
17 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 * $Id: rc4.h 241182 2011-02-17 21:50:03Z $
22 #ifndef _RC4_H_
23 #define _RC4_H_
25 #include <typedefs.h>
27 #define RC4_STATE_NBYTES 256
29 typedef struct rc4_ks {
30 uchar state[RC4_STATE_NBYTES];
31 uchar x;
32 uchar y;
33 } rc4_ks_t;
35 void BCMROMFN(prepare_key)(uchar *key_data_ptr, int key_data_len, rc4_ks_t *key);
37 void BCMROMFN(rc4)(uchar *buffer_ptr, int buffer_len, rc4_ks_t *key);
39 #endif /* _RC4_H_ */