Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Simon Glass | d0d58d2 | 2015-06-23 15:39:07 -0600 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2015 Google, Inc |
| 4 | * |
| 5 | * (C) Copyright 2008-2014 Rockchip Electronics |
Simon Glass | d0d58d2 | 2015-06-23 15:39:07 -0600 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __RC4_H |
| 9 | #define __RC4_H |
| 10 | |
| 11 | /** |
| 12 | * rc4_encode() - encode a buf with the RC4 cipher |
| 13 | * |
| 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 |
| 17 | */ |
John Keeping | 02f1592 | 2022-11-18 16:13:17 +0000 | [diff] [blame] | 18 | void rc4_encode(unsigned char *buf, unsigned int len, const unsigned char key[16]); |
Simon Glass | d0d58d2 | 2015-06-23 15:39:07 -0600 | [diff] [blame] | 19 | |
| 20 | #endif |