Received: from eggs.gnu.org ([2001:4830:134:3::10]:42227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOD3c-0002wV-16 for qemu-devel@nongnu.org; Mon, 02 Jan 2017 19:34:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOD3Y-0001Kl-TL for qemu-devel@nongnu.org; Mon, 02 Jan 2017 19:34:28 -0500 Received: from szxga02-in.huawei.com ([119.145.14.65]:8684) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1cOD3Y-0001IL-7P for qemu-devel@nongnu.org; Mon, 02 Jan 2017 19:34:24 -0500 From: "Longpeng(Mike)" Date: Tue, 3 Jan 2017 08:33:05 +0800 Message-ID: <1483403591-2564-1-git-send-email-longpeng2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 0/6] add AEAD algorithms support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: berrange@redhat.com Cc: wu.wubin@huawei.com, jianjay.zhou@huawei.com, arei.gonglei@huawei.com, qemu-devel@nongnu.org, "Longpeng(Mike)" Since QEMU has been supported cryptodev, so it is necessary to support more crypto algorithms(i.e. hmac,aead) in QEMU backend. We have already added HMAC support, and this patchset adds AEAD algos support. Longpeng(Mike) (6): configure: add CONFIG_GCRYPT/NETTLE_AEAD item crypto: add AEAD algorithms framework crypto: implement nettle-backed AEAD algorithms crypto: implement gcrypt-backed AEAD algorithms crypto: implement other common funcs for AEAD algorithms crypto: add AEAD algorithms testcases configure | 36 +++++ crypto/Makefile.objs | 3 + crypto/aead-gcrypt.c | 231 ++++++++++++++++++++++++++++++ crypto/aead-nettle.c | 232 ++++++++++++++++++++++++++++++ crypto/aead.c | 124 ++++++++++++++++ crypto/aead.h | 180 ++++++++++++++++++++++++ qapi/crypto.json | 4 +- tests/Makefile.include | 2 + tests/test-crypto-aead.c | 357 +++++++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 1168 insertions(+), 1 deletion(-) create mode 100644 crypto/aead-gcrypt.c create mode 100644 crypto/aead-nettle.c create mode 100644 crypto/aead.c create mode 100644 crypto/aead.h create mode 100644 tests/test-crypto-aead.c -- 2.9.3