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

Side by Side Diff: openssl/crypto/hmac/hmac.h

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/hmac/hm_pmeth.c ('k') | openssl/crypto/hmac/hmac.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/hmac/hmac.h */ 1 /* crypto/hmac/hmac.h */
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } HMAC_CTX; 83 } HMAC_CTX;
84 84
85 #define HMAC_size(e) (EVP_MD_size((e)->md)) 85 #define HMAC_size(e) (EVP_MD_size((e)->md))
86 86
87 87
88 void HMAC_CTX_init(HMAC_CTX *ctx); 88 void HMAC_CTX_init(HMAC_CTX *ctx);
89 void HMAC_CTX_cleanup(HMAC_CTX *ctx); 89 void HMAC_CTX_cleanup(HMAC_CTX *ctx);
90 90
91 #define HMAC_cleanup(ctx) HMAC_CTX_cleanup(ctx) /* deprecated */ 91 #define HMAC_cleanup(ctx) HMAC_CTX_cleanup(ctx) /* deprecated */
92 92
93 void HMAC_Init(HMAC_CTX *ctx, const void *key, int len, 93 int HMAC_Init(HMAC_CTX *ctx, const void *key, int len,
94 const EVP_MD *md); /* deprecated */ 94 const EVP_MD *md); /* deprecated */
95 void HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, 95 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,
96 const EVP_MD *md, ENGINE *impl); 96 const EVP_MD *md, ENGINE *impl);
97 void HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len); 97 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len);
98 void HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len); 98 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len);
99 unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, 99 unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len,
100 const unsigned char *d, size_t n, unsigned char *md, 100 const unsigned char *d, size_t n, unsigned char *md,
101 unsigned int *md_len); 101 unsigned int *md_len);
102 int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx);
102 103
103 void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags); 104 void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags);
104 105
105 #ifdef __cplusplus 106 #ifdef __cplusplus
106 } 107 }
107 #endif 108 #endif
108 109
109 #endif 110 #endif
OLDNEW
« no previous file with comments | « openssl/crypto/hmac/hm_pmeth.c ('k') | openssl/crypto/hmac/hmac.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698