From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brcYx-0005II-Nd for qemu-devel@nongnu.org; Tue, 04 Oct 2016 23:08:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brcYt-0004l7-HC for qemu-devel@nongnu.org; Tue, 04 Oct 2016 23:08:07 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:34481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brcYs-0004im-VO for qemu-devel@nongnu.org; Tue, 04 Oct 2016 23:08:03 -0400 From: "Gonglei (Arei)" Date: Wed, 5 Oct 2016 03:07:25 +0000 Message-ID: <33183CC9F5247A488A2544077AF19020B03E657A@SZXEMA503-MBS.china.huawei.com> References: <1475051152-400276-1-git-send-email-arei.gonglei@huawei.com> <1475051152-400276-3-git-send-email-arei.gonglei@huawei.com> <20161003161337.GV10245@stefanha-x1.localdomain> In-Reply-To: <20161003161337.GV10245@stefanha-x1.localdomain> Content-Language: zh-CN Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [Qemu-devel] [virtio-dev] Re: [PATCH v4 02/13] cryptodev: add symmetric algorithm operation stuff List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: "qemu-devel@nongnu.org" , "virtio-dev@lists.oasis-open.org" , Luonengjun , "mst@redhat.com" , "pbonzini@redhat.com" , "berrange@redhat.com" , "Huangweidong (C)" , "Wubin (H)" , "mike.caraman@nxp.com" , "agraf@suse.de" , "xin.zeng@intel.com" , Claudio Fontana , "nmorey@kalray.eu" , "vincent.jardin@6wind.com" , "Zhoujian (jay, Euler)" , "Hanweidong (Randy)" , "Huangpeng (Peter)" > -----Original Message----- > From: virtio-dev@lists.oasis-open.org [mailto:virtio-dev@lists.oasis-open= .org] > On Behalf Of Stefan Hajnoczi > Sent: Tuesday, October 04, 2016 12:14 AM > Subject: [virtio-dev] Re: [PATCH v4 02/13] cryptodev: add symmetric algor= ithm > operation stuff >=20 > On Wed, Sep 28, 2016 at 04:25:41PM +0800, Gonglei wrote: > > This patch add session operation and crypto operation >=20 > s/add/adds/ >=20 > > stuff in the cryptodev backend, including function > > pointers and correpsonding structures. >=20 > s/correpsonding/corresponding/ >=20 > > +/** > > + * QCryptoCryptoDevBackendSymOpInfo: > > + * > > + * @session_id: session index which was previously > > + * created by > qcrypto_cryptodev_backend_sym_create_session() > > + * @aad_len: byte length of additional authenticated data > > + * @iv_len: byte length of initialization vector or counter > > + * @src_len: byte length of source data > > + * @dst_len: byte length of destination data, which is equal to > > + * src_len + hash_result_len if HASH alg configured > > + * @op_type: operation type (refer to virtio_crypto.h) > > + * @iv: pointer to the initialization vector or counter > > + * @src: pointer to the source data > > + * @dst: pointer to the destination data > > + * @dst: pointer to the additional authenticated data >=20 > s/dst/aad_data/ OK, good catch, thanks! Regards, -Gonglei