test: add unit tests for x_sha1_* functions in os/xsha1.

Simple confirmation of known values, not exhaustive testing.

Tested with SHA-1 implementations from:
 - libcrypto (OpenSSL 3)
 - libgcrypt
 - libnettle
 - Solaris libmd

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2066>
This commit is contained in:
Alan Coopersmith
2025-12-10 00:57:30 +02:00
committed by Enrico Weigelt
parent 4609d2e5e8
commit 2fe12aa2b0
4 changed files with 133 additions and 0 deletions

View File

@@ -179,6 +179,7 @@ if build_xorg
'input.c',
'list.c',
'misc.c',
'sha1.c',
'signal-logging.c',
'string.c',
'test_xkb.c',