mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 02:08:38 +00:00
93a6e60e49
Key data is never written so the parameter can be const, which allows putting fixed keys in .rodata. Signed-off-by: John Keeping <john@metanate.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@vrull.eu> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
20 lines
441 B
C
20 lines
441 B
C
/* 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
|