block-qcow.c (530049bc1dcc24c1178a29d99ca08b6dd08413e0) block-qcow.c (986bc8ded9a5459e72951cc91b53cf2b52eb735f)
1/*
2 * QEMU Crypto block device encryption QCow/QCow2 AES-CBC format
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

--- 13 unchanged lines hidden (view full) ---

22 * Note that the block encryption implemented in this file is broken
23 * by design. This exists only to allow data to be liberated from
24 * existing qcow[2] images and should not be used in any new areas.
25 */
26
27#include "qemu/osdep.h"
28#include "qapi/error.h"
29
1/*
2 * QEMU Crypto block device encryption QCow/QCow2 AES-CBC format
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

--- 13 unchanged lines hidden (view full) ---

22 * Note that the block encryption implemented in this file is broken
23 * by design. This exists only to allow data to be liberated from
24 * existing qcow[2] images and should not be used in any new areas.
25 */
26
27#include "qemu/osdep.h"
28#include "qapi/error.h"
29
30#include "crypto/block-qcow.h"
30#include "block-qcow.h"
31#include "crypto/secret.h"
32
33#define QCRYPTO_BLOCK_QCOW_SECTOR_SIZE 512
34
35
36static bool
37qcrypto_block_qcow_has_format(const uint8_t *buf G_GNUC_UNUSED,
38 size_t buf_size G_GNUC_UNUSED)

--- 145 unchanged lines hidden ---
31#include "crypto/secret.h"
32
33#define QCRYPTO_BLOCK_QCOW_SECTOR_SIZE 512
34
35
36static bool
37qcrypto_block_qcow_has_format(const uint8_t *buf G_GNUC_UNUSED,
38 size_t buf_size G_GNUC_UNUSED)

--- 145 unchanged lines hidden ---