#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"
Defines | |
#define | CRYPT_GENSALT_OUTPUT_SIZE (7 + 22 + 1) |
#define | RANDOM_DEVICE "/dev/urandom" |
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) |
|
|
|
|
|
|
|
|
|
|