Lines Matching refs:salt_len
392 size_t salt_len; in php_sha512_crypt_r() local
423 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha512_crypt_r()
433 char *tmp = (char *) alloca(salt_len + 1 + __alignof__(uint64_t)); in php_sha512_crypt_r()
434 …= memcpy(tmp + __alignof__(uint64_t) - (tmp - (char *) 0) % __alignof__(uint64_t), salt, salt_len); in php_sha512_crypt_r()
435 copied_salt[salt_len] = 0; in php_sha512_crypt_r()
447 sha512_process_bytes(salt, salt_len, &ctx); in php_sha512_crypt_r()
458 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
510 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
517 cp = s_bytes = alloca(salt_len); in php_sha512_crypt_r()
518 for (cnt = salt_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r()
538 sha512_process_bytes(s_bytes, salt_len, &ctx); in php_sha512_crypt_r()
572 cp = __php_stpncpy(cp, salt, MIN((size_t) MAX(0, buflen), salt_len)); in php_sha512_crypt_r()
573 buflen -= (int) MIN((size_t) MAX(0, buflen), salt_len); in php_sha512_crypt_r()
630 memset(s_bytes, '\0', salt_len); in php_sha512_crypt_r()
637 memset(copied_salt, '\0', salt_len); in php_sha512_crypt_r()