]> git.ipfire.org Git - thirdparty/samba.git/commit
CVE-2021-20251 lib:crypto: Add md4_hash_blob() for hashing data with MD4
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 13 Jul 2022 02:20:59 +0000 (14:20 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 12 Sep 2022 23:07:37 +0000 (23:07 +0000)
commit17b8d164f69a5ed79d9b7b7fc2f3f84f8ea534c8
tree4248575a7bb46110cd918dbdfb4e4ff932584abb
parentb27a67af0216811d330d8a4c52390cf4fc04b5fd
CVE-2021-20251 lib:crypto: Add md4_hash_blob() for hashing data with MD4

This lets us access MD4, which might not be available in hashlib, from
Python. This function is used in a following commit for hashing a
password 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