CVE-2021-20251 lib:crypto: Add md4_hash_blob() for hashing data with MD4
commit518818b3c104b7d314265a6c631742384de30d76
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 13 Jul 2022 02:20:59 +0000 (13 14:20 +1200)
committerJule Anger <janger@samba.org>
Mon, 19 Sep 2022 04:02:12 +0000 (19 04:02 +0000)
treeca9bd2ec59f34ecd66ed12a6ffe455517ea3d026
parentd4ae8610ea37bdd0ac2e6dcb59f858d9921f949b
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>
(cherry picked from commit 17b8d164f69a5ed79d9b7b7fc2f3f84f8ea534c8)
lib/crypto/py_crypto.c