Re: [Qemu-devel] [PATCH v2 13/17] qcow: make encrypt_sectors encrypt in place

2016-02-09 Thread Daniel P. Berrange
On Mon, Feb 08, 2016 at 01:30:10PM -0700, Eric Blake wrote: > On 01/20/2016 10:38 AM, Daniel P. Berrange wrote: > > Instead of requiring separate input/output buffers for > > encrypting data, change encrypt_sectors() to assume > > use of a single buffer, encrypting in place. One current > > caller

Re: [Qemu-devel] [PATCH v2 13/17] qcow: make encrypt_sectors encrypt in place

2016-02-08 Thread Eric Blake
On 01/20/2016 10:38 AM, Daniel P. Berrange wrote: > Instead of requiring separate input/output buffers for > encrypting data, change encrypt_sectors() to assume > use of a single buffer, encrypting in place. One current > caller all uses the same buffer for input/output already > and the other two

[Qemu-devel] [PATCH v2 13/17] qcow: make encrypt_sectors encrypt in place

2016-01-20 Thread Daniel P. Berrange
Instead of requiring separate input/output buffers for encrypting data, change encrypt_sectors() to assume use of a single buffer, encrypting in place. One current caller all uses the same buffer for input/output already and the other two callers are easily converted todo so. Signed-off-by: Daniel