Lines Matching refs:hash_alg
144 QCryptoHashAlgo hash_alg; member
648 luks->hash_alg = in qcrypto_block_luks_parse_header()
737 iters = qcrypto_pbkdf2_count_iters(luks->hash_alg, in qcrypto_block_luks_store_key()
774 if (qcrypto_pbkdf2(luks->hash_alg, in qcrypto_block_luks_store_key()
813 if (qcrypto_afsplit_encode(luks->hash_alg, in qcrypto_block_luks_store_key()
911 if (qcrypto_pbkdf2(luks->hash_alg, in qcrypto_block_luks_load_key()
984 if (qcrypto_afsplit_decode(luks->hash_alg, in qcrypto_block_luks_load_key()
1002 if (qcrypto_pbkdf2(luks->hash_alg, in qcrypto_block_luks_load_key()
1246 block->kdfhash = luks->hash_alg; in qcrypto_block_luks_open()
1315 const char *hash_alg; in qcrypto_block_luks_create() local
1334 luks_opts.hash_alg = QCRYPTO_HASH_ALGO_SHA256; in qcrypto_block_luks_create()
1350 luks->hash_alg = luks_opts.hash_alg; in qcrypto_block_luks_create()
1395 hash_alg = QCryptoHashAlgo_str(luks_opts.hash_alg); in qcrypto_block_luks_create()
1408 if (strlen(hash_alg) >= QCRYPTO_BLOCK_LUKS_HASH_SPEC_LEN) { in qcrypto_block_luks_create()
1410 hash_alg); in qcrypto_block_luks_create()
1429 strcpy(luks->header.hash_spec, hash_alg); in qcrypto_block_luks_create()
1462 block->kdfhash = luks_opts.hash_alg; in qcrypto_block_luks_create()
1479 iters = qcrypto_pbkdf2_count_iters(luks_opts.hash_alg, in qcrypto_block_luks_create()
1519 if (qcrypto_pbkdf2(luks_opts.hash_alg, in qcrypto_block_luks_create()
1893 info->u.luks.hash_alg = luks->hash_alg; in qcrypto_block_luks_get_info()