Lines Matching refs:buflen
96 char *buffer, int buflen);
101 __sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen) in __sha256_crypt_r() argument
316 cp = __stpncpy (buffer, sha256_salt_prefix, MAX (0, buflen)); in __sha256_crypt_r()
317 buflen -= sizeof (sha256_salt_prefix) - 1; in __sha256_crypt_r()
321 int n = __snprintf (cp, MAX (0, buflen), "%s%zu$", in __sha256_crypt_r()
324 buflen -= n; in __sha256_crypt_r()
327 cp = __stpncpy (cp, salt, MIN ((size_t) MAX (0, buflen), salt_len)); in __sha256_crypt_r()
328 buflen -= MIN ((size_t) MAX (0, buflen), salt_len); in __sha256_crypt_r()
330 if (buflen > 0) in __sha256_crypt_r()
333 --buflen; in __sha256_crypt_r()
336 __b64_from_24bit (&cp, &buflen, in __sha256_crypt_r()
338 __b64_from_24bit (&cp, &buflen, in __sha256_crypt_r()
340 __b64_from_24bit (&cp, &buflen, in __sha256_crypt_r()
342 __b64_from_24bit (&cp, &buflen, in __sha256_crypt_r()
344 __b64_from_24bit (&cp, &buflen, in __sha256_crypt_r()
346 __b64_from_24bit (&cp, &buflen, in __sha256_crypt_r()
348 __b64_from_24bit (&cp, &buflen, in __sha256_crypt_r()
350 __b64_from_24bit (&cp, &buflen, in __sha256_crypt_r()
352 __b64_from_24bit (&cp, &buflen, in __sha256_crypt_r()
354 __b64_from_24bit (&cp, &buflen, in __sha256_crypt_r()
356 __b64_from_24bit (&cp, &buflen, in __sha256_crypt_r()
358 if (buflen <= 0) in __sha256_crypt_r()
403 static int buflen; in __sha256_crypt() local
408 if (buflen < needed) in __sha256_crypt()
415 buflen = needed; in __sha256_crypt()
418 return __sha256_crypt_r (key, salt, buffer, buflen); in __sha256_crypt()