2 /* arcfour.h --- The arcfour stream cipher
3 * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005
4 * Free Software Foundation, Inc.
6 * This file is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published
8 * by the Free Software Foundation; either version 2, or (at your
9 * option) any later version.
11 * This file is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this file; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 /* Code from Libgcrypt adapted for gnulib by Simon Josefsson. */
30 #define ARCFOUR_SBOX_SIZE 256
33 uint8_t sbox[ARCFOUR_SBOX_SIZE];
36 Arcfour(const uint8_t *key, size_t keylen);
37 void stream(uint8_t *outbuf, size_t length);
40 #endif /* ARCFOUR_H */