Re: [Qemu-devel] [PATCH v2 04/17] crypto: add support for generating initialization vectors

2016-02-05 Thread Daniel P. Berrange
On Thu, Feb 04, 2016 at 03:57:33PM -0700, Eric Blake wrote: > On 01/20/2016 10:38 AM, Daniel P. Berrange wrote: > > There are a number of different algorithms that can be used > > to generate initialization vectors for disk encryption. This > > introduces a simple internal QCryptoBlockIV object to

Re: [Qemu-devel] [PATCH v2 04/17] crypto: add support for generating initialization vectors

2016-02-05 Thread Daniel P. Berrange
On Fri, Feb 05, 2016 at 10:23:18AM +, Daniel P. Berrange wrote: > On Thu, Feb 04, 2016 at 03:57:33PM -0700, Eric Blake wrote: > > On 01/20/2016 10:38 AM, Daniel P. Berrange wrote: > > > There are a number of different algorithms that can be used > > > to generate initialization vectors for

Re: [Qemu-devel] [PATCH v2 04/17] crypto: add support for generating initialization vectors

2016-02-04 Thread Eric Blake
On 01/20/2016 10:38 AM, Daniel P. Berrange wrote: > There are a number of different algorithms that can be used > to generate initialization vectors for disk encryption. This > introduces a simple internal QCryptoBlockIV object to provide > a consistent internal API to the different algorithms.

Re: [Qemu-devel] [PATCH v2 04/17] crypto: add support for generating initialization vectors

2016-01-21 Thread Daniel P. Berrange
On Thu, Jan 21, 2016 at 03:51:37PM +0800, Fam Zheng wrote: > On Wed, 01/20 17:38, Daniel P. Berrange wrote: > > +static int qcrypto_ivgen_essiv_init(QCryptoIVGen *ivgen, > > +const uint8_t *key, size_t nkey, > > +Error **errp)

Re: [Qemu-devel] [PATCH v2 04/17] crypto: add support for generating initialization vectors

2016-01-20 Thread Fam Zheng
On Wed, 01/20 17:38, Daniel P. Berrange wrote: > +static int qcrypto_ivgen_essiv_init(QCryptoIVGen *ivgen, > +const uint8_t *key, size_t nkey, > +Error **errp) > +{ > +uint8_t *salt; > +size_t nhash; > +

[Qemu-devel] [PATCH v2 04/17] crypto: add support for generating initialization vectors

2016-01-20 Thread Daniel P. Berrange
There are a number of different algorithms that can be used to generate initialization vectors for disk encryption. This introduces a simple internal QCryptoBlockIV object to provide a consistent internal API to the different algorithms. The initially implemented algorithms are 'plain', 'plain64'