rc4.h 435 B

123456789101112131415161718192021
  1. /*
  2. * (C) Copyright 2015 Google, Inc
  3. *
  4. * (C) Copyright 2008-2014 Rockchip Electronics
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. #ifndef __RC4_H
  9. #define __RC4_H
  10. /**
  11. * rc4_encode() - encode a buf with the RC4 cipher
  12. *
  13. * @buf: Buffer to encode (it is overwrite in the process
  14. * @len: Length of buffer in bytes
  15. * @key: 16-byte key to use
  16. */
  17. void rc4_encode(unsigned char *buf, unsigned int len, unsigned char key[16]);
  18. #endif