Lines Matching refs:buf
318 unsigned char buf[MD5_DIGEST_LENGTH]; in md5crypt() local
396 || !EVP_DigestFinal_ex(md2, buf, NULL)) in md5crypt()
399 for (i = passwd_len; i > sizeof(buf); i -= sizeof(buf)) { in md5crypt()
400 if (!EVP_DigestUpdate(md, buf, sizeof(buf))) in md5crypt()
403 if (!EVP_DigestUpdate(md, buf, i)) in md5crypt()
412 if (!EVP_DigestFinal_ex(md, buf, NULL)) in md5crypt()
419 (i & 1) ? (const unsigned char *)passwd : buf, in md5crypt()
420 (i & 1) ? passwd_len : sizeof(buf))) in md5crypt()
431 (i & 1) ? buf : (const unsigned char *)passwd, in md5crypt()
432 (i & 1) ? sizeof(buf) : passwd_len)) in md5crypt()
434 if (!EVP_DigestFinal_ex(md2, buf, NULL)) in md5crypt()
444 unsigned char buf_perm[sizeof(buf)]; in md5crypt()
451 buf_perm[dest] = buf[source]; in md5crypt()
452 buf_perm[14] = buf[5]; in md5crypt()
453 buf_perm[15] = buf[11]; in md5crypt()
511 unsigned char buf[SHA512_DIGEST_LENGTH]; in shacrypt() local
621 || !EVP_DigestFinal_ex(md2, buf, NULL)) in shacrypt()
625 if (!EVP_DigestUpdate(md, buf, buf_size)) in shacrypt()
628 if (!EVP_DigestUpdate(md, buf, n)) in shacrypt()
634 (n & 1) ? buf : (const unsigned char *)passwd, in shacrypt()
639 if (!EVP_DigestFinal_ex(md, buf, NULL)) in shacrypt()
663 for (n = 16 + buf[0]; n > 0; n--) in shacrypt()
680 (n & 1) ? (const unsigned char *)p_bytes : buf, in shacrypt()
692 (n & 1) ? buf : (const unsigned char *)p_bytes, in shacrypt()
695 if (!EVP_DigestFinal_ex(md2, buf, NULL)) in shacrypt()
722 b64_from_24bit (buf[0], buf[10], buf[20], 4); in shacrypt()
723 b64_from_24bit (buf[21], buf[1], buf[11], 4); in shacrypt()
724 b64_from_24bit (buf[12], buf[22], buf[2], 4); in shacrypt()
725 b64_from_24bit (buf[3], buf[13], buf[23], 4); in shacrypt()
726 b64_from_24bit (buf[24], buf[4], buf[14], 4); in shacrypt()
727 b64_from_24bit (buf[15], buf[25], buf[5], 4); in shacrypt()
728 b64_from_24bit (buf[6], buf[16], buf[26], 4); in shacrypt()
729 b64_from_24bit (buf[27], buf[7], buf[17], 4); in shacrypt()
730 b64_from_24bit (buf[18], buf[28], buf[8], 4); in shacrypt()
731 b64_from_24bit (buf[9], buf[19], buf[29], 4); in shacrypt()
732 b64_from_24bit (0, buf[31], buf[30], 3); in shacrypt()
735 b64_from_24bit (buf[0], buf[21], buf[42], 4); in shacrypt()
736 b64_from_24bit (buf[22], buf[43], buf[1], 4); in shacrypt()
737 b64_from_24bit (buf[44], buf[2], buf[23], 4); in shacrypt()
738 b64_from_24bit (buf[3], buf[24], buf[45], 4); in shacrypt()
739 b64_from_24bit (buf[25], buf[46], buf[4], 4); in shacrypt()
740 b64_from_24bit (buf[47], buf[5], buf[26], 4); in shacrypt()
741 b64_from_24bit (buf[6], buf[27], buf[48], 4); in shacrypt()
742 b64_from_24bit (buf[28], buf[49], buf[7], 4); in shacrypt()
743 b64_from_24bit (buf[50], buf[8], buf[29], 4); in shacrypt()
744 b64_from_24bit (buf[9], buf[30], buf[51], 4); in shacrypt()
745 b64_from_24bit (buf[31], buf[52], buf[10], 4); in shacrypt()
746 b64_from_24bit (buf[53], buf[11], buf[32], 4); in shacrypt()
747 b64_from_24bit (buf[12], buf[33], buf[54], 4); in shacrypt()
748 b64_from_24bit (buf[34], buf[55], buf[13], 4); in shacrypt()
749 b64_from_24bit (buf[56], buf[14], buf[35], 4); in shacrypt()
750 b64_from_24bit (buf[15], buf[36], buf[57], 4); in shacrypt()
751 b64_from_24bit (buf[37], buf[58], buf[16], 4); in shacrypt()
752 b64_from_24bit (buf[59], buf[17], buf[38], 4); in shacrypt()
753 b64_from_24bit (buf[18], buf[39], buf[60], 4); in shacrypt()
754 b64_from_24bit (buf[40], buf[61], buf[19], 4); in shacrypt()
755 b64_from_24bit (buf[62], buf[20], buf[41], 4); in shacrypt()
756 b64_from_24bit (0, 0, buf[63], 2); in shacrypt()