Lines Matching refs:desc
305 static int chcr_compute_partial_hash(struct shash_desc *desc, in chcr_compute_partial_hash() argument
315 error = crypto_shash_init(desc) ?: in chcr_compute_partial_hash()
316 crypto_shash_update(desc, iopad, SHA1_BLOCK_SIZE) ?: in chcr_compute_partial_hash()
317 crypto_shash_export(desc, (void *)&sha1_st); in chcr_compute_partial_hash()
320 error = crypto_shash_init(desc) ?: in chcr_compute_partial_hash()
321 crypto_shash_update(desc, iopad, SHA256_BLOCK_SIZE) ?: in chcr_compute_partial_hash()
322 crypto_shash_export(desc, (void *)&sha256_st); in chcr_compute_partial_hash()
326 error = crypto_shash_init(desc) ?: in chcr_compute_partial_hash()
327 crypto_shash_update(desc, iopad, SHA256_BLOCK_SIZE) ?: in chcr_compute_partial_hash()
328 crypto_shash_export(desc, (void *)&sha256_st); in chcr_compute_partial_hash()
332 error = crypto_shash_init(desc) ?: in chcr_compute_partial_hash()
333 crypto_shash_update(desc, iopad, SHA512_BLOCK_SIZE) ?: in chcr_compute_partial_hash()
334 crypto_shash_export(desc, (void *)&sha512_st); in chcr_compute_partial_hash()
338 error = crypto_shash_init(desc) ?: in chcr_compute_partial_hash()
339 crypto_shash_update(desc, iopad, SHA512_BLOCK_SIZE) ?: in chcr_compute_partial_hash()
340 crypto_shash_export(desc, (void *)&sha512_st); in chcr_compute_partial_hash()