diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2015-07-01 18:10:30 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-07-07 12:04:13 +0200 |
commit | 6f2945cde60545aae7f31ab9d5ef29531efbc94f (patch) | |
tree | c1859c153b35e1c4e104b1161dbc376827d88f7b | |
parent | ddbb0d09661f5fce21b335ba9aea8202d189b98e (diff) |
crypto: move built-in AES implementation into crypto/
To prepare for a generic internal cipher API, move the
built-in AES implementation into the crypto/ directory
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <1435770638-25715-3-git-send-email-berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | block/qcow.c | 2 | ||||
-rw-r--r-- | block/qcow2.c | 1 | ||||
-rw-r--r-- | block/qcow2.h | 2 | ||||
-rw-r--r-- | crypto/Makefile.objs | 1 | ||||
-rw-r--r-- | crypto/aes.c (renamed from util/aes.c) | 2 | ||||
-rw-r--r-- | include/crypto/aes.h (renamed from include/qemu/aes.h) | 0 | ||||
-rw-r--r-- | target-arm/crypto_helper.c | 2 | ||||
-rw-r--r-- | target-i386/fpu_helper.c | 1 | ||||
-rw-r--r-- | target-i386/ops_sse.h | 2 | ||||
-rw-r--r-- | target-ppc/int_helper.c | 2 | ||||
-rw-r--r-- | util/Makefile.objs | 2 |
11 files changed, 8 insertions, 9 deletions
diff --git a/block/qcow.c b/block/qcow.c index 733627fbf2..bf5c57082f 100644 --- a/block/qcow.c +++ b/block/qcow.c @@ -26,7 +26,7 @@ #include "qemu/module.h" #include <zlib.h> #include "qapi/qmp/qerror.h" -#include "qemu/aes.h" +#include "crypto/aes.h" #include "migration/migration.h" /**************************************************************/ diff --git a/block/qcow2.c b/block/qcow2.c index d522ec7d14..85e07318c7 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -25,7 +25,6 @@ #include "block/block_int.h" #include "qemu/module.h" #include <zlib.h> -#include "qemu/aes.h" #include "block/qcow2.h" #include "qemu/error-report.h" #include "qapi/qmp/qerror.h" diff --git a/block/qcow2.h b/block/qcow2.h index 5936d299a3..462147c17f 100644 --- a/block/qcow2.h +++ b/block/qcow2.h @@ -25,7 +25,7 @@ #ifndef BLOCK_QCOW2_H #define BLOCK_QCOW2_H -#include "qemu/aes.h" +#include "crypto/aes.h" #include "block/coroutine.h" //#define DEBUG_ALLOC diff --git a/crypto/Makefile.objs b/crypto/Makefile.objs index 03cc1b232d..9efc9b4146 100644 --- a/crypto/Makefile.objs +++ b/crypto/Makefile.objs @@ -1,2 +1,3 @@ util-obj-y += init.o util-obj-y += hash.o +util-obj-y += aes.o diff --git a/util/aes.c b/crypto/aes.c index 3d7c4be9b6..244a388eba 100644 --- a/util/aes.c +++ b/crypto/aes.c @@ -28,7 +28,7 @@ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "qemu-common.h" -#include "qemu/aes.h" +#include "crypto/aes.h" typedef uint32_t u32; typedef uint8_t u8; diff --git a/include/qemu/aes.h b/include/crypto/aes.h index a006da2224..a006da2224 100644 --- a/include/qemu/aes.h +++ b/include/crypto/aes.h diff --git a/target-arm/crypto_helper.c b/target-arm/crypto_helper.c index 1fe975d0f1..5d22838065 100644 --- a/target-arm/crypto_helper.c +++ b/target-arm/crypto_helper.c @@ -14,7 +14,7 @@ #include "cpu.h" #include "exec/exec-all.h" #include "exec/helper-proto.h" -#include "qemu/aes.h" +#include "crypto/aes.h" union CRYPTO_STATE { uint8_t bytes[16]; diff --git a/target-i386/fpu_helper.c b/target-i386/fpu_helper.c index 30d34d5aee..280adbac50 100644 --- a/target-i386/fpu_helper.c +++ b/target-i386/fpu_helper.c @@ -20,7 +20,6 @@ #include <math.h> #include "cpu.h" #include "exec/helper-proto.h" -#include "qemu/aes.h" #include "qemu/host-utils.h" #include "exec/cpu_ldst.h" diff --git a/target-i386/ops_sse.h b/target-i386/ops_sse.h index 0765073792..bee134bae1 100644 --- a/target-i386/ops_sse.h +++ b/target-i386/ops_sse.h @@ -18,7 +18,7 @@ * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#include "qemu/aes.h" +#include "crypto/aes.h" #if SHIFT == 0 #define Reg MMXReg diff --git a/target-ppc/int_helper.c b/target-ppc/int_helper.c index 4c2b71c708..0a55d5e54b 100644 --- a/target-ppc/int_helper.c +++ b/target-ppc/int_helper.c @@ -19,7 +19,7 @@ #include "cpu.h" #include "qemu/host-utils.h" #include "exec/helper-proto.h" -#include "qemu/aes.h" +#include "crypto/aes.h" #include "helper_regs.h" /*****************************************************************************/ diff --git a/util/Makefile.objs b/util/Makefile.objs index ceaba30939..114d6578c4 100644 --- a/util/Makefile.objs +++ b/util/Makefile.objs @@ -9,7 +9,7 @@ util-obj-y += acl.o util-obj-y += error.o qemu-error.o util-obj-$(CONFIG_POSIX) += compatfd.o util-obj-y += id.o -util-obj-y += iov.o aes.o qemu-config.o qemu-sockets.o uri.o notify.o +util-obj-y += iov.o qemu-config.o qemu-sockets.o uri.o notify.o util-obj-y += qemu-option.o qemu-progress.o util-obj-y += hexdump.o util-obj-y += crc32c.o |