Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4325601imb; Wed, 6 Mar 2019 10:33:56 -0800 (PST) X-Google-Smtp-Source: APXvYqz+fWLDpJTEC/biilGW2cyn3jFJ577A6moNqxadCvYO1Yq1GwzA5rzMfOhnjIkGj+1nFOcJ X-Received: by 2002:a17:902:9001:: with SMTP id a1mr8322633plp.96.1551897236324; Wed, 06 Mar 2019 10:33:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551897236; cv=none; d=google.com; s=arc-20160816; b=V8fSeNr+3+srwGHVtgIivy1pekwQCfc9uHJdZ17BB3OLrajed80kEFlzqVLXU2lgQw LMyasEIE9pc5AOBnBzYDJc8EI2qA1eMm8jjF3XNFx70L8ZMrm/r667gHXHlkdbIMuv9O lgoZKsif7UD42YfiIqhESbXEcAn2LcBsl+9aQR3WU7NtiPC3j5EmViWxdTRgcZEUF7Ye wlTbqxGatDU251sdpYryVx5v30GGiagEEtGP72NxFKuaYZA39lMQPShgMPQ7ylV1pnly +5TGoBkVNPnIceSV87NaYU0VzloKpOykb80j61sj1HR1VPijibHncY4Yi3y9oZsPjFQm PW+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization; bh=JHTd5//QrlEoWhEgUs8+QOfP0GQGPbMLitmYBxhGDeU=; b=Rga8I17ptuSN4E1ucKbEBepp8MTNB0DgBrL4bV1NtwxO+SP2wFiWFZb9085jnY5Dk8 lYFfN2XoyoS82HXKuT3EtH7b0qXOHU1YChp6MSx+Tb7R75Lf918u9gT2h768W6FrQKDc Y+Rs1WXn1C1CyVJDdTmUA7hSxBikOISSGkdemvtfIjCeLff+Ftu4bAm9iMwc4eku3q44 z1bOGoQ9rf51PnxcZgFGDuhWVjeZiDlAHBwzAcaWFZQwvc4PoEzcElwllTdHWHijNd2K LhlBgG//Jw7cQ3a7rb0WzLpaSBtI82pJLgc5xC5tJV5bWWtdt9UzAPVyegbeMK+S+tt1 Gi2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 93si2175827plf.288.2019.03.06.10.33.41; Wed, 06 Mar 2019 10:33:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730426AbfCFRaI (ORCPT + 99 others); Wed, 6 Mar 2019 12:30:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49886 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726241AbfCFRaH (ORCPT ); Wed, 6 Mar 2019 12:30:07 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B719A3087BC3; Wed, 6 Mar 2019 17:30:06 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-121-148.rdu2.redhat.com [10.10.121.148]) by smtp.corp.redhat.com (Postfix) with ESMTP id A284E40EF8; Wed, 6 Mar 2019 17:29:56 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <1551456599-10603-1-git-send-email-franck.lenormand@nxp.com> References: <1551456599-10603-1-git-send-email-franck.lenormand@nxp.com> To: Franck LENORMAND Cc: dhowells@redhat.com, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, keyrings@vger.kernel.org, horia.geanta@nxp.com, silvano.dininno@nxp.com, agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com, jmorris@namei.org, serge@hallyn.com Subject: Re: [RFC PATCH 0/2] Create CAAM HW key in linux keyring and use in dmcrypt MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11176.1551893395.1@warthog.procyon.org.uk> Date: Wed, 06 Mar 2019 17:29:55 +0000 Message-ID: <11177.1551893395@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Wed, 06 Mar 2019 17:30:07 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Franck LENORMAND wrote: > The capacity to generate or load keys already available in the Linux key > retention service does not allows to exploit CAAM capabilities hence we > need to create a new key_type. The new key type "caam_tk" allows to: > - Create a black key from random > - Create a black key from a red key > - Load a black blob to retrieve the black key Is it possible that this could be done through an existing key type, such as the asymmetric, trusted or encrypted key typed? David