rc4.h 610 B

12345678910111213141516171819202122
  1. /*
  2. * RC4 stream cipher
  3. * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. * Alternatively, this software may be distributed under the terms of BSD
  10. * license.
  11. *
  12. * See README and COPYING for more details.
  13. */
  14. #ifndef RC4_H
  15. #define RC4_H
  16. void rc4_skip(const u8 *key, size_t keylen, size_t skip,
  17. u8 *data, size_t data_len);
  18. void rc4(u8 *buf, size_t len, const u8 *key, size_t key_len);
  19. #endif /* RC4_H */