ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/vendor-crypto/openssl/dist/crypto/rsa/rsa_sign.c
(Generate patch)

Comparing vendor-crypto/openssl/dist/crypto/rsa/rsa_sign.c (file contents):
Revision 7388 by laffer1, Fri Jul 17 14:04:28 2015 UTC vs.
Revision 7389 by laffer1, Sat Dec 5 17:55:33 2015 UTC

# Line 218 | Line 218 | int int_rsa_verify(int dtype, const unsigned char *m,
218              memcpy(rm, s + 2, 16);
219              *prm_len = 16;
220              ret = 1;
221 <        } else if (memcmp(m, s + 2, 16))
221 >        } else if (memcmp(m, s + 2, 16)) {
222              RSAerr(RSA_F_INT_RSA_VERIFY, RSA_R_BAD_SIGNATURE);
223 <        else
223 >        } else {
224              ret = 1;
225 <    }
226 <
227 <    /* Special case: SSL signature */
228 <    if (dtype == NID_md5_sha1) {
225 >        }
226 >    } else if (dtype == NID_md5_sha1) {
227 >        /* Special case: SSL signature */
228          if ((i != SSL_SIG_LENGTH) || memcmp(s, m, SSL_SIG_LENGTH))
229              RSAerr(RSA_F_INT_RSA_VERIFY, RSA_R_BAD_SIGNATURE);
230          else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines