Mercurial > pidgin.yaz
annotate src/sha.h @ 8317:6f549c1d0829
[gaim-migrate @ 9041]
Because I won't be able to work on this until late this week at the earliest,
here's GtkIMHtmlToolbar. It's a composite widget that attaches to an editable
gtkimhtml and controls all the formatting with ease. All one has to do to get
a formattable, editable, gtkimhtml now is to replace a gtktextview with a
gtkimhtml (you can even leave all the other calls that control it as gtkimhtml
descends from gtktextview) throw one of these toolbars in there and
gtk_imhtml_toolbar_attach it to the gtkimhtml. That's what I did in the New
Away Message dialog. This would also be nice in gtkrequest.c and gtkpounce.c.
Of course, this isn't done and there's a ton of hacky commented out old code in
there. Things like keyboard shortcut preferences don't currently work and
there's a lot of things I want to move around yet. However, if anyone feels
inspired to work on it before I get back to it feel free. Maybe you can IM me
beforehand or something.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 23 Feb 2004 21:18:27 +0000 |
parents | 0f6673c1ae38 |
children | 00138e366ef8 |
rev | line source |
---|---|
6987 | 1 #if (SIZEOF_INT == 4) |
2 typedef unsigned int uint32; | |
3 #elif (SIZEOF_SHORT == 4) | |
4 typedef unsigned short uint32; | |
5 #else | |
6 typedef unsigned int uint32; | |
7 #endif /* HAVEUINT32 */ | |
8 | |
9 int strprintsha(char *dest, int *hashval); | |
10 | |
11 typedef struct { | |
12 unsigned long H[5]; | |
13 unsigned long W[80]; | |
14 int lenW; | |
15 unsigned long sizeHi,sizeLo; | |
16 } SHA_CTX; | |
17 | |
18 void shaInit(SHA_CTX *ctx); | |
19 void shaUpdate(SHA_CTX *ctx, unsigned char *dataIn, int len); | |
20 void shaFinal(SHA_CTX *ctx, unsigned char hashout[20]); | |
21 void shaBlock(unsigned char *dataIn, int len, unsigned char hashout[20]); | |
22 |