comparison src/md5/hmac_md5.c @ 366:41958685480d

Switched to `type *name' style Andrew Koenig's ``C Traps and Pitfalls'' (Ch.2.1) convinced me that it is best to go with the way C had been designed. The ``declaration reflects use'' concept conflicts with a ``type* name'' notation. Hence I switched.
author markus schnalke <meillo@marmaro.de>
date Thu, 22 Sep 2011 15:07:40 +0200
parents 0f36c0a46f82
children b27f66555ba8
comparison
equal deleted inserted replaced
365:934a223e4ee8 366:41958685480d
38 /* 38 /*
39 The computed HMAC will be written to `digest'. 39 The computed HMAC will be written to `digest'.
40 Ensure digest points to hashsize bytes of allocated memory. 40 Ensure digest points to hashsize bytes of allocated memory.
41 */ 41 */
42 void 42 void
43 hmac_md5(unsigned char* text, int textlen, unsigned char* key, int keylen, unsigned char* digest) 43 hmac_md5(unsigned char *text, int textlen, unsigned char *key, int keylen, unsigned char *digest)
44 { 44 {
45 int i; 45 int i;
46 MD5_CTX context; 46 MD5_CTX context;
47 unsigned char ipad[blocksize]; 47 unsigned char ipad[blocksize];
48 unsigned char opad[blocksize]; 48 unsigned char opad[blocksize];