]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitffcced93c776702eb6c73aef58fcf6b200272fff
tree2c0397448ef0cf2b360872d3ea9b265e6c8b7680
parent3d301549755d186181777498748e63ec25cbbd93
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