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)  

crypto_cipher_kernel.c File Reference
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <errno.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include "crypto_backend_internal.h"
Include dependency graph for crypto_cipher_kernel.c:

Go to the source code of this file.

Functions

int crypt_cipher_init_kernel (struct crypt_cipher_kernel *ctx, const char *name, const char *mode, const void *key, size_t key_length)
 
void crypt_cipher_destroy_kernel (struct crypt_cipher_kernel *ctx)
 
int crypt_cipher_encrypt_kernel (struct crypt_cipher_kernel *ctx, const char *in, char *out, size_t length, const char *iv, size_t iv_length)
 
int crypt_cipher_decrypt_kernel (struct crypt_cipher_kernel *ctx, const char *in, char *out, size_t length, const char *iv, size_t iv_length)
 
int crypt_cipher_check_kernel (const char *name, const char *mode, const char *integrity, size_t key_length)
 
int crypt_bitlk_decrypt_key_kernel (const void *key, size_t key_length, const char *in, char *out, size_t length, const char *iv, size_t iv_length, const char *tag, size_t tag_length)
 

Function Documentation

◆ crypt_bitlk_decrypt_key_kernel()

int crypt_bitlk_decrypt_key_kernel ( const void *  key,
size_t  key_length,
const char *  in,
char *  out,
size_t  length,
const char *  iv,
size_t  iv_length,
const char *  tag,
size_t  tag_length 
)

Definition at line 344 of file crypto_cipher_kernel.c.

Referenced by crypt_bitlk_decrypt_key().

◆ crypt_cipher_check_kernel()

int crypt_cipher_check_kernel ( const char *  name,
const char *  mode,
const char *  integrity,
size_t  key_length 
)

Definition at line 338 of file crypto_cipher_kernel.c.

Referenced by _crypt_format_luks2().

◆ crypt_cipher_decrypt_kernel()

int crypt_cipher_decrypt_kernel ( struct crypt_cipher_kernel ctx,
const char *  in,
char *  out,
size_t  length,
const char *  iv,
size_t  iv_length 
)

Definition at line 332 of file crypto_cipher_kernel.c.

Referenced by cipher_perf_one(), and crypt_cipher_decrypt().

◆ crypt_cipher_destroy_kernel()

void crypt_cipher_destroy_kernel ( struct crypt_cipher_kernel ctx)

Definition at line 321 of file crypto_cipher_kernel.c.

Referenced by cipher_perf_one(), and crypt_cipher_destroy().

◆ crypt_cipher_encrypt_kernel()

int crypt_cipher_encrypt_kernel ( struct crypt_cipher_kernel ctx,
const char *  in,
char *  out,
size_t  length,
const char *  iv,
size_t  iv_length 
)

Definition at line 326 of file crypto_cipher_kernel.c.

Referenced by cipher_perf_one(), and crypt_cipher_encrypt().

◆ crypt_cipher_init_kernel()

int crypt_cipher_init_kernel ( struct crypt_cipher_kernel ctx,
const char *  name,
const char *  mode,
const void *  key,
size_t  key_length 
)

Definition at line 315 of file crypto_cipher_kernel.c.

Referenced by cipher_perf_one(), and crypt_cipher_init().