Changeset 746 for vendor/current/lib/crypto
- Timestamp:
- Nov 27, 2012, 4:56:06 PM (13 years ago)
- Location:
- vendor/current/lib/crypto
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/crypto/hmacmd5.c
r740 r746 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); -
vendor/current/lib/crypto/hmacmd5.h
r414 r746 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]; -
vendor/current/lib/crypto/md5.h
r414 r746 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 */ -
vendor/current/lib/crypto/md5test.c
r740 r746 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.