Return-Path: Received: from mail-wr0-x22b.google.com (mail-wr0-x22b.google.com [IPv6:2a00:1450:400c:c0c::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Sun, 9 Jul 2017 16:58:25 +0200 (CEST) Received: by mail-wr0-x22b.google.com with SMTP id r103so106706820wrb.0 for ; Sun, 09 Jul 2017 07:58:25 -0700 (PDT) References: <20170427150902.GA13598@linux.vnet.ibm.com> <1e315fda-40da-8ea8-020e-0cb34f2c4207@eschenberg.eu> <20170516074721.GA6471@linux.vnet.ibm.com> From: Milan Broz Message-ID: <36ba6a73-44d3-e209-c877-1dc763b9790e@gmail.com> Date: Sun, 9 Jul 2017 16:58:23 +0200 MIME-Version: 1.0 In-Reply-To: <20170516074721.GA6471@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] Managing wrapped key ciphers with cryptsetup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hendrik Brueckner Cc: dm-crypt On 04/27/2017 05:09 PM, Hendrik Brueckner wrote:> > Of course, I think it is and I would be glad when we can work together > on a solution. Hi, so I finally got through the discussion and the patches. And no, I think this should not be a part of the cryptsetup core as it is. I mentioned some reasons in the comment for merge request: https://gitlab.com/cryptsetup/cryptsetup/merge_requests/19 I understand that this is interesting for IBM to have supported in enterprise distros. I would like to have some support for this feature as well but not the way it will complicate code for others and makes it HW-dependent for everyone. I have mentioned some possible way how to do it in the comment as well. (I think some external application linked to libcryptsetup, and then handling your pAES algorithm and wrapped key just as an another encryption algorithm is much cleaner.) The pAES (and PKEY ioctls) are currently only available on IBM s390 (and I guess only on some models; guessing from Linux kernel sources), so this is enterprise only thing. BTW does Hercules emulator support this so a regular user can try the HSM interface? (I have probably access it to the real HW if needed but for other people.) Thanks for patches and discussion anyway! Milan