From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi2Ar-00010b-R7 for qemu-devel@nongnu.org; Thu, 08 Sep 2016 12:27:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bi2Am-00075s-RS for qemu-devel@nongnu.org; Thu, 08 Sep 2016 12:27:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi2Am-00075o-Le for qemu-devel@nongnu.org; Thu, 08 Sep 2016 12:27:32 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (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 17FA5C034E7B for ; Thu, 8 Sep 2016 16:27:32 +0000 (UTC) From: "Daniel P. Berrange" Date: Thu, 8 Sep 2016 17:27:21 +0100 Message-Id: <1473352047-908-1-git-send-email-berrange@redhat.com> Subject: [Qemu-devel] [PATCH 0/6] crypto: misc tweaks & improvements to pbkdf code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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. Daniel P. Berrange (6): 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 | 35 ++++++++++++++++++--------- crypto/pbkdf-gcrypt.c | 12 +++++++++- crypto/pbkdf-nettle.c | 61 ++++++++++++++++++++++++++++++++++++++++------- crypto/pbkdf.c | 23 ++++++++++++------ include/crypto/pbkdf.h | 6 ++++- qapi/crypto.json | 6 ++++- tests/test-crypto-pbkdf.c | 54 ++++++++++++++++++++++++++++++++++++++++- 8 files changed, 172 insertions(+), 31 deletions(-) -- 2.7.4