block.c (530049bc1dcc24c1178a29d99ca08b6dd08413e0) | block.c (986bc8ded9a5459e72951cc91b53cf2b52eb735f) |
---|---|
1/* 2 * QEMU Crypto block device encryption 3 * 4 * Copyright (c) 2015-2016 Red Hat, Inc. 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either --- 6 unchanged lines hidden (view full) --- 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 18 * 19 */ 20 21#include "qemu/osdep.h" 22#include "qapi/error.h" | 1/* 2 * QEMU Crypto block device encryption 3 * 4 * Copyright (c) 2015-2016 Red Hat, Inc. 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either --- 6 unchanged lines hidden (view full) --- 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 18 * 19 */ 20 21#include "qemu/osdep.h" 22#include "qapi/error.h" |
23#include "crypto/blockpriv.h" 24#include "crypto/block-qcow.h" 25#include "crypto/block-luks.h" | 23#include "blockpriv.h" 24#include "block-qcow.h" 25#include "block-luks.h" |
26 27static const QCryptoBlockDriver *qcrypto_block_drivers[] = { 28 [Q_CRYPTO_BLOCK_FORMAT_QCOW] = &qcrypto_block_driver_qcow, 29 [Q_CRYPTO_BLOCK_FORMAT_LUKS] = &qcrypto_block_driver_luks, 30}; 31 32 33bool qcrypto_block_has_format(QCryptoBlockFormat format, --- 263 unchanged lines hidden --- | 26 27static const QCryptoBlockDriver *qcrypto_block_drivers[] = { 28 [Q_CRYPTO_BLOCK_FORMAT_QCOW] = &qcrypto_block_driver_qcow, 29 [Q_CRYPTO_BLOCK_FORMAT_LUKS] = &qcrypto_block_driver_luks, 30}; 31 32 33bool qcrypto_block_has_format(QCryptoBlockFormat format, --- 263 unchanged lines hidden --- |