Addons updated to new doc format
[io.git] / addons / Blowfish / source / IoBlowfish.h
blobc14857433dba592ae4b0edbc6de53a310be38f29
1 /*
2 //metadoc Blowfish copyright Steve Dekorte 2002
3 */
4 */
6 #ifndef IoBlowfish_DEFINED
7 #define IoBlowfish_DEFINED 1
9 #include "IoObject.h"
10 #include "IoSeq.h"
11 #include "IoList.h"
12 #include "blowfish.h"
14 #define ISBLOWFISH(self) IoObject_hasCloneFunc_(self, (IoTagCloneFunc *)IoBlowfish_rawClone)
16 typedef IoObject IoBlowfish;
18 typedef struct
20 blowfish_ctx context;
21 int isEncrypting;
22 int isDone;
23 } IoBlowfishData;
25 IoTag *IoBlowfish_newTag(void *state);
26 IoBlowfish *IoBlowfish_proto(void *state);
27 IoBlowfish *IoBlowfish_rawClone(IoBlowfish *self);
28 void IoBlowfish_free(IoBlowfish *self);
30 IoObject *IoBlowfish_setIsEncrypting(IoBlowfish *self, IoObject *locals, IoMessage *m);
31 IoObject *IoBlowfish_beginProcessing(IoBlowfish *self, IoObject *locals, IoMessage *m);
32 IoObject *IoBlowfish_process(IoBlowfish *self, IoObject *locals, IoMessage *m);
33 IoObject *IoBlowfish_endProcessing(IoBlowfish *self, IoObject *locals, IoMessage *m);
35 #endif