1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Copyright 2015 Google, Inc
5 * (C) Copyright 2008-2014 Rockchip Electronics
12 * rc4_encode() - encode a buf with the RC4 cipher
14 * @buf: Buffer to encode (it is overwrite in the process
15 * @len: Length of buffer in bytes
16 * @key: 16-byte key to use
18 void rc4_encode(unsigned char *buf, unsigned int len, unsigned char key[16]);