From dd5e774664160f19e4828bddbdfbefa7d2b543dd Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 10 Oct 2001 21:37:45 +0000 Subject: [PATCH] Add support for md4WithRSAEncryption. --- apps/req.c | 2 +- crypto/evp/m_md4.c | 2 +- crypto/objects/objects.txt | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/req.c b/apps/req.c index 6fac16f97a..9611431fe7 100644 --- a/apps/req.c +++ b/apps/req.c @@ -420,7 +420,7 @@ bad: BIO_printf(bio_err," the random number generator\n"); BIO_printf(bio_err," -newkey rsa:bits generate a new RSA key of 'bits' in size\n"); BIO_printf(bio_err," -newkey dsa:file generate a new DSA key, parameters taken from CA in 'file'\n"); - BIO_printf(bio_err," -[digest] Digest to sign with (md5, sha1, md2, mdc2)\n"); + BIO_printf(bio_err," -[digest] Digest to sign with (md5, sha1, md2, mdc2, md4)\n"); BIO_printf(bio_err," -config file request template file.\n"); BIO_printf(bio_err," -subj arg set or modify request subject\n"); BIO_printf(bio_err," -new new request.\n"); diff --git a/crypto/evp/m_md4.c b/crypto/evp/m_md4.c index 8565e5d529..e19b663754 100644 --- a/crypto/evp/m_md4.c +++ b/crypto/evp/m_md4.c @@ -76,7 +76,7 @@ static int final(EVP_MD_CTX *ctx,unsigned char *md) static const EVP_MD md4_md= { NID_md4, - 0, + NID_md4WithRSAEncryption, MD4_DIGEST_LENGTH, 0, init, diff --git a/crypto/objects/objects.txt b/crypto/objects/objects.txt index d0a4dc440f..fa520bdc88 100644 --- a/crypto/objects/objects.txt +++ b/crypto/objects/objects.txt @@ -60,6 +60,7 @@ rsadsi 1 : pkcs : RSA Data Security, Inc. PKCS pkcs 1 : pkcs1 pkcs1 1 : : rsaEncryption pkcs1 2 : RSA-MD2 : md2WithRSAEncryption +pkcs1 3 : RSA-MD4 : md4WithRSAEncryption pkcs1 4 : RSA-MD5 : md5WithRSAEncryption pkcs1 5 : RSA-SHA1 : sha1WithRSAEncryption -- 2.25.1