Home
last modified time | relevance | path

Searched refs:digestlen (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/crypto/
H A Dafsplit.c48 size_t digestlen = qcrypto_hash_digest_len(hash); in qcrypto_afsplit_hash() local
50 size_t hashcount = blocklen / digestlen; in qcrypto_afsplit_hash()
51 size_t finallen = blocklen % digestlen; in qcrypto_afsplit_hash()
57 finallen = digestlen; in qcrypto_afsplit_hash()
67 { .iov_base = block + (i * digestlen), in qcrypto_afsplit_hash()
68 .iov_len = (i == (hashcount - 1)) ? finallen : digestlen }, in qcrypto_afsplit_hash()
79 assert(outlen == digestlen); in qcrypto_afsplit_hash()
80 memcpy(block + (i * digestlen), out, in qcrypto_afsplit_hash()
81 (i == (hashcount - 1)) ? finallen : digestlen); in qcrypto_afsplit_hash()
H A Dblock-luks.c270 size_t digestlen = qcrypto_hash_digest_len(hash); in qcrypto_block_luks_essiv_cipher() local
272 if (digestlen == keylen) { in qcrypto_block_luks_essiv_cipher()
280 if (digestlen == qcrypto_cipher_get_key_len( in qcrypto_block_luks_essiv_cipher()
283 } else if (digestlen == qcrypto_cipher_get_key_len( in qcrypto_block_luks_essiv_cipher()
286 } else if (digestlen == qcrypto_cipher_get_key_len( in qcrypto_block_luks_essiv_cipher()
291 digestlen); in qcrypto_block_luks_essiv_cipher()
298 if (digestlen == qcrypto_cipher_get_key_len( in qcrypto_block_luks_essiv_cipher()
301 } else if (digestlen == qcrypto_cipher_get_key_len( in qcrypto_block_luks_essiv_cipher()
304 } else if (digestlen == qcrypto_cipher_get_key_len( in qcrypto_block_luks_essiv_cipher()
309 digestlen); in qcrypto_block_luks_essiv_cipher()
[all …]