Lines Matching refs:salt_len
331 size_t salt_len; in php_sha256_crypt_r() local
365 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha256_crypt_r()
381 tmp_salt = (char *) do_alloca(salt_len + 1 + __alignof__(uint32_t), use_heap_salt); in php_sha256_crypt_r()
383 …y(tmp_salt + __alignof__(uint32_t) - (uintptr_t)tmp_salt % __alignof__ (uint32_t), salt, salt_len); in php_sha256_crypt_r()
384 copied_salt[salt_len] = 0; in php_sha256_crypt_r()
396 sha256_process_bytes(salt, salt_len, &ctx); in php_sha256_crypt_r()
407 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
459 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
467 cp = s_bytes = do_alloca(salt_len, use_heap_s_bytes); in php_sha256_crypt_r()
468 for (cnt = salt_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r()
488 sha256_process_bytes(s_bytes, salt_len, &ctx); in php_sha256_crypt_r()
522 cp = __php_stpncpy(cp, salt, MIN ((size_t) MAX (0, buflen), salt_len)); in php_sha256_crypt_r()
523 buflen -= MIN(MAX (0, buflen), (int)salt_len); in php_sha256_crypt_r()
567 ZEND_SECURE_ZERO(s_bytes, salt_len); in php_sha256_crypt_r()
575 ZEND_SECURE_ZERO(copied_salt, salt_len); in php_sha256_crypt_r()