annotate src/sha.h @ 8481:6d0869404696

[gaim-migrate @ 9214] " this fixes and should close 9, 10, and 12 on simguys list... those are... 9 Buttons that are pushed in when text is sent, stay pushed in. They should reset to the default for the line based on the B/I/U preferences. 10 Buttons are not properly pushed in if B/I/U are set in the prefs when the conversation window appears. 12 Buttons don't push in and out when the cursor enters regions that are differently formatted. For example, if you move the cursor to a place where the text is bold, the B button should probably be pushed in. While working on these i uncovered another bug which i'll start working on shortly, but thats no reason to hold this back when someone may find something I missed..." --Gary Kramlich as per his note, this does not fix moving the cursor with the mouse, but that doesn't work without this patch either. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 21 Mar 2004 18:38:30 +0000
parents 0f6673c1ae38
children 00138e366ef8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6987
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
1 #if (SIZEOF_INT == 4)
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
2 typedef unsigned int uint32;
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
3 #elif (SIZEOF_SHORT == 4)
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
4 typedef unsigned short uint32;
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
5 #else
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
6 typedef unsigned int uint32;
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
7 #endif /* HAVEUINT32 */
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
8
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
9 int strprintsha(char *dest, int *hashval);
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
10
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
11 typedef struct {
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
12 unsigned long H[5];
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
13 unsigned long W[80];
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
14 int lenW;
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
15 unsigned long sizeHi,sizeLo;
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
16 } SHA_CTX;
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
17
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
18 void shaInit(SHA_CTX *ctx);
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
19 void shaUpdate(SHA_CTX *ctx, unsigned char *dataIn, int len);
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
20 void shaFinal(SHA_CTX *ctx, unsigned char hashout[20]);
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
21 void shaBlock(unsigned char *dataIn, int len, unsigned char hashout[20]);
0f6673c1ae38 [gaim-migrate @ 7543]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
22