rc4: mark key as const
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>
This commit is contained in:
@@ -15,6 +15,6 @@
|
||||
* @len: Length of buffer in bytes
|
||||
* @key: 16-byte key to use
|
||||
*/
|
||||
void rc4_encode(unsigned char *buf, unsigned int len, unsigned char key[16]);
|
||||
void rc4_encode(unsigned char *buf, unsigned int len, const unsigned char key[16]);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user