maxtweak added to block
[rofl0r-kripto.git] / include / kripto / desc / block.h
blobb6cc157af64afdc905a702b6c52284404e9bb074
1 #ifndef KRIPTO_BLOCK_DESC_H
2 #define KRIPTO_BLOCK_DESC_H
4 struct kripto_block_desc
6 kripto_block *(*create)
8 unsigned int,
9 const void *,
10 unsigned int
13 kripto_block *(*recreate)
15 kripto_block *,
16 unsigned int,
17 const void *,
18 unsigned int
21 void (*tweak)
23 kripto_block *,
24 const void *,
25 unsigned int
28 void (*encrypt)(const kripto_block *, const void *, void *);
30 void (*decrypt)(const kripto_block *, const void *, void *);
32 void (*destroy)(kripto_block *);
34 unsigned int blocksize;
35 unsigned int maxkey;
36 unsigned int maxtweak;
39 #endif