rc4.h 435 B

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