]> git.ipfire.org Git - thirdparty/samba.git/commit
pytest: test that _glue.crypt works
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 11 Dec 2024 21:44:07 +0000 (10:44 +1300)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 20 Dec 2024 07:04:31 +0000 (07:04 +0000)
commit5636d30c0959fd4a211ee7b8d1b267dcdbf0b963
treec1d66c9c9933de79f69e1be3b1c6d9a2e137a308
parent88e3c82d88a68cf972f8189e1c3718698b49974a
pytest: test that _glue.crypt works

The test vectors were generated via Python 3.10 crypt module, which
directly wraps crypt(3), which in this case is from glibc 2.39-0ubuntu8.3.

We mainly test the sha256 and sha512 vectors, which seems to be all we
use, and which are said to be widely supported.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15756

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
python/samba/tests/glue.py