1 #ifndef KRIPTO_AUTHSTREAM_H
2 #define KRIPTO_AUTHSTREAM_H
6 typedef struct kripto_authstream_desc kripto_authstream_desc
;
7 typedef struct kripto_authstream kripto_authstream
;
9 extern kripto_authstream
*kripto_authstream_create
11 const kripto_authstream_desc
*desc
,
20 extern kripto_authstream
*kripto_authstream_recreate
31 extern void kripto_authstream_encrypt
39 extern void kripto_authstream_decrypt
47 extern void kripto_authstream_header
54 extern void kripto_authstream_tag
61 extern void kripto_authstream_destroy(kripto_authstream
*s
);
63 extern unsigned int kripto_authstream_multof(const kripto_authstream
*s
);
65 extern const kripto_authstream_desc
*kripto_authstream_getdesc(const kripto_authstream
*s
);
67 extern unsigned int kripto_authstream_maxkey(const kripto_authstream_desc
*desc
);
69 extern unsigned int kripto_authstream_maxiv(const kripto_authstream_desc
*desc
);
71 extern unsigned int kripto_authstream_maxtag(const kripto_authstream_desc
*desc
);