History log of /freebsd/lib/libc/amd64/string/timingsafe_memcmp.S (Results 1 – 1 of 1)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/14.0.0
# 5048c1b8 15-Oct-2023 Robert Clausecker <fuz@FreeBSD.org>

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 (

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

show more ...