crypto: pkcs7 - remove md4 md5 x.509 support
authorDimitri John Ledkov <dimitri.ledkov@canonical.com>
Sun, 1 Oct 2023 23:57:15 +0000 (00:57 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 5 Oct 2023 10:16:31 +0000 (18:16 +0800)
commit8468516f9f93a41dc65158b6428a1a1039c68f20
tree8ca22d784649fe63229430c8fbfdcd823f391f08
parent18e2ef172cec1680a6736cc7f6e1b92c93b3daa0
crypto: pkcs7 - remove md4 md5 x.509 support

Remove support for md4 md5 hash and signatures in x.509 certificate
parsers, pkcs7 signature parser, authenticode parser.

All of these are insecure or broken, and everyone has long time ago
migrated to alternative hash implementations.

Also remove md2 & md3 oids which have already didn't have support.

This is also likely the last user of md4 in the kernel, and thus
crypto/md4.c and related tests in tcrypt & testmgr can likely be
removed. Other users such as cifs smbfs ext modpost sumversions have
their own internal implementation as needed.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/asymmetric_keys/mscode_parser.c
crypto/asymmetric_keys/pkcs7_parser.c
crypto/asymmetric_keys/x509_cert_parser.c
include/linux/oid_registry.h