mirror of
https://github.com/drasko/open-ameba.git
synced 2024-11-24 23:14:17 +00:00
eeb7f808ae
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
39 lines
1.4 KiB
C
39 lines
1.4 KiB
C
/******************************************************************************
|
|
*
|
|
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of version 2 of the GNU General Public License as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with
|
|
* this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
|
|
*
|
|
*
|
|
******************************************************************************
|
|
*
|
|
* This is ROM code section.
|
|
*
|
|
******************************************************************************/
|
|
#ifndef ROM_ARC4_H
|
|
#define ROM_ARC4_H
|
|
|
|
struct arc4context
|
|
{
|
|
u32 x;
|
|
u32 y;
|
|
u8 state[256];
|
|
};
|
|
|
|
u32 crc32_get(u8 *buf, sint len);
|
|
void rt_arc4_init(struct arc4context *parc4ctx, u8 * key,u32 key_len);
|
|
void rt_arc4_crypt( struct arc4context *parc4ctx, u8 * dest, u8 * src, u32 len);
|
|
|
|
|
|
#endif //ROM_ARC4_H
|