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:
parent
ccaa55fb6e
commit
93a6e60e49
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue