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.
  Fossies Dox: cryptsetup-2.4.3.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

utils_benchmark.c File Reference
#include <stdlib.h>
#include <errno.h>
#include "internal.h"
Include dependency graph for utils_benchmark.c:

Go to the source code of this file.

Data Structures

struct  benchmark_usrptr


int crypt_benchmark (struct crypt_device *cd, const char *cipher, const char *cipher_mode, size_t volume_key_size, size_t iv_size, size_t buffer_size, double *encryption_mbs, double *decryption_mbs)
int crypt_benchmark_pbkdf (struct crypt_device *cd, struct crypt_pbkdf_type *pbkdf, const char *password, size_t password_size, const char *salt, size_t salt_size, size_t volume_key_size, int(*progress)(uint32_t time_ms, void *usrptr), void *usrptr)
static int benchmark_callback (uint32_t time_ms, void *usrptr)
int crypt_benchmark_pbkdf_internal (struct crypt_device *cd, struct crypt_pbkdf_type *pbkdf, size_t volume_key_size)

Function Documentation

◆ benchmark_callback()

static int benchmark_callback ( uint32_t  time_ms,
void *  usrptr 

◆ crypt_benchmark_pbkdf_internal()