y2crypt.cc File Reference

#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <xcrypt.h>
#include "y2log.h"
#include "y2crypt.h"
#include <string>

Defines

#define CRYPT_GENSALT_OUTPUT_SIZE   (7 + 22 + 1)
#define RANDOM_DEVICE   "/dev/urandom"
#define crypt_gensalt_r   xcrypt_gensalt_rn

Functions

static int read_loop (int fd, char *buffer, int count)
static char * make_crypt_salt (const char *crypt_prefix, int crypt_rounds)
bool crypt_pass (string unencrypted, crypt_t use_crypt, string *encrypted)

Define Documentation

#define CRYPT_GENSALT_OUTPUT_SIZE   (7 + 22 + 1)

Referenced by make_crypt_salt().

#define crypt_gensalt_r   xcrypt_gensalt_rn

Referenced by make_crypt_salt().

#define RANDOM_DEVICE   "/dev/urandom"

Referenced by make_crypt_salt().


Function Documentation

bool crypt_pass ( string  unencrypted,
crypt_t  use_crypt,
string *  encrypted 
)
static char* make_crypt_salt ( const char *  crypt_prefix,
int  crypt_rounds 
) [static]
static int read_loop ( int  fd,
char *  buffer,
int  count 
) [static]

Referenced by make_crypt_salt().


Generated on a sunny day for yast2-core by doxygen 1.6.3