Commit graph

1 commit

Author SHA1 Message Date
Robert Clausecker
c91cfb7f9e lib/libc/tests/string: expand memcmp test to bcmp, timingsafe_{b,mem}cmp
The four functions more or less perform the same operation.
Reuse the same unit test with slight changes so we can cover
them all.  Constant-time operation is not verified for the
timingsafe_* functions.

Sponsored by:	The FreeBSD Foundation
Approved by:	ngie
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D41528

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