1 /***************************************************************************\
3 * BitlBee - An IRC to IM gateway *
4 * Simple (but secure) ArcFour implementation for safer password storage. *
6 * Copyright 2007 Wilmer van der Gaast <wilmer@gaast.net> *
8 * This program is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU General Public License as published by *
10 * the Free Software Foundation; either version 2 of the License, or *
11 * (at your option) any later version. *
13 * This program is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU General Public License for more details. *
18 * You should have received a copy of the GNU General Public License along *
19 * with this program; if not, write to the Free Software Foundation, Inc., *
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
22 \***************************************************************************/
25 /* See arc.c for more information. */
37 G_GNUC_MALLOC
struct arc_state
*arc_keymaker( unsigned char *key
, int kl
, int cycles
);
38 unsigned char arc_getbyte( struct arc_state
*st
);
39 int arc_encode( char *clear
, int clear_len
, unsigned char **crypt
, char *password
, int pad_to
);
40 int arc_decode( unsigned char *crypt
, int crypt_len
, char **clear
, char *password
);