~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: d1257f20a44c27944a7a965c7a6d47641bc19826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * (C) Copyright 2015 Google, Inc
 *
 * (C) Copyright 2008-2014 Rockchip Electronics
 */

#ifndef __RC4_H
#define __RC4_H

/**
 * rc4_encode() - encode a buf with the RC4 cipher
 *
 * @buf:	Buffer to encode (it is overwrite in the process
 * @len:	Length of buffer in bytes
 * @key:	16-byte key to use
 */
void rc4_encode(unsigned char *buf, unsigned int len, const unsigned char key[16]);

#endif