From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjRze-0005UN-FQ for qemu-devel@nongnu.org; Mon, 12 Sep 2016 10:13:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjRzY-0005PJ-I6 for qemu-devel@nongnu.org; Mon, 12 Sep 2016 10:13:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjRzY-0005P7-CF for qemu-devel@nongnu.org; Mon, 12 Sep 2016 10:13:48 -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 12CB6C05AA45 for ; Mon, 12 Sep 2016 14:13:48 +0000 (UTC) From: "Daniel P. Berrange" Date: Mon, 12 Sep 2016 15:13:36 +0100 Message-Id: <1473689623-28870-1-git-send-email-berrange@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/7] crypto: misc tweaks & improvements to pbkdf code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is an update of v1: https://lists.gnu.org/archive/html/qemu-devel/2016-09/msg01841.html The core goal of this series was to make the pbkdf2 iteration time configurable. In doing so a number of other improvements were identified, and some updates done to match latest cryptsetup behaviour / recommendations. Changed in v2: - Switch pbkdf APIs to use uint64_t for iteration count - Fix detection of iteration count overflow (Eric) - Misc typos (Eric) - Use correct syntax for qapi 'since' annotation - Use g_new instead of g_new0 (Eric) Daniel P. Berrange (7): crypto: use uint64_t for pbkdf iteration count parameters crypto: make PBKDF iterations configurable for LUKS format crypto: clear out buffer after timing pbkdf algorithm crypto: use correct derived key size when timing pbkdf crypto: remove bogus /= 2 for pbkdf iterations crypto: increase default pbkdf2 time for luks to 2 seconds crypto: support more hash algorithms for pbkdf block/crypto.c | 6 ++++ crypto/block-luks.c | 78 +++++++++++++++++++++++++++++++++-------------- crypto/pbkdf-gcrypt.c | 21 +++++++++++-- crypto/pbkdf-nettle.c | 71 ++++++++++++++++++++++++++++++++++++------ crypto/pbkdf-stub.c | 2 +- crypto/pbkdf.c | 35 +++++++++++---------- include/crypto/pbkdf.h | 16 ++++++---- qapi/crypto.json | 6 +++- tests/test-crypto-pbkdf.c | 54 +++++++++++++++++++++++++++++++- 9 files changed, 229 insertions(+), 60 deletions(-) -- 2.7.4