]> git.ipfire.org Git - thirdparty/u-boot.git/commit - lib/rc4.c
rc4: mark key as const
authorJohn Keeping <john@metanate.com>
Fri, 18 Nov 2022 16:13:17 +0000 (16:13 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 16 Jan 2023 10:01:10 +0000 (18:01 +0800)
commit93a6e60e49dd508888cde99514cbb4d6de569781
tree2c0397448ef0cf2b360872d3ea9b265e6c8b7680
parentccaa55fb6e77ac1fa37e2e9451ecb4e5b60bf57a
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>
include/rc4.h
lib/rc4.c