projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2621751
)
RSA: correct digestinfo_ripemd160_der[]
author
Richard Levitte
<levitte@openssl.org>
Sat, 28 Nov 2020 20:42:17 +0000
(21:42 +0100)
committer
Richard Levitte
<levitte@openssl.org>
Mon, 30 Nov 2020 11:42:03 +0000
(12:42 +0100)
A couple of numbers were incorrect.
Fixes #13559
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13562)
crypto/rsa/rsa_sign.c
patch
|
blob
|
history
diff --git
a/crypto/rsa/rsa_sign.c
b/crypto/rsa/rsa_sign.c
index b277c377896f39715a6b76d7c8e5d200312d5c57..5664394114f158c307fe4e8008cd65310b693af4 100644
(file)
--- 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, 0x0
c
+ RIPEMD160_DIGEST_LENGTH,
- ASN1_SEQUENCE, 0x0
8
,
- ASN1_OID, 0x0
4, 1 * 40 + 3, 36, 3, 3, 1, 2
,
+ ASN1_SEQUENCE, 0x0
d
+ RIPEMD160_DIGEST_LENGTH,
+ ASN1_SEQUENCE, 0x0
9
,
+ ASN1_OID, 0x0
5, 1 * 40 + 3, 36, 3, 2, 1
,
ASN1_NULL, 0x00,
ASN1_OCTET_STRING, RIPEMD160_DIGEST_LENGTH
};