cryptsetup
2.4.3
About: cryptsetup is a utility used to conveniently setup disk encryption based on the dm-crypt kernel module. These include plain dm-crypt volumes, LUKS volumes, loop-AES and TrueCrypt compatible format.
![]() ![]() |
Go to the source code of this file.
Data Structures | |
struct | fec_input_device |
struct | fec_context |
Macros | |
#define | FEC_RSM 255 |
#define | FEC_MIN_RSN 231 |
#define | FEC_MAX_RSN 253 |
#define | FEC_INPUT_DEVICES 2 |
#define | FEC_PARAMS(roots) |
Functions | |
static uint64_t | FEC_div_round_up (uint64_t x, uint64_t y) |
static uint64_t | FEC_interleave (struct fec_context *ctx, uint64_t offset) |
static int | FEC_read_interleaved (struct fec_context *ctx, uint64_t i, void *output, size_t count) |
static int | FEC_process_inputs (struct crypt_device *cd, struct crypt_params_verity *params, struct fec_input_device *inputs, size_t ninputs, int fd, int decode, unsigned int *errors) |
int | VERITY_FEC_process (struct crypt_device *cd, struct crypt_params_verity *params, struct device *fec_device, int check_fec, unsigned int *errors) |
uint64_t | VERITY_FEC_blocks (struct crypt_device *cd, struct device *fec_device, struct crypt_params_verity *params) |
#define FEC_INPUT_DEVICES 2 |
Definition at line 34 of file verity_fec.c.
#define FEC_MAX_RSN 253 |
Definition at line 32 of file verity_fec.c.
#define FEC_MIN_RSN 231 |
Definition at line 31 of file verity_fec.c.
#define FEC_PARAMS | ( | roots | ) |
Definition at line 37 of file verity_fec.c.
#define FEC_RSM 255 |
Definition at line 30 of file verity_fec.c.
|
inlinestatic |
Definition at line 64 of file verity_fec.c.
Referenced by FEC_process_inputs().
|
inlinestatic |
Definition at line 70 of file verity_fec.c.
References fec_context::block_size, fec_context::rounds, and fec_context::rsn.
Referenced by FEC_read_interleaved().
|
static |
Definition at line 107 of file verity_fec.c.
References _, fec_context::block_size, fec_context::blocks, fec_input_device::count, crypt_params_verity::data_block_size, decode_rs_char(), fec_input_device::device, device_path(), encode_rs_char(), FEC_div_round_up(), FEC_PARAMS, FEC_read_interleaved(), crypt_params_verity::fec_roots, FEC_RSM, free_rs_char(), init_rs_char(), fec_context::inputs, log_dbg, log_err, fec_context::ninputs, NULL, read_buffer(), fec_context::roots, fec_context::rounds, fec_context::rsn, fec_context::size, fec_input_device::start, and write_buffer().
Referenced by VERITY_FEC_process().
|
static |
Definition at line 77 of file verity_fec.c.
References fec_input_device::count, fec_input_device::fd, FEC_interleave(), fec_context::inputs, fec_context::ninputs, read_buffer(), fec_context::size, and fec_input_device::start.
Referenced by FEC_process_inputs().
uint64_t VERITY_FEC_blocks | ( | struct crypt_device * | cd, |
struct device * | fec_device, | ||
struct crypt_params_verity * | params | ||
) |
Definition at line 284 of file verity_fec.c.
References _, crypt_metadata_device(), crypt_params_verity::data_block_size, crypt_params_verity::data_size, device_is_identical(), device_path(), device_size(), crypt_params_verity::fec_area_offset, log_dbg, log_err, and VERITY_hash_offset_block().
Referenced by VERITY_activate(), and VERITY_FEC_process().
int VERITY_FEC_process | ( | struct crypt_device * | cd, |
struct crypt_params_verity * | params, | ||
struct device * | fec_device, | ||
int | check_fec, | ||
unsigned int * | errors | ||
) |
Definition at line 205 of file verity_fec.c.
References _, fec_input_device::count, crypt_data_device(), crypt_metadata_device(), crypt_params_verity::data_block_size, crypt_params_verity::data_size, fec_input_device::device, device_path(), fec_input_device::fd, crypt_params_verity::fec_area_offset, FEC_INPUT_DEVICES, FEC_MAX_RSN, FEC_MIN_RSN, FEC_process_inputs(), crypt_params_verity::fec_roots, FEC_RSM, crypt_params_verity::hash_block_size, log_dbg, log_err, fec_context::ninputs, VERITY_FEC_blocks(), and VERITY_hash_offset_block().
Referenced by _crypt_format_verity(), and VERITY_activate().