Home
last modified time | relevance | path

Searched refs:luks_opts (Results 1 – 4 of 4) sorted by relevance

/openbmc/qemu/crypto/
H A Dblock-luks.c1320 memcpy(&luks_opts, &options->u.luks, sizeof(luks_opts)); in qcrypto_block_luks_create()
1321 if (!luks_opts.has_iter_time) { in qcrypto_block_luks_create()
1324 if (!luks_opts.has_cipher_alg) { in qcrypto_block_luks_create()
1327 if (!luks_opts.has_cipher_mode) { in qcrypto_block_luks_create()
1330 if (!luks_opts.has_ivgen_alg) { in qcrypto_block_luks_create()
1333 if (!luks_opts.has_hash_alg) { in qcrypto_block_luks_create()
1348 luks->ivgen_alg = luks_opts.ivgen_alg; in qcrypto_block_luks_create()
1350 luks->hash_alg = luks_opts.hash_alg; in qcrypto_block_luks_create()
1388 if (luks_opts.has_ivgen_hash_alg) { in qcrypto_block_luks_create()
1462 block->kdfhash = luks_opts.hash_alg; in qcrypto_block_luks_create()
[all …]
/openbmc/qemu/block/
H A Dcrypto.c174 if (luks_opts->size > INT64_MAX) { in block_crypto_co_format_luks_payload()
190 ret = blk_truncate(blk, luks_opts->size, true, in block_crypto_co_format_luks_payload()
702 BlockdevCreateOptionsLUKS *luks_opts; in block_crypto_co_create_luks() local
711 luks_opts = &create_options->u.luks; in block_crypto_co_create_luks()
713 if (luks_opts->header == NULL && luks_opts->file == NULL) { in block_crypto_co_create_luks()
720 (luks_opts->file == NULL)) { in block_crypto_co_create_luks()
731 if (luks_opts->has_preallocation) { in block_crypto_co_create_luks()
732 preallocation = luks_opts->preallocation; in block_crypto_co_create_luks()
735 if (luks_opts->header) { in block_crypto_co_create_luks()
752 if (luks_opts->file) { in block_crypto_co_create_luks()
[all …]
H A Drbd.c368 if (luks_opts->has_cipher_alg) { in qemu_rbd_convert_luks_create_options()
369 switch (luks_opts->cipher_alg) { in qemu_rbd_convert_luks_create_options()
414 memset(&luks_opts, 0, sizeof(luks_opts)); in qemu_rbd_encryption_format()
416 opts = &luks_opts; in qemu_rbd_encryption_format()
417 opts_size = sizeof(luks_opts); in qemu_rbd_encryption_format()
420 &luks_opts.alg, &passphrase, &luks_opts.passphrase_size, in qemu_rbd_encryption_format()
491 memset(&luks_opts, 0, sizeof(luks_opts)); in qemu_rbd_encryption_load()
493 opts = &luks_opts; in qemu_rbd_encryption_load()
494 opts_size = sizeof(luks_opts); in qemu_rbd_encryption_load()
581 specs[i].opts = luks_opts; in qemu_rbd_encryption_load2()
[all …]
/openbmc/qemu/tests/qemu-iotests/tests/
H A Dluks-detached-header65 luks_opts = "key-secret=sec0" variable
145 luks_opts,