Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp880896ybp; Fri, 4 Oct 2019 06:28:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYU57zCcioSQp8BAETLRd6mHiAPkEOuqoox68K5oAZvkYdYFq3fcIE49yS/TKoeXAfYjXv X-Received: by 2002:a17:906:81c6:: with SMTP id e6mr12332908ejx.284.1570195728543; Fri, 04 Oct 2019 06:28:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570195728; cv=none; d=google.com; s=arc-20160816; b=XewQLGcaykiXf1sAnHK0nUD1Tkk4sgGSX2tp3ohXv5f04e3ltQo2oITn/2lN18M0LQ 1ARb1AUI2akalaW0/Xn1qgMArVxLw4HJYy2NQT/ESsOytK9Efhg4zGplSbzxuNMtE9ZX TdSicNMCfSbiZFwHsfmeHWwBySXk/sgRUbKVQC4Ay4RA6ImOM6KkScBcBOkFTYNdx8ry N4jjvRbLIFkEXnNMT5Uua9lNX+4bUkMtklnX/lcwrsE4aKuoXR1Wct2BXJ4phZM5jPVU 9JjW3oLfF1YubZA2n2WzURZlHviHk0N2e4hXYvLQIgv2Pb34DqMqRpFhLrA04X/nFIgi sbOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:mime-version :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic:cc :to:from; bh=zHFo8/XCu7aW1lVIMAURtKRy0T/wLfQHoXXFGuHdP+M=; b=LiRJm1K1M2kupkmckCYfiX9MAomTM3Ks17l0bUD2nJsl2Qtr4vrBl+Qz0GgDT3/j5u YiC4ZdKhZXSrOV6lLGu3RgaysB5X9s3RdKjh7qYwObQ+P/hRM3cgidD4bksowJWJRJ8Z cMz0vNy3DfUIpzbcoRrbUzp64iRPu4VRVwhXMtuYssBPTQkBZfK+28Sj7RAoybToIvP3 Hpw7+2KwaFua97gnxc5GW5JqmxXlhJU1/ON/JMUxUHLzgShqWsYs1uFrSih+cfSrRrOR lz1Lu3KbuWfypN4n0EcyVByKOzjZUjNrL3O+rQjg9cxF3d/re6HuWlswUU5PpxvIOL0n FqPg== 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=ge.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sd13si2904101ejb.256.2019.10.04.06.28.23; Fri, 04 Oct 2019 06:28:48 -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=ge.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388438AbfJDN1L (ORCPT + 99 others); Fri, 4 Oct 2019 09:27:11 -0400 Received: from mx0a-00176a03.pphosted.com ([67.231.149.52]:43390 "EHLO mx0a-00176a03.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388197AbfJDN1K (ORCPT ); Fri, 4 Oct 2019 09:27:10 -0400 Received: from pps.filterd (m0047961.ppops.net [127.0.0.1]) by m0047961.ppops.net-00176a03. (8.16.0.42/8.16.0.42) with SMTP id x94DQiO1000518; Fri, 4 Oct 2019 09:27:09 -0400 From: "Safford, David (GE Global Research, US)" To: Mimi Zohar , Jarkko Sakkinen , "Wiseman, Monty (GE Global Research, US)" CC: "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 Thread-Topic: Re: [PATCH] KEYS: asym_tpm: Switch to get_random_bytes() Thread-Index: AQHVdI4g9L3xPAeMJki3mq4fpV79C6dHrWSAgAFrf4CAABaxAIAAUs4AgAAPVoCAAOxxAA== Date: Fri, 4 Oct 2019 13:26:58 +0000 Message-ID: References: <20190926171601.30404-1-jarkko.sakkinen@linux.intel.com> <1570024819.4999.119.camel@linux.ibm.com> <20191003114119.GF8933@linux.intel.com> <1570107752.4421.183.camel@linux.ibm.com> <20191003175854.GB19679@linux.intel.com> <1570128827.5046.19.camel@linux.ibm.com> In-Reply-To: <1570128827.5046.19.camel@linux.ibm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: =?utf-8?B?UEcxbGRHRStQR0YwSUc1dFBTSmliMlI1TG5SNGRDSWdjRDBpWXpwY2RYTmxj?= =?utf-8?B?bk5jTWpFeU5EY3pPVFV3WEdGd2NHUmhkR0ZjY205aGJXbHVaMXd3T1dRNE5E?= =?utf-8?B?bGlOaTB6TW1RekxUUmhOREF0T0RWbFpTMDJZamcwWW1FeU9XVXpOV0pjYlhO?= =?utf-8?B?bmMxeHRjMmN0WVRKa05qTTFOV1l0WlRaaFlTMHhNV1U1TFRobE5XTXRZVFJq?= =?utf-8?B?TTJZd1lqVTVPR0UyWEdGdFpTMTBaWE4wWEdFeVpEWXpOVFl3TFdVMllXRXRN?= =?utf-8?B?VEZsT1MwNFpUVmpMV0UwWXpObU1HSTFPVGhoTm1KdlpIa3VkSGgwSWlCemVq?= =?utf-8?B?MGlNemN6TlNJZ2REMGlNVE15TVRRMk5qa3lNVGMxT0RVME9ESTRJaUJvUFNK?= =?utf-8?B?dloyZDVXalpCVldVelVFNWpNekZyYUdsak9YRmFOMU5vZVc4OUlpQnBaRDBp?= =?utf-8?B?SWlCaWJEMGlNQ0lnWW04OUlqRWlJR05wUFNKalFVRkJRVVZTU0ZVeFVsTlNW?= =?utf-8?B?VVpPUTJkVlFVRkZiME5CUVVSelprZEtiS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utf-8?B?UVVGQlFVRkJRVUZCUVVGQlFVRkJRVUZCUVVGQlFVRkJRVUZCUVVGQlFVRkJV?= =?utf-8?B?VUZCUVVGQlFVRkJRVU5CUVVGQlFVRkRaVUZCUVVGYWQwSnNRVVk0UVdKblFu?= =?utf-8?B?WkJSelJCWTBGQ01VRkhTVUZpUVVKd1FVZE5RVUZCUVVGQlFVRkJRVUZCUVVG?= =?utf-8?B?QlFVRkJRVUZCUVVGQlFVRkJRVUZCUVVGQlFVRkJRVUZCUVVGQlFVRkJRVUZC?= =?utf-8?B?UVVGQlFVRkJRVUZCUVVGQlFVRkJRVUZCUVVGQlFVRkJRVUZCUVVGQlFVRkJR?= =?utf-8?B?VUZCUVVGQlFVRkJRVUZCUVVGQlFVRkJRVUZCUVVGQlFVRkJRVUZCUVVGQlFV?= =?utf-8?B?RkJRVUZCUVVGQlFVRkJRVUZCUVVGQlFVRkJRVUZCUVVGQlFVRkJRVUZCUVVG?= =?utf-8?B?QlFVRkJRVUZCUWtGQlFVRkJRVUZCUVVGSlFVRkJRVUZCUVQwOUlpOCtQQzl0?= =?utf-8?B?WlhSaFBnPT0=?= x-dg-rorf: x-originating-ip: [3.159.19.191] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: [PATCH] KEYS: asym_tpm: Switch to get_random_bytes() X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-10-04_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910040125 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBGcm9tOiBNaW1pIFpvaGFyIDx6b2hhckBsa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