]> git.sesse.net Git - shamaz/blob - ice.h
Split XML parsing out in a separate program.
[shamaz] / ice.h
1 /*
2  * Header file for the ICE encryption library.
3  *
4  * Written by Matthew Kwan - July 1996
5  */
6
7 #ifndef _ICE_H
8 #define _ICE_H
9
10 typedef struct ice_key_struct   ICE_KEY;
11
12 #if __STDC__
13 #define P_(x) x
14 #else
15 #define P_(x) ()
16 #endif
17
18 extern ICE_KEY  *ice_key_create P_((int n));
19 extern void     ice_key_destroy P_((ICE_KEY *ik));
20 extern void     ice_key_set P_((ICE_KEY *ik, const unsigned char *k));
21 extern void     ice_key_encrypt P_((const ICE_KEY *ik,
22                         const unsigned char *ptxt, unsigned char *ctxt));
23 extern void     ice_key_decrypt P_((const ICE_KEY *ik,
24                         const unsigned char *ctxt, unsigned char *ptxt));
25 extern int      ice_key_key_size P_((const ICE_KEY *ik));
26 extern int      ice_key_block_size P_((const ICE_KEY *ik));
27
28 #undef P_
29
30 #endif