recutils
Macros | Functions
rec-crypt.c File Reference
#include <config.h>
#include <string.h>
#include <gcrypt.h>
#include <crc.h>
#include <base64.h>
#include <rec.h>
#include <rec-utils.h>

Macros

#define AESV2_BLKSIZE   16
 
#define AESV2_KEYSIZE   16
 
#define SALT_SIZE   4
 

Functions

bool rec_encrypt (char *in, size_t in_size, const char *password, char **out, size_t *out_size)
 
bool rec_decrypt (char *in, size_t in_size, const char *password, char **out, size_t *out_size)
 
bool rec_encrypt_record (rec_rset_t rset, rec_record_t record, const char *password)
 
bool rec_encrypt_field (rec_field_t field, const char *password)
 
bool rec_decrypt_field (rec_field_t field, const char *password)
 
bool rec_decrypt_record (rec_rset_t rset, rec_record_t record, const char *password)
 

Macro Definition Documentation

◆ AESV2_BLKSIZE

#define AESV2_BLKSIZE   16

◆ AESV2_KEYSIZE

#define AESV2_KEYSIZE   16

◆ SALT_SIZE

#define SALT_SIZE   4

Function Documentation

◆ rec_decrypt()

bool rec_decrypt ( char *  in,
size_t  in_size,
const char *  password,
char **  out,
size_t *  out_size 
)

◆ rec_decrypt_field()

bool rec_decrypt_field ( rec_field_t  field,
const char *  password 
)

◆ rec_decrypt_record()

bool rec_decrypt_record ( rec_rset_t  rset,
rec_record_t  record,
const char *  password 
)

◆ rec_encrypt()

bool rec_encrypt ( char *  in,
size_t  in_size,
const char *  password,
char **  out,
size_t *  out_size 
)

◆ rec_encrypt_field()

bool rec_encrypt_field ( rec_field_t  field,
const char *  password 
)

◆ rec_encrypt_record()

bool rec_encrypt_record ( rec_rset_t  rset,
rec_record_t  record,
const char *  password 
)