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

Side by Side Diff: openssl/crypto/evp/m_dss.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/evp/evp_test.c ('k') | openssl/crypto/evp/m_dss1.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/evp/m_dss.c */ 1 /* crypto/evp/m_dss.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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 { return SHA1_Update(ctx->md_data,data,count); } 74 { return SHA1_Update(ctx->md_data,data,count); }
75 75
76 static int final(EVP_MD_CTX *ctx,unsigned char *md) 76 static int final(EVP_MD_CTX *ctx,unsigned char *md)
77 { return SHA1_Final(md,ctx->md_data); } 77 { return SHA1_Final(md,ctx->md_data); }
78 78
79 static const EVP_MD dsa_md= 79 static const EVP_MD dsa_md=
80 { 80 {
81 NID_dsaWithSHA, 81 NID_dsaWithSHA,
82 NID_dsaWithSHA, 82 NID_dsaWithSHA,
83 SHA_DIGEST_LENGTH, 83 SHA_DIGEST_LENGTH,
84 » EVP_MD_FLAG_FIPS, 84 » EVP_MD_FLAG_PKEY_DIGEST,
85 init, 85 init,
86 update, 86 update,
87 final, 87 final,
88 NULL, 88 NULL,
89 NULL, 89 NULL,
90 EVP_PKEY_DSA_method, 90 EVP_PKEY_DSA_method,
91 SHA_CBLOCK, 91 SHA_CBLOCK,
92 sizeof(EVP_MD *)+sizeof(SHA_CTX), 92 sizeof(EVP_MD *)+sizeof(SHA_CTX),
93 }; 93 };
94 94
95 const EVP_MD *EVP_dss(void) 95 const EVP_MD *EVP_dss(void)
96 { 96 {
97 return(&dsa_md); 97 return(&dsa_md);
98 } 98 }
99 #endif 99 #endif
OLDNEW
« no previous file with comments | « openssl/crypto/evp/evp_test.c ('k') | openssl/crypto/evp/m_dss1.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698