Home
last modified time | relevance | path

Searched refs:salt_p (Results 1 – 1 of 1) sorted by relevance

/openssl/apps/
H A Dpasswd.c48 static int do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p,
776 static int do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p, in do_passwd() argument
782 assert(salt_p != NULL); in do_passwd()
799 *salt_p = *salt_malloc_p = app_malloc(saltlen + 1, "salt buffer"); in do_passwd()
800 if (RAND_bytes((unsigned char *)*salt_p, saltlen) <= 0) in do_passwd()
804 (*salt_p)[i] = cov_2char[(*salt_p)[i] & 0x3f]; /* 6 bits */ in do_passwd()
805 (*salt_p)[i] = 0; in do_passwd()
808 ascii2ebcdic(*salt_p, *salt_p, saltlen); in do_passwd()
812 assert(*salt_p != NULL); in do_passwd()
829 hash = md5crypt(passwd, (mode == passwd_md5 ? "1" : "apr1"), *salt_p); in do_passwd()
[all …]

Completed in 4 milliseconds