summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls_signer.c
diff options
context:
space:
mode:
authorjsing <>2024-03-28 01:49:29 +0000
committerjsing <>2024-03-28 01:49:29 +0000
commitee4f7c5caf1aa306d0a5b443f5c9133ae646925b (patch)
treeca5f083b55057a8157b330fc459a97936af57f81 /src/lib/libtls/tls_signer.c
parent45f98f789c6ef09f937c978393d67f6741b3fe1f (diff)
downloadopenbsd-ee4f7c5caf1aa306d0a5b443f5c9133ae646925b.tar.gz
openbsd-ee4f7c5caf1aa306d0a5b443f5c9133ae646925b.tar.bz2
openbsd-ee4f7c5caf1aa306d0a5b443f5c9133ae646925b.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/libtls/tls_signer.c')
0 files changed, 0 insertions, 0 deletions