Lines Matching refs:luks2_opts
402 rbd_encryption_luks2_format_options_t luks2_opts; in qemu_rbd_encryption_format() local
429 memset(&luks2_opts, 0, sizeof(luks2_opts)); in qemu_rbd_encryption_format()
431 opts = &luks2_opts; in qemu_rbd_encryption_format()
432 opts_size = sizeof(luks2_opts); in qemu_rbd_encryption_format()
436 &luks2_opts.alg, &passphrase, &luks2_opts.passphrase_size, in qemu_rbd_encryption_format()
441 luks2_opts.passphrase = passphrase; in qemu_rbd_encryption_format()
481 rbd_encryption_luks2_format_options_t luks2_opts; in qemu_rbd_encryption_load() local
505 memset(&luks2_opts, 0, sizeof(luks2_opts)); in qemu_rbd_encryption_load()
507 opts = &luks2_opts; in qemu_rbd_encryption_load()
508 opts_size = sizeof(luks2_opts); in qemu_rbd_encryption_load()
511 &passphrase, &luks2_opts.passphrase_size, errp); in qemu_rbd_encryption_load()
515 luks2_opts.passphrase = passphrase; in qemu_rbd_encryption_load()
563 rbd_encryption_luks2_format_options_t *luks2_opts; in qemu_rbd_encryption_load2() local
595 luks2_opts = g_new0(rbd_encryption_luks2_format_options_t, 1); in qemu_rbd_encryption_load2()
596 specs[i].opts = luks2_opts; in qemu_rbd_encryption_load2()
597 specs[i].opts_size = sizeof(*luks2_opts); in qemu_rbd_encryption_load2()
602 (char **)&luks2_opts->passphrase, in qemu_rbd_encryption_load2()
603 &luks2_opts->passphrase_size, in qemu_rbd_encryption_load2()
656 luks2_opts = specs[i].opts; in qemu_rbd_encryption_load2()
657 g_free((void *)luks2_opts->passphrase); in qemu_rbd_encryption_load2()