#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 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().
| bool crypt_pass | ( | string | unencrypted, | |
| crypt_t | use_crypt, | |||
| string * | encrypted | |||
| ) |
References BIGCRYPT, BLOWFISH, CRYPT, make_crypt_salt(), MD5, and y2error.
Referenced by s_crypt(), s_cryptbigcrypt(), s_cryptblowfish(), and s_cryptmd5().
| static char* make_crypt_salt | ( | const char * | crypt_prefix, | |
| int | crypt_rounds | |||
| ) | [static] |
References CRYPT_GENSALT_OUTPUT_SIZE, crypt_gensalt_r, output(), RANDOM_DEVICE, read_loop(), and y2error.
Referenced by crypt_pass().
| static int read_loop | ( | int | fd, | |
| char * | buffer, | |||
| int | count | |||
| ) | [static] |
Referenced by make_crypt_salt().
1.6.3