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

Side by Side Diff: openssl/crypto/ripemd/ripemd.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/ripemd/asm/rmd-586.pl ('k') | openssl/crypto/ripemd/rmd_dgst.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/ripemd/ripemd.h */ 1 /* crypto/ripemd/ripemd.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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #ifndef HEADER_RIPEMD_H 59 #ifndef HEADER_RIPEMD_H
60 #define HEADER_RIPEMD_H 60 #define HEADER_RIPEMD_H
61 61
62 #include <openssl/e_os2.h> 62 #include <openssl/e_os2.h>
63 #include <stddef.h> 63 #include <stddef.h>
64 64
65 #ifdef __cplusplus 65 #ifdef __cplusplus
66 extern "C" { 66 extern "C" {
67 #endif 67 #endif
68 68
69 #include <stddef.h>
70
71 #ifdef OPENSSL_NO_RIPEMD 69 #ifdef OPENSSL_NO_RIPEMD
72 #error RIPEMD is disabled. 70 #error RIPEMD is disabled.
73 #endif 71 #endif
74 72
75 #if defined(OPENSSL_SYS_WIN16) || defined(__LP32__) 73 #if defined(__LP32__)
76 #define RIPEMD160_LONG unsigned long 74 #define RIPEMD160_LONG unsigned long
77 #elif defined(OPENSSL_SYS_CRAY) || defined(__ILP64__) 75 #elif defined(OPENSSL_SYS_CRAY) || defined(__ILP64__)
78 #define RIPEMD160_LONG unsigned long 76 #define RIPEMD160_LONG unsigned long
79 #define RIPEMD160_LONG_LOG2 3 77 #define RIPEMD160_LONG_LOG2 3
80 #else 78 #else
81 #define RIPEMD160_LONG unsigned int 79 #define RIPEMD160_LONG unsigned int
82 #endif 80 #endif
83 81
84 #define RIPEMD160_CBLOCK 64 82 #define RIPEMD160_CBLOCK 64
85 #define RIPEMD160_LBLOCK (RIPEMD160_CBLOCK/4) 83 #define RIPEMD160_LBLOCK (RIPEMD160_CBLOCK/4)
86 #define RIPEMD160_DIGEST_LENGTH 20 84 #define RIPEMD160_DIGEST_LENGTH 20
87 85
88 typedef struct RIPEMD160state_st 86 typedef struct RIPEMD160state_st
89 { 87 {
90 RIPEMD160_LONG A,B,C,D,E; 88 RIPEMD160_LONG A,B,C,D,E;
91 RIPEMD160_LONG Nl,Nh; 89 RIPEMD160_LONG Nl,Nh;
92 RIPEMD160_LONG data[RIPEMD160_LBLOCK]; 90 RIPEMD160_LONG data[RIPEMD160_LBLOCK];
93 unsigned int num; 91 unsigned int num;
94 } RIPEMD160_CTX; 92 } RIPEMD160_CTX;
95 #ifdef OPENSSL_FIPS 93
96 int private_RIPEMD160_Init(RIPEMD160_CTX *c);
97 #endif
98 int RIPEMD160_Init(RIPEMD160_CTX *c); 94 int RIPEMD160_Init(RIPEMD160_CTX *c);
99 int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, size_t len); 95 int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, size_t len);
100 int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c); 96 int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
101 unsigned char *RIPEMD160(const unsigned char *d, size_t n, 97 unsigned char *RIPEMD160(const unsigned char *d, size_t n,
102 unsigned char *md); 98 unsigned char *md);
103 void RIPEMD160_Transform(RIPEMD160_CTX *c, const unsigned char *b); 99 void RIPEMD160_Transform(RIPEMD160_CTX *c, const unsigned char *b);
104 #ifdef __cplusplus 100 #ifdef __cplusplus
105 } 101 }
106 #endif 102 #endif
107 103
108 #endif 104 #endif
OLDNEW
« no previous file with comments | « openssl/crypto/ripemd/asm/rmd-586.pl ('k') | openssl/crypto/ripemd/rmd_dgst.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698