51 broke -E logic completely, rewise it
[tfcrypt.git] / tfe.h
1 #ifndef _TF_STREAM_CIPHER_DEFS
2 #define _TF_STREAM_CIPHER_DEFS
3
4 #include "tfdef.h"
5
6 struct tfe_stream {
7         TF_UNIT_TYPE key[TF_NR_KEY_UNITS];
8         TF_UNIT_TYPE iv[TF_NR_BLOCK_UNITS];
9         TF_BYTE_TYPE tmp[TF_BLOCK_SIZE];
10         size_t tidx;
11 };
12
13 void tfe_init(struct tfe_stream *tfe, const void *key);
14 void tfe_init_iv(struct tfe_stream *tfe, const void *key, const void *iv);
15 void tfe_emit(void *dst, size_t szdst, struct tfe_stream *tfe);
16
17 #endif