Mercurial > masqmail
comparison src/md5/hmactest.c @ 367:b27f66555ba8
Reformated multiline comments to have leading asterisks on each line
Now we use:
/*
** comment
*/
This makes the indent style simpler, too.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 20 Oct 2011 10:20:59 +0200 |
parents | 41958685480d |
children |
comparison
equal
deleted
inserted
replaced
366:41958685480d | 367:b27f66555ba8 |
---|---|
4 #include <string.h> | 4 #include <string.h> |
5 #include "md5.h" | 5 #include "md5.h" |
6 #include "hmac_md5.h" | 6 #include "hmac_md5.h" |
7 | 7 |
8 /* | 8 /* |
9 instead of pad0_copy(d, s, sz) use: | 9 ** instead of pad0_copy(d, s, sz) use: |
10 memset(d, 0, sz); | 10 ** memset(d, 0, sz); |
11 memcpy(d, s, strlen(s)); | 11 ** memcpy(d, s, strlen(s)); |
12 | 12 ** |
13 static void | 13 ** static void |
14 pad0_copy(char *d, char *s, int sz) | 14 ** pad0_copy(char *d, char *s, int sz) |
15 { | 15 ** { |
16 int i = 0; | 16 ** int i = 0; |
17 while (*s && (i < sz)) { | 17 ** while (*s && (i < sz)) { |
18 *(d++) = *(s++); | 18 ** *(d++) = *(s++); |
19 i++; | 19 ** i++; |
20 } | 20 ** } |
21 while (i <= sz) { | 21 ** while (i <= sz) { |
22 *(d++) = 0; | 22 ** *(d++) = 0; |
23 i++; | 23 ** i++; |
24 } | 24 ** } |
25 } | 25 ** } |
26 */ | 26 */ |
27 | 27 |
28 int | 28 int |
29 main() | 29 main() |
30 { | 30 { |