Merge branch 'vendor/LIBPCAP'
[dragonfly.git] / contrib / cryptsetup / luks / af.h
1 #ifndef INCLUDED_CRYPTSETUP_LUKS_AF_H
2 #define INCLUDED_CRYPTSETUP_LUKS_AF_H
3
4 /*
5  * AFsplitter - Anti forensic information splitter
6  * Copyright 2004, Clemens Fruhwirth <clemens@endorphin.org>
7  */
8
9 /*
10  * AF_split operates on src and produces information splitted data in
11  * dst. src is assumed to be of the length blocksize. The data stripe
12  * dst points to must be captable of storing blocksize*blocknumbers.
13  * blocknumbers is the data multiplication factor.
14  *
15  * AF_merge does just the opposite: reproduces the information stored in
16  * src of the length blocksize*blocknumbers into dst of the length
17  * blocksize.
18  *
19  * On error, both functions return -1, 0 otherwise.
20  */
21
22 int AF_split(char *src, char *dst, size_t blocksize, unsigned int blocknumbers, const char *hash);
23 int AF_merge(char *src, char *dst, size_t blocksize, unsigned int blocknumbers, const char *hash);
24
25 #endif