Re: [Qemu-devel] [PATCH v4 08/18] qcow: make encrypt_sectors encrypt in place

2017-02-13 Thread Alberto Garcia
On Fri 10 Feb 2017 06:09:00 PM CET, 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 uses the same buffer for input/output already > and the ot

[Qemu-devel] [PATCH v4 08/18] qcow: make encrypt_sectors encrypt in place

2017-02-10 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 uses the same buffer for input/output already and the other two callers are easily converted to do so. Reviewed-by: Eric Blake