diff options
| author | John Keeping <[email protected]> | 2022-11-18 16:13:17 +0000 |
|---|---|---|
| committer | Kever Yang <[email protected]> | 2023-01-16 18:01:10 +0800 |
| commit | 93a6e60e49dd508888cde99514cbb4d6de569781 (patch) | |
| tree | 2c0397448ef0cf2b360872d3ea9b265e6c8b7680 /include | |
| parent | ccaa55fb6e77ac1fa37e2e9451ecb4e5b60bf57a (diff) | |
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 <[email protected]>
Reviewed-by: Philipp Tomsich <[email protected]>
Reviewed-by: Kever Yang <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/rc4.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rc4.h b/include/rc4.h index c1ff1349d4b..d1257f20a44 100644 --- a/include/rc4.h +++ b/include/rc4.h @@ -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 |
