opnsense-src/lib/libc/amd64/string/Makefile.inc
Robert Clausecker 9a6a587e67 lib/libc/amd64/string: add timingsafe_memcmp() assembly implementation
Conceptually very similar to timingsafe_bcmp(), but with comparison
logic inspired by Elijah Stone's fancy memcmp. A baseline (SSE)
implementation was omitted this time as I was not able to get it to
perform adequately.  Best I got was 8% over the scalar version for
long inputs, but slower for short inputs.

Sponsored by:	The FreeBSD Foundation
Approved by:	security (cperciva)
Inspired by:	https://github.com/moon-chilled/fancy-memcmp
Differential Revision:	https://reviews.freebsd.org/D41696

(cherry picked from commit 5048c1b85506c5e0f441ee7dd98dd8d96d0a4a24)
2023-12-28 18:02:41 +01:00

19 lines
258 B
Makefile

MDSRCS+= \
amd64_archlevel.c \
bcmp.S \
memchr.S \
memcmp.S \
memcpy.S \
memmove.S \
memset.S \
stpcpy.S \
strcat.S \
strchrnul.S \
strcmp.S \
strcpy.c \
strcspn.S \
strlen.S \
strnlen.c \
strspn.S \
timingsafe_bcmp.S \
timingsafe_memcmp.S