diff options
| author | doug <> | 2015-06-20 01:07:25 +0000 |
|---|---|---|
| committer | doug <> | 2015-06-20 01:07:25 +0000 |
| commit | d1a72a60fbd3d6dadffddba3c8b5d6caf10bfdb4 (patch) | |
| tree | 144d1a93a079c76b8e2df6b6625e26229f129c6d /src/lib/libcrypto/rsa/rsa_sign.c | |
| parent | 423ea1a9bc2db6077e4924282a827eefbd2cdcd8 (diff) | |
| download | openbsd-d1a72a60fbd3d6dadffddba3c8b5d6caf10bfdb4.tar.gz openbsd-d1a72a60fbd3d6dadffddba3c8b5d6caf10bfdb4.tar.bz2 openbsd-d1a72a60fbd3d6dadffddba3c8b5d6caf10bfdb4.zip | |
Remove obsolete MDC-2DES from libcrypto.
ok deraadt@ jsing@ miod@
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_sign.c')
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_sign.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_sign.c b/src/lib/libcrypto/rsa/rsa_sign.c index a446b563b3..09d8ef329d 100644 --- a/src/lib/libcrypto/rsa/rsa_sign.c +++ b/src/lib/libcrypto/rsa/rsa_sign.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa_sign.c,v 1.22 2014/07/11 08:44:49 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_sign.c,v 1.23 2015/06/20 01:07:25 doug Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -180,21 +180,6 @@ int_rsa_verify(int dtype, const unsigned char *m, unsigned int m_len, | |||
| 180 | if (i <= 0) | 180 | if (i <= 0) |
| 181 | goto err; | 181 | goto err; |
| 182 | 182 | ||
| 183 | /* | ||
| 184 | * Oddball MDC2 case: signature can be OCTET STRING. | ||
| 185 | * check for correct tag and length octets. | ||
| 186 | */ | ||
| 187 | if (dtype == NID_mdc2 && i == 18 && s[0] == 0x04 && s[1] == 0x10) { | ||
| 188 | if (rm) { | ||
| 189 | memcpy(rm, s + 2, 16); | ||
| 190 | *prm_len = 16; | ||
| 191 | ret = 1; | ||
| 192 | } else if (memcmp(m, s + 2, 16)) | ||
| 193 | RSAerr(RSA_F_INT_RSA_VERIFY, RSA_R_BAD_SIGNATURE); | ||
| 194 | else | ||
| 195 | ret = 1; | ||
| 196 | } | ||
| 197 | |||
| 198 | /* Special case: SSL signature */ | 183 | /* Special case: SSL signature */ |
| 199 | if (dtype == NID_md5_sha1) { | 184 | if (dtype == NID_md5_sha1) { |
| 200 | if (i != SSL_SIG_LENGTH || memcmp(s, m, SSL_SIG_LENGTH)) | 185 | if (i != SSL_SIG_LENGTH || memcmp(s, m, SSL_SIG_LENGTH)) |
