[openssl] master update

Richard Levitte levitte at openssl.org
Mon Nov 30 11:46:35 UTC 2020


The branch master has been updated
       via  172daa7fc7d8cdf37a5203cfeb3e3030d15c1a12 (commit)
      from  26217510d21cd4d5928db8bff41c6756a7c7a636 (commit)


- Log -----------------------------------------------------------------
commit 172daa7fc7d8cdf37a5203cfeb3e3030d15c1a12
Author: Richard Levitte <levitte at openssl.org>
Date:   Sat Nov 28 21:42:17 2020 +0100

    RSA: correct digestinfo_ripemd160_der[]
    
    A couple of numbers were incorrect.
    
    Fixes #13559
    
    Reviewed-by: Shane Lontis <shane.lontis at oracle.com>
    (Merged from https://github.com/openssl/openssl/pull/13562)

-----------------------------------------------------------------------

Summary of changes:
 crypto/rsa/rsa_sign.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/crypto/rsa/rsa_sign.c b/crypto/rsa/rsa_sign.c
index b277c37789..5664394114 100644
--- a/crypto/rsa/rsa_sign.c
+++ b/crypto/rsa/rsa_sign.c
@@ -114,11 +114,11 @@ static const unsigned char digestinfo_mdc2_der[] = {
 };
 # endif
 # ifndef OPENSSL_NO_RMD160
-/* RIPEMD160 (1 3 36 3 3 1 2) */
+/* RIPEMD160 (1 3 36 3 2 1) */
 static const unsigned char digestinfo_ripemd160_der[] = {
-    ASN1_SEQUENCE, 0x0c + RIPEMD160_DIGEST_LENGTH,
-      ASN1_SEQUENCE, 0x08,
-        ASN1_OID, 0x04, 1 * 40 + 3, 36, 3, 3, 1, 2,
+    ASN1_SEQUENCE, 0x0d + RIPEMD160_DIGEST_LENGTH,
+      ASN1_SEQUENCE, 0x09,
+        ASN1_OID, 0x05, 1 * 40 + 3, 36, 3, 2, 1,
         ASN1_NULL, 0x00,
       ASN1_OCTET_STRING, RIPEMD160_DIGEST_LENGTH
 };


More information about the openssl-commits mailing list