| OLD | NEW |
| 1 /* crypto/ripemd/rmd_locl.h */ | 1 /* crypto/ripemd/rmd_locl.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 #define RIPEMD160_LONG_LOG2 2 /* default to 32 bits */ | 65 #define RIPEMD160_LONG_LOG2 2 /* default to 32 bits */ |
| 66 #endif | 66 #endif |
| 67 | 67 |
| 68 /* | 68 /* |
| 69 * DO EXAMINE COMMENTS IN crypto/md5/md5_locl.h & crypto/md5/md5_dgst.c | 69 * DO EXAMINE COMMENTS IN crypto/md5/md5_locl.h & crypto/md5/md5_dgst.c |
| 70 * FOR EXPLANATIONS ON FOLLOWING "CODE." | 70 * FOR EXPLANATIONS ON FOLLOWING "CODE." |
| 71 * <appro@fy.chalmers.se> | 71 * <appro@fy.chalmers.se> |
| 72 */ | 72 */ |
| 73 #ifdef RMD160_ASM | 73 #ifdef RMD160_ASM |
| 74 # if defined(__i386) || defined(__i386__) || defined(_M_IX86) || defined(__INTEL
__) | 74 # if defined(__i386) || defined(__i386__) || defined(_M_IX86) || defined(__INTEL
__) |
| 75 # define ripemd160_block_host_order ripemd160_block_asm_data_order | 75 # define ripemd160_block_data_order ripemd160_block_asm_data_order |
| 76 # endif | 76 # endif |
| 77 #endif | 77 #endif |
| 78 | 78 |
| 79 void ripemd160_block_data_order (RIPEMD160_CTX *c, const void *p,size_t num); | 79 void ripemd160_block_data_order (RIPEMD160_CTX *c, const void *p,size_t num); |
| 80 | 80 |
| 81 #define DATA_ORDER_IS_LITTLE_ENDIAN | 81 #define DATA_ORDER_IS_LITTLE_ENDIAN |
| 82 | 82 |
| 83 #define HASH_LONG RIPEMD160_LONG | 83 #define HASH_LONG RIPEMD160_LONG |
| 84 #define HASH_CTX RIPEMD160_CTX | 84 #define HASH_CTX RIPEMD160_CTX |
| 85 #define HASH_CBLOCK RIPEMD160_CBLOCK | 85 #define HASH_CBLOCK RIPEMD160_CBLOCK |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 #define RIP4(a,b,c,d,e,w,s,K) { \ | 141 #define RIP4(a,b,c,d,e,w,s,K) { \ |
| 142 a+=F4(b,c,d)+X(w)+K; \ | 142 a+=F4(b,c,d)+X(w)+K; \ |
| 143 a=ROTATE(a,s)+e; \ | 143 a=ROTATE(a,s)+e; \ |
| 144 c=ROTATE(c,10); } | 144 c=ROTATE(c,10); } |
| 145 | 145 |
| 146 #define RIP5(a,b,c,d,e,w,s,K) { \ | 146 #define RIP5(a,b,c,d,e,w,s,K) { \ |
| 147 a+=F5(b,c,d)+X(w)+K; \ | 147 a+=F5(b,c,d)+X(w)+K; \ |
| 148 a=ROTATE(a,s)+e; \ | 148 a=ROTATE(a,s)+e; \ |
| 149 c=ROTATE(c,10); } | 149 c=ROTATE(c,10); } |
| 150 | 150 |
| OLD | NEW |