Searched refs:gsbuffer (Results 1 – 5 of 5) sorted by relevance
/titanic_50/usr/src/lib/crypt_modules/bsdbf/ |
H A D | bsdbf.c | 39 crypt_gensalt_impl(char *gsbuffer, in crypt_gensalt_impl() argument 50 (void) strlcpy(gsbuffer, bcrypt_gensalt(logr), gsbufflen); in crypt_gensalt_impl() 51 return (gsbuffer); in crypt_gensalt_impl()
|
/titanic_50/usr/src/lib/crypt_modules/sha256/ |
H A D | crypt_sha.c | 357 crypt_gensalt_impl(char *gsbuffer, in crypt_gensalt_impl() argument 408 if (snprintf(gsbuffer, gsbufflen, in crypt_gensalt_impl() 413 if (snprintf(gsbuffer, gsbufflen, in crypt_gensalt_impl() 417 if (strlcat(gsbuffer, rndstr, gsbufflen) >= gsbufflen) in crypt_gensalt_impl() 419 if (strlcat(gsbuffer, "$", gsbufflen) >= gsbufflen) in crypt_gensalt_impl() 422 return (gsbuffer); in crypt_gensalt_impl() 425 (void) memset(gsbuffer, 0, gsbufflen); in crypt_gensalt_impl() 426 return (gsbuffer); in crypt_gensalt_impl()
|
/titanic_50/usr/src/lib/libc/port/gen/ |
H A D | crypt.c | 120 static char *_unix_crypt_gensalt(char *gsbuffer, size_t gsbufflen, 222 char *gsbuffer; in crypt_gensalt() local 226 gsbuffer = calloc(CRYPT_MAXCIPHERTEXTLEN, sizeof (char *)); in crypt_gensalt() 227 if (gsbuffer == NULL) { in crypt_gensalt() 245 newsalt = _unix_crypt_gensalt(gsbuffer, CRYPT_MAXCIPHERTEXTLEN, in crypt_gensalt() 255 newsalt = alg->a_gensalt(gsbuffer, CRYPT_MAXCIPHERTEXTLEN, in crypt_gensalt() 262 if (newsalt == NULL && gsbuffer != NULL) in crypt_gensalt() 263 free(gsbuffer); in crypt_gensalt() 782 _unix_crypt_gensalt(char *gsbuffer, in _unix_crypt_gensalt() argument 794 gsbuffer[0] = saltchars[lrand48() % 64]; /* lrand48() is MT-SAFE */ in _unix_crypt_gensalt() [all …]
|
/titanic_50/usr/src/lib/crypt_modules/sunmd5/ |
H A D | sunmd5.c | 164 crypt_gensalt_impl(char *gsbuffer, in crypt_gensalt_impl() argument 217 if (snprintf(gsbuffer, gsbufflen, in crypt_gensalt_impl() 222 if (snprintf(gsbuffer, gsbufflen, in crypt_gensalt_impl() 227 if (strlcat(gsbuffer, rndstr, gsbufflen) >= gsbufflen) in crypt_gensalt_impl() 229 if (strlcat(gsbuffer, "$", gsbufflen) >= gsbufflen) in crypt_gensalt_impl() 232 return (gsbuffer); in crypt_gensalt_impl() 235 bzero(gsbuffer, gsbufflen); in crypt_gensalt_impl()
|
/titanic_50/usr/src/lib/crypt_modules/bsdmd5/ |
H A D | bsdmd5.c | 183 crypt_gensalt_impl(char *gsbuffer, in crypt_gensalt_impl() argument 198 (void) strlcpy(gsbuffer, crypt_alg_magic, gsbufflen); in crypt_gensalt_impl() 207 to64(&gsbuffer[strlen(crypt_alg_magic)], rndval, sizeof (rndval)); in crypt_gensalt_impl() 211 return (gsbuffer); in crypt_gensalt_impl()
|