CVE-2021-20251 lib:crypto: Add des_crypt_blob_16() for encrypting data with DES
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 6 Jul 2022 03:36:26 +0000 (15:36 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 12 Sep 2022 23:07:37 +0000 (23:07 +0000)
commitb27a67af0216811d330d8a4c52390cf4fc04b5fd
tree2f170408ebba1d1f13e70d12ea989a249c4d15fc
parent121e439e24a9c03ae900ffca1ae1dda8e059008c
CVE-2021-20251 lib:crypto: Add des_crypt_blob_16() for encrypting data with DES

This lets us access single-DES from Python. This function is used in a
following commit for encrypting an NT hash to obtain the verifier for a
SAMR password change.

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/crypto/py_crypto.c
lib/crypto/wscript