nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* |
2 | Unix SMB/CIFS implementation. |
||
3 | |||
4 | a partial implementation of RC4 designed for use in the |
||
5 | SMB authentication protocol |
||
6 | |||
7 | Copyright (C) Andrew Tridgell 1998 |
||
8 | |||
9 | This program is free software; you can redistribute it and/or modify |
||
10 | it under the terms of the GNU General Public License as published by |
||
11 | the Free Software Foundation; either version 2 of the License, or |
||
12 | (at your option) any later version. |
||
13 | |||
14 | This program is distributed in the hope that it will be useful, |
||
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
17 | GNU General Public License for more details. |
||
18 | |||
19 | You should have received a copy of the GNU General Public License |
||
20 | along with this program; if not, write to the Free Software |
||
21 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
||
22 | */ |
||
23 | |||
24 | #ifndef __RC4_H__ |
||
25 | #define __RC4_H__ |
||
26 | |||
27 | #include "ws_symbol_export.h" |
||
28 | |||
29 | typedef struct _rc4_state_struct { |
||
30 | unsigned char s_box[256]; |
||
31 | unsigned char index_i; |
||
32 | unsigned char index_j; |
||
33 | } rc4_state_struct; |
||
34 | |||
35 | WS_DLL_PUBLIC |
||
36 | void crypt_rc4_init(rc4_state_struct *rc4_state, |
||
37 | const unsigned char *key, int key_len); |
||
38 | |||
39 | WS_DLL_PUBLIC |
||
40 | void crypt_rc4(rc4_state_struct *rc4_state, unsigned char *data, int data_len); |
||
41 | |||
42 | #endif |