Lines Matching refs:checksum_ctx
44 if (j->checksum_ctx) in pull_job_unref()
46 EVP_MD_CTX_free(j->checksum_ctx); in pull_job_unref()
48 gcry_md_close(j->checksum_ctx); in pull_job_unref()
109 if (j->checksum_ctx) { in pull_job_restart()
111 EVP_MD_CTX_free(j->checksum_ctx); in pull_job_restart()
113 gcry_md_close(j->checksum_ctx); in pull_job_restart()
115 j->checksum_ctx = NULL; in pull_job_restart()
211 if (j->checksum_ctx) { in pull_job_curl_on_finished()
216 r = EVP_DigestFinal_ex(j->checksum_ctx, k, &checksum_len); in pull_job_curl_on_finished()
225 k = gcry_md_read(j->checksum_ctx, GCRY_MD_SHA256); in pull_job_curl_on_finished()
383 if (j->checksum_ctx) { in pull_job_write_compressed()
385 r = EVP_DigestUpdate(j->checksum_ctx, p, sz); in pull_job_write_compressed()
390 gcry_md_write(j->checksum_ctx, p, sz); in pull_job_write_compressed()
426 j->checksum_ctx = EVP_MD_CTX_new(); in pull_job_open_disk()
427 if (!j->checksum_ctx) in pull_job_open_disk()
430 r = EVP_DigestInit_ex(j->checksum_ctx, EVP_sha256(), NULL); in pull_job_open_disk()
437 if (gcry_md_open(&j->checksum_ctx, GCRY_MD_SHA256, 0) != 0) in pull_job_open_disk()