Lines Matching defs:gsbuffer
120 static char *_unix_crypt_gensalt(char *gsbuffer, size_t gsbufflen,
222 char *gsbuffer;
226 gsbuffer = calloc(CRYPT_MAXCIPHERTEXTLEN, sizeof (char *));
227 if (gsbuffer == NULL) {
245 newsalt = _unix_crypt_gensalt(gsbuffer, CRYPT_MAXCIPHERTEXTLEN,
255 newsalt = alg->a_gensalt(gsbuffer, CRYPT_MAXCIPHERTEXTLEN,
262 if (newsalt == NULL && gsbuffer != NULL)
263 free(gsbuffer);
782 _unix_crypt_gensalt(char *gsbuffer,
794 gsbuffer[0] = saltchars[lrand48() % 64]; /* lrand48() is MT-SAFE */
795 gsbuffer[1] = saltchars[lrand48() % 64]; /* lrand48() is MT-SAFE */
796 gsbuffer[2] = '\0';
798 return (gsbuffer);