Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4621383ybp; Mon, 7 Oct 2019 11:10:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBKIQ6M7G6vHuFfvJ/Ra2QgtfZvCnGM4N0kPZm/Hz+BzJ1TtFzrHEYR3p4c39kGhrlu+FX X-Received: by 2002:a17:906:d185:: with SMTP id c5mr24664166ejz.139.1570471804895; Mon, 07 Oct 2019 11:10:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570471804; cv=none; d=google.com; s=arc-20160816; b=xn9OVou2RtpbJ8zSv3DB5yzT3OMQN2H3HE45/xf06S5ZaOsQ1QHNsaJNiI/JH/9Czy iXBe9ACE+0nxXWrGZ/3j5aOvfT+0+N5knw2WVbyThe5pffW56saMoTz5bdaRso2UHDcD JSVH5FBDWe1XTofHNklgxlAWDegVzYKDjdiTPS9i/jYtruesWMTTn1H+uGjMXIEC2SCr YvQ/1ok6CWIa8BFgrY/KPgNIdB6k0G95ZeHUnnWazZJXrzNv1USOzLOetmCYi3PkQCzq pbdddzlnJ0ASQVsMHwzEsbp/FcUWquUXAshiLrHzzgfOB8wgjIOL/rwXnnvWFt/Emf71 171A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject; bh=qgtAz7bQhEr7maRwwgdenLyTSrlEICeRBYpZW8R0GFU=; b=pRcoprq6bGpLQWcjALncCghwimgvh12TrBNQjJQnFlieAzuBKtEtz8AsohHtdqDvh9 0lNWl9JFfvkXwUOMWK0rz2HTnSPKQc+biGeXOOVyJMJCkUHkGFgHI4RSQmM5+sCsqVT2 lsqFG8TM9l4PtQ02X3csg+KNPYxx3NP1As1BpXQX3v7K4tk7K7mATzRQBKUs0jlpe2I4 2q1Lby1itsCzHVfCiGCy2lwgD6Yl1lBC9icE2ajB/kPFKVC+tOobJYD3vkyJE70Qlw1o nO6mR3YnfyWIFjnXEJis3660QHsWIIn+27gcZX03lyoYdDq/4nJgj4hTw3CsO4GxARbO f76A== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l21si8936128edc.112.2019.10.07.11.09.41; Mon, 07 Oct 2019 11:10:04 -0700 (PDT) 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728187AbfJGSI1 (ORCPT + 99 others); Mon, 7 Oct 2019 14:08:27 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:21718 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728212AbfJGSI0 (ORCPT ); Mon, 7 Oct 2019 14:08:26 -0400 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x97I2jGN037903 for ; Mon, 7 Oct 2019 14:08:26 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2vg9h7sx0j-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 07 Oct 2019 14:08:25 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 7 Oct 2019 19:08:23 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 7 Oct 2019 19:08:19 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x97I8Idm54394928 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 7 Oct 2019 18:08:18 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 14DF711C05C; Mon, 7 Oct 2019 18:08:18 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C533A11C04C; Mon, 7 Oct 2019 18:08:16 +0000 (GMT) Received: from dhcp-9-31-103-196.watson.ibm.com (unknown [9.31.103.196]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 7 Oct 2019 18:08:16 +0000 (GMT) Subject: Re: [PATCH] KEYS: asym_tpm: Switch to get_random_bytes() From: Mimi Zohar To: Jarkko Sakkinen Cc: James Bottomley , Jerry Snitselaar , David Safford , linux-integrity@vger.kernel.org, stable@vger.kernel.org, David Howells , Herbert Xu , "David S. Miller" , "open list:ASYMMETRIC KEYS" , "open list:CRYPTO API" , open list Date: Mon, 07 Oct 2019 14:08:15 -0400 In-Reply-To: <20191006235238.GA16641@linux.intel.com> References: <1570140491.5046.33.camel@linux.ibm.com> <1570147177.10818.11.camel@HansenPartnership.com> <20191004182216.GB6945@linux.intel.com> <1570213491.3563.27.camel@HansenPartnership.com> <20191004183342.y63qdvspojyf3m55@cantor> <1570214574.3563.32.camel@HansenPartnership.com> <20191004200728.xoj6jlgbhv57gepc@cantor> <20191004201134.nuesk6hxtxajnxh2@cantor> <1570227068.17537.4.camel@HansenPartnership.com> <1570322333.5046.145.camel@linux.ibm.com> <20191006235238.GA16641@linux.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19100718-4275-0000-0000-0000036EEB6D X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19100718-4276-0000-0000-00003881FA7D Message-Id: <1570471695.5046.186.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-10-07_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=3 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=669 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910070161 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-10-07 at 02:52 +0300, Jarkko Sakkinen wrote: > > With TEE coming in, TPM is not the only hardware measure anymore sealing > the keys and we don't want a mess where every hardware asset does their > own proprietary key generation. The proprietary technology should only > take care of the sealing part. I'm fine with the concept of "trusted" keys being extended beyond just TPM.  But just as the VFS layer defines a set of callbacks and generic functions, which can be used in lieu of file system specific callback functions, a similar approach could be used here. Mimi