mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 10:50:01 +01:00
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@491 36d66b0a-2a48-0410-832c-cd162a569da5
26 lines
879 B
C
26 lines
879 B
C
#ifndef INCLUDED_CRYPTSETUP_LUKS_AF_H
|
|
#define INCLUDED_CRYPTSETUP_LUKS_AF_H
|
|
|
|
/*
|
|
* AFsplitter - Anti forensic information splitter
|
|
* Copyright 2004, Clemens Fruhwirth <clemens@endorphin.org>
|
|
*/
|
|
|
|
/*
|
|
* AF_split operates on src and produces information split data in
|
|
* dst. src is assumed to be of the length blocksize. The data stripe
|
|
* dst points to must be capable of storing blocksize*blocknumbers.
|
|
* blocknumbers is the data multiplication factor.
|
|
*
|
|
* AF_merge does just the opposite: reproduces the information stored in
|
|
* src of the length blocksize*blocknumbers into dst of the length
|
|
* blocksize.
|
|
*
|
|
* On error, both functions return -1, 0 otherwise.
|
|
*/
|
|
|
|
int AF_split(char *src, char *dst, size_t blocksize, unsigned int blocknumbers, const char *hash);
|
|
int AF_merge(char *src, char *dst, size_t blocksize, unsigned int blocknumbers, const char *hash);
|
|
|
|
#endif
|