Changeset 752 for trunk/server/lib/crypto
- Timestamp:
- Nov 29, 2012, 2:06:31 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 746,748
- Property svn:mergeinfo changed
-
trunk/server/lib/crypto/hmacmd5.c
r745 r752 37 37 if (key_len > 64) 38 38 { 39 struct MD5Contexttctx;39 MD5_CTX tctx; 40 40 41 41 MD5Init(&tctx); … … 92 92 _PUBLIC_ void hmac_md5_final(uint8_t *digest, HMACMD5Context *ctx) 93 93 { 94 struct MD5Contextctx_o;94 MD5_CTX ctx_o; 95 95 96 96 MD5Final(digest, &ctx->ctx); -
trunk/server/lib/crypto/hmacmd5.h
r414 r752 26 26 typedef struct 27 27 { 28 struct MD5Contextctx;28 MD5_CTX ctx; 29 29 uint8_t k_ipad[65]; 30 30 uint8_t k_opad[65]; -
trunk/server/lib/crypto/md5.h
r414 r752 6 6 #endif 7 7 8 #ifdef HAVE_MD5_H 9 /* 10 * Try to avoid clashes with Solaris MD5 implementation. 11 * ...where almost all implementations follows: 12 * "Schneier's Cryptography Classics Library" 13 */ 14 #include <md5.h> 15 #else 16 8 17 struct MD5Context { 9 18 uint32_t buf[4]; … … 11 20 uint8_t in[64]; 12 21 }; 22 typedef struct MD5Context MD5_CTX; 13 23 14 24 void MD5Init(struct MD5Context *context); … … 17 27 void MD5Final(uint8_t digest[16], struct MD5Context *context); 18 28 29 #endif /* !HAVE_MD5_H */ 30 19 31 #endif /* !MD5_H */ -
trunk/server/lib/crypto/md5test.c
r745 r752 64 64 65 65 for (i=0; i < ARRAY_SIZE(testarray); i++) { 66 struct MD5Contextctx;66 MD5_CTX ctx; 67 67 uint8_t md5[16]; 68 68 int e;
Note:
See TracChangeset
for help on using the changeset viewer.