/openbmc/qemu/include/crypto/ |
H A D | block.h | 27 typedef struct QCryptoBlock QCryptoBlock; typedef 32 typedef int (*QCryptoBlockReadFunc)(QCryptoBlock *block, 39 typedef int (*QCryptoBlockInitFunc)(QCryptoBlock *block, 44 typedef int (*QCryptoBlockWriteFunc)(QCryptoBlock *block, 175 int qcrypto_block_amend_options(QCryptoBlock *block, 216 QCryptoBlockInfo *qcrypto_block_get_info(QCryptoBlock *block, 233 int qcrypto_block_decrypt(QCryptoBlock *block, 253 int qcrypto_block_encrypt(QCryptoBlock *block, 278 QCryptoIVGen *qcrypto_block_get_ivgen(QCryptoBlock *block); 316 uint64_t qcrypto_block_get_sector_size(QCryptoBlock *block); [all …]
|
/openbmc/qemu/crypto/ |
H A D | blockpriv.h | 29 struct QCryptoBlock { struct 56 int (*open)(QCryptoBlock *block, argument 64 int (*create)(QCryptoBlock *block, 72 int (*amend)(QCryptoBlock *block, 80 int (*get_info)(QCryptoBlock *block, 84 void (*cleanup)(QCryptoBlock *block); 86 int (*encrypt)(QCryptoBlock *block, 91 int (*decrypt)(QCryptoBlock *block, 120 int qcrypto_block_decrypt_helper(QCryptoBlock *block, 134 int qcrypto_block_init_cipher(QCryptoBlock *block, [all …]
|
H A D | block.c | 58 QCryptoBlock *block = g_new0(QCryptoBlock, 1); in qcrypto_block_open() 93 QCryptoBlock *block = g_new0(QCryptoBlock, 1); in qcrypto_block_create() 147 g_autoptr(QCryptoBlock) crypto = in qcrypto_block_calculate_payload_offset() 155 int qcrypto_block_amend_options(QCryptoBlock *block, in qcrypto_block_amend_options() 202 int qcrypto_block_decrypt(QCryptoBlock *block, in qcrypto_block_decrypt() 212 int qcrypto_block_encrypt(QCryptoBlock *block, in qcrypto_block_encrypt() 269 int qcrypto_block_init_cipher(QCryptoBlock *block, in qcrypto_block_init_cipher() 302 void qcrypto_block_free_cipher(QCryptoBlock *block) in qcrypto_block_free_cipher() 353 void qcrypto_block_free(QCryptoBlock *block) in qcrypto_block_free() 457 int qcrypto_block_decrypt_helper(QCryptoBlock *block, in qcrypto_block_decrypt_helper() [all …]
|
H A D | block-qcow.c | 45 qcrypto_block_qcow_init(QCryptoBlock *block, in qcrypto_block_qcow_init() 96 qcrypto_block_qcow_open(QCryptoBlock *block, in qcrypto_block_qcow_open() 122 qcrypto_block_qcow_create(QCryptoBlock *block, in qcrypto_block_qcow_create() 141 qcrypto_block_qcow_cleanup(QCryptoBlock *block) in qcrypto_block_qcow_cleanup() 147 qcrypto_block_qcow_decrypt(QCryptoBlock *block, in qcrypto_block_qcow_decrypt() 162 qcrypto_block_qcow_encrypt(QCryptoBlock *block, in qcrypto_block_qcow_encrypt()
|
H A D | block-luks.c | 411 qcrypto_block_luks_store_header(QCryptoBlock *block, in qcrypto_block_luks_store_header() 442 qcrypto_block_luks_load_header(QCryptoBlock *block, in qcrypto_block_luks_load_header() 702 qcrypto_block_luks_store_key(QCryptoBlock *block, in qcrypto_block_luks_store_key() 875 qcrypto_block_luks_load_key(QCryptoBlock *block, in qcrypto_block_luks_load_key() 1034 qcrypto_block_luks_find_key(QCryptoBlock *block, in qcrypto_block_luks_find_key() 1123 qcrypto_block_luks_erase_key(QCryptoBlock *block, in qcrypto_block_luks_erase_key() 1187 qcrypto_block_luks_open(QCryptoBlock *block, in qcrypto_block_luks_open() 1295 qcrypto_block_luks_create(QCryptoBlock *block, in qcrypto_block_luks_create() 1853 qcrypto_block_luks_amend_options(QCryptoBlock *block, in qcrypto_block_luks_amend_options() 1931 qcrypto_block_luks_decrypt(QCryptoBlock *block, in qcrypto_block_luks_decrypt() [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-crypto-block.c | 187 static int test_block_read_func(QCryptoBlock *block, in test_block_read_func() 204 static int test_block_init_func(QCryptoBlock *block, in test_block_init_func() 219 static int test_block_write_func(QCryptoBlock *block, in test_block_write_func() 249 QCryptoBlock *blk) in test_block_assert_setup() 275 QCryptoBlock *blk; in test_block() 348 QCryptoBlock *blk; in test_luks_bad_header()
|
/openbmc/qemu/block/ |
H A D | crypto.c | 40 QCryptoBlock *block; 59 static int block_crypto_read_func(QCryptoBlock *block, in block_crypto_read_func() 82 static int block_crypto_write_func(QCryptoBlock *block, in block_crypto_write_func() 114 block_crypto_create_write_func(QCryptoBlock *block, size_t offset, in block_crypto_create_write_func() 130 block_crypto_create_init_func(QCryptoBlock *block, size_t headerlen, in block_crypto_create_init_func() 392 QCryptoBlock *crypto = NULL; in block_crypto_co_create_generic()
|
H A D | qcow2-threads.c | 437 typedef int (*Qcow2EncDecFunc)(QCryptoBlock *block, uint64_t offset, 441 QCryptoBlock *block;
|
H A D | qcow.c | 87 QCryptoBlock *crypto; /* Disk encryption format driver */ 821 QCryptoBlock *crypto = NULL; in qcow_co_create()
|
H A D | qcow2.h | 364 QCryptoBlock *crypto; /* Disk encryption format driver */
|
H A D | qcow2.c | 99 qcow2_crypto_hdr_read_func(QCryptoBlock *block, size_t offset, in qcow2_crypto_hdr_read_func() 123 qcow2_crypto_hdr_init_func(QCryptoBlock *block, size_t headerlen, void *opaque, in qcow2_crypto_hdr_init_func() 161 qcow2_crypto_hdr_write_func(QCryptoBlock *block, size_t offset, in qcow2_crypto_hdr_write_func() 2850 QCryptoBlock *crypto = NULL; in qcow2_co_invalidate_cache() 3213 QCryptoBlock *crypto = NULL; in qcow2_set_up_encryption()
|