From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b89OB-0000JT-JW for qemu-devel@nongnu.org; Wed, 01 Jun 2016 12:53:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b89O7-0003Aw-JD for qemu-devel@nongnu.org; Wed, 01 Jun 2016 12:53:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60309) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b89O7-0003A9-D5 for qemu-devel@nongnu.org; Wed, 01 Jun 2016 12:52:59 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BA6044DB07 for ; Wed, 1 Jun 2016 16:52:58 +0000 (UTC) From: "Daniel P. Berrange" Date: Wed, 1 Jun 2016 17:52:50 +0100 Message-Id: <1464799972-31095-1-git-send-email-berrange@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] Change QEMU crypto hash implementation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This series changes the QEMU crypto hash implementation to use gcrypt/nettle directly instead of using gnutls abstraction. This then lets us support several more hash algorithms that gnutls does not expose itself. This is useful for LUKS block driver compatibility with dm-crypt. Daniel P. Berrange (2): crypto: switch hash code to use nettle/gcrypt directly crypto: implement sha224, sha384, sha512 and ripemd160 hashes configure | 14 ----- crypto/Makefile.objs | 3 + crypto/hash-gcrypt.c | 110 +++++++++++++++++++++++++++++++++ crypto/hash-nettle.c | 155 +++++++++++++++++++++++++++++++++++++++++++++++ crypto/hash-stub.c | 41 +++++++++++++ crypto/hash.c | 109 ++------------------------------- qapi/crypto.json | 6 +- tests/Makefile | 2 +- tests/test-crypto-hash.c | 53 +++++++++++++++- 9 files changed, 370 insertions(+), 123 deletions(-) create mode 100644 crypto/hash-gcrypt.c create mode 100644 crypto/hash-nettle.c create mode 100644 crypto/hash-stub.c -- 2.5.5