Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/crypt_modules/bsdbf/
H A Dbsdbf.c37 crypt_gensalt_impl(char *gsbuffer, in crypt_gensalt_impl() argument
48 (void) strlcpy(gsbuffer, bcrypt_gensalt(logr), gsbufflen); in crypt_gensalt_impl()
49 return (gsbuffer); in crypt_gensalt_impl()
/illumos-gate/usr/src/lib/crypt_modules/sha256/
H A Dcrypt_sha.c357 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()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dcrypt.c120 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()
779 _unix_crypt_gensalt(char *gsbuffer, in _unix_crypt_gensalt() argument
793 gsbuffer[2] = '\0'; in _unix_crypt_gensalt()
[all …]
/illumos-gate/usr/src/lib/crypt_modules/sunmd5/
H A Dsunmd5.c164 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()
/illumos-gate/usr/src/lib/crypt_modules/bsdmd5/
H A Dbsdmd5.c183 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()