diff options
author | jsing <> | 2024-03-28 01:49:29 +0000 |
---|---|---|
committer | jsing <> | 2024-03-28 01:49:29 +0000 |
commit | efdc2fdd7e31b41f518a70445b050722a765ff02 (patch) | |
tree | ca5f083b55057a8157b330fc459a97936af57f81 /src/lib/libcrypto/cryptlib.c | |
parent | 852ce4f4fa6a26ebd4801907061f85fb0c1f4e99 (diff) | |
download | openbsd-efdc2fdd7e31b41f518a70445b050722a765ff02.tar.gz openbsd-efdc2fdd7e31b41f518a70445b050722a765ff02.tar.bz2 openbsd-efdc2fdd7e31b41f518a70445b050722a765ff02.zip |
Use C functions for RC4 public API.
Rather than having public API switch between C and assembly, always
use C functions as entry points, which then call an assembly
implementation (if available). This makes it significantly easier
to deal with symbol aliasing/namespaces and it also means we
benefit from vulnerability prevention provided by the C compiler.
Rename the assembly generated functions from RC4() to rc4_internal()
and RC4_set_key() to rc4_set_key_internal(). Always include rc4.c
and change it to use defines that are similar to those used in BN.
ok beck@ joshua@ tb@
Diffstat (limited to 'src/lib/libcrypto/cryptlib.c')
0 files changed, 0 insertions, 0 deletions