Lines Matching refs:cipher_mode

129     QCryptoCipherMode cipher_mode;  member
500 if (!memchr(luks->header.cipher_mode, '\0', in qcrypto_block_luks_check_header()
501 sizeof(luks->header.cipher_mode))) { in qcrypto_block_luks_check_header()
595 g_autofree char *cipher_mode = g_strdup(luks->header.cipher_mode); in qcrypto_block_luks_parse_header() local
607 ivgen_name = strchr(cipher_mode, '-'); in qcrypto_block_luks_parse_header()
610 luks->header.cipher_mode); in qcrypto_block_luks_parse_header()
631 luks->cipher_mode = qcrypto_block_luks_cipher_mode_lookup(cipher_mode, in qcrypto_block_luks_parse_header()
640 luks->cipher_mode, in qcrypto_block_luks_parse_header()
790 luks->cipher_mode, in qcrypto_block_luks_store_key()
940 luks->cipher_mode, in qcrypto_block_luks_load_key()
949 luks->cipher_mode); in qcrypto_block_luks_load_key()
1248 luks->cipher_mode); in qcrypto_block_luks_open()
1262 luks->cipher_mode, in qcrypto_block_luks_open()
1312 const char *cipher_mode; in qcrypto_block_luks_create() local
1328 luks_opts.cipher_mode = QCRYPTO_CIPHER_MODE_XTS; in qcrypto_block_luks_create()
1347 luks->cipher_mode = luks_opts.cipher_mode; in qcrypto_block_luks_create()
1386 cipher_mode = QCryptoCipherMode_str(luks_opts.cipher_mode); in qcrypto_block_luks_create()
1390 cipher_mode_spec = g_strdup_printf("%s-%s:%s", cipher_mode, ivgen_alg, in qcrypto_block_luks_create()
1393 cipher_mode_spec = g_strdup_printf("%s-%s", cipher_mode, ivgen_alg); in qcrypto_block_luks_create()
1428 strcpy(luks->header.cipher_mode, cipher_mode_spec); in qcrypto_block_luks_create()
1434 if (luks_opts.cipher_mode == QCRYPTO_CIPHER_MODE_XTS) { in qcrypto_block_luks_create()
1457 luks_opts.cipher_mode, masterkey, in qcrypto_block_luks_create()
1464 luks_opts.cipher_mode); in qcrypto_block_luks_create()
1887 info->u.luks.cipher_mode = luks->cipher_mode; in qcrypto_block_luks_get_info()