Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: openssl/crypto/rsa/rsa_gen.c

Issue 9254031: Upgrade chrome's OpenSSL to same version Android ships with. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/openssl/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « openssl/crypto/rsa/rsa_err.c ('k') | openssl/crypto/rsa/rsa_lib.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* crypto/rsa/rsa_gen.c */ 1 /* crypto/rsa/rsa_gen.c */
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 *
5 * This package is an SSL implementation written 5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com). 6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL. 7 * The implementation was written so as to conform with Netscapes SSL.
8 * 8 *
9 * This library is free for commercial and non-commercial use as long as 9 * This library is free for commercial and non-commercial use as long as
10 * the following conditions are aheared to. The following conditions 10 * the following conditions are aheared to. The following conditions
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 * compatibility wrappers using these functions) are in rsa_depr.c. 61 * compatibility wrappers using these functions) are in rsa_depr.c.
62 * - Geoff 62 * - Geoff
63 */ 63 */
64 64
65 #include <stdio.h> 65 #include <stdio.h>
66 #include <time.h> 66 #include <time.h>
67 #include "cryptlib.h" 67 #include "cryptlib.h"
68 #include <openssl/bn.h> 68 #include <openssl/bn.h>
69 #include <openssl/rsa.h> 69 #include <openssl/rsa.h>
70 70
71 #ifndef OPENSSL_FIPS
72
73 static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) ; 71 static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) ;
74 72
75 /* NB: this wrapper would normally be placed in rsa_lib.c and the static 73 /* NB: this wrapper would normally be placed in rsa_lib.c and the static
76 * implementation would probably be in rsa_eay.c. Nonetheless, is kept here so 74 * implementation would probably be in rsa_eay.c. Nonetheless, is kept here so
77 * that we don't introduce a new linker dependency. Eg. any application that 75 * that we don't introduce a new linker dependency. Eg. any application that
78 * wasn't previously linking object code related to key-generation won't have to 76 * wasn't previously linking object code related to key-generation won't have to
79 * now just because key-generation is part of RSA_METHOD. */ 77 * now just because key-generation is part of RSA_METHOD. */
80 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) 78 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb)
81 { 79 {
82 if(rsa->meth->rsa_keygen) 80 if(rsa->meth->rsa_keygen)
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 } 210 }
213 if (ctx != NULL) 211 if (ctx != NULL)
214 { 212 {
215 BN_CTX_end(ctx); 213 BN_CTX_end(ctx);
216 BN_CTX_free(ctx); 214 BN_CTX_free(ctx);
217 } 215 }
218 216
219 return ok; 217 return ok;
220 } 218 }
221 219
222 #endif
OLDNEW
« no previous file with comments | « openssl/crypto/rsa/rsa_err.c ('k') | openssl/crypto/rsa/rsa_lib.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698