zuluCrypt  5.7.1
About: zuluCrypt is a simple but feature rich solution for hard drives encryption. It can manage PLAIN dm-crypt, LUKS, TrueCrypt and VeraCrypt encrypted volumes.
  Fossies Dox: zuluCrypt-5.7.1.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

crypt_file.c File Reference
#include "includes.h"
#include "../lib/includes.h"
#include <stdio.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <libintl.h>
#include <locale.h>
Include dependency graph for crypt_file.c:

Go to the source code of this file.

Macros

#define DECRYPT   1
 
#define ENCRYPT   0
 
#define _ignore_result(x)   if( x ){;}
 

Functions

static int zuluExit (int st)
 
static int crypt_opt (const struct_opts *opts, uid_t uid, int opt)
 
int zuluCryptExeFileDecrypt (const struct_opts *opts, uid_t uid)
 
int zuluCryptExeFileEncrypt (const struct_opts *opts, uid_t uid)
 

Macro Definition Documentation

◆ _ignore_result

#define _ignore_result (   x)    if( x ){;}

Definition at line 32 of file crypt_file.c.

◆ DECRYPT

#define DECRYPT   1

Definition at line 29 of file crypt_file.c.

◆ ENCRYPT

#define ENCRYPT   0

Definition at line 30 of file crypt_file.c.

Function Documentation

◆ crypt_opt()

◆ zuluCryptExeFileDecrypt()

int zuluCryptExeFileDecrypt ( const struct_opts opts,
uid_t  uid 
)

Definition at line 204 of file crypt_file.c.

References crypt_opt(), and DECRYPT.

Referenced by zuluCryptEXE().

◆ zuluCryptExeFileEncrypt()

int zuluCryptExeFileEncrypt ( const struct_opts opts,
uid_t  uid 
)

Definition at line 209 of file crypt_file.c.

References crypt_opt(), and ENCRYPT.

Referenced by zuluCryptEXE().

◆ zuluExit()

static int zuluExit ( int  st)
static

Definition at line 34 of file crypt_file.c.

Referenced by crypt_opt().