Removed all code that uses OpenGL from Image.
[io/quag.git] / addons / SHA1 / source / IoSHA1.h
blobf2c67409885778af2a0af6cbb892410b1c8dd820
1 /* copyright: Steve Dekorte, 2002
2 * All rights reserved. See _BSDLicense.txt.
3 */
5 #ifndef IOSHA1_DEFINED
6 #define IOSHA1_DEFINED 1
8 #include "IoObject.h"
9 #include "IoNumber.h"
10 #include "sha1.h"
12 #define ISSHA1(self) IoObject_hasCloneFunc_(self, (IoTagCloneFunc *)IoSHA1_rawClone)
14 typedef IoObject IoSHA1;
16 typedef struct
18 SHA1_CTX context;
19 u_int8_t digest[SHA1_DIGEST_LENGTH];
20 char isDone;
21 } IoSHA1Data;
23 IoSHA1 *IoSHA1_rawClone(IoSHA1 *self);
24 IoSHA1 *IoSHA1_proto(void *state);
25 IoSHA1 *IoSHA1_new(void *state);
27 void IoSHA1_free(IoSHA1 *self);
28 void IoSHA1_mark(IoSHA1 *self);
30 /* ----------------------------------------------------------- */
32 IoObject *IoSHA1_appendSeq(IoSHA1 *self, IoObject *locals, IoMessage *m);
33 IoObject *IoSHA1_sha1(IoSHA1 *self, IoObject *locals, IoMessage *m);
34 IoObject *IoSHA1_sha1String(IoSHA1 *self, IoObject *locals, IoMessage *m);
36 #endif