qcow2: make qcow2_encrypt_sectors encrypt in place
commit446d306d23c8b568affec104d74f84f48d5eaa24
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 23 Jun 2017 16:24:09 +0000 (23 17:24 +0100)
committerMax Reitz <mreitz@redhat.com>
Tue, 11 Jul 2017 15:44:56 +0000 (11 17:44 +0200)
tree3c9ee21b370901005a9bdf35fd92f3281f803300
parentd85f4222b4681da7ebf8a90b26e085a68fa2c55a
qcow2: make qcow2_encrypt_sectors encrypt in place

Instead of requiring separate input/output buffers for
encrypting data, change qcow2_encrypt_sectors() to assume
use of a single buffer, encrypting in place. The current
callers all used the same buffer for input/output already.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 20170623162419.26068-11-berrange@redhat.com
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2-cluster.c
block/qcow2.c
block/qcow2.h