From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751437AbcFXMGK (ORCPT ); Fri, 24 Jun 2016 08:06:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58593 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751089AbcFXMGI (ORCPT ); Fri, 24 Jun 2016 08:06:08 -0400 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: <20160624100215.GA19150@gondor.apana.org.au> References: <20160624100215.GA19150@gondor.apana.org.au> To: Herbert Xu Cc: dhowells@redhat.com, Mat Martineau , dwmw2@infradead.org, tadeusz.struk@intel.com, linux-security-module@vger.kernel.org, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Christoph Hellwig , "Theodore Ts'o" , Linus Torvalds , James Morris Subject: Re: [PATCH 5/8] KEYS: Provide software public key query function [ver #2] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7445.1466769962.1@warthog.procyon.org.uk> Date: Fri, 24 Jun 2016 13:06:02 +0100 Message-ID: <7446.1466769962@warthog.procyon.org.uk> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 24 Jun 2016 12:06:07 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Herbert Xu wrote: > IOW exporting the raw RSA might make sense because the key may > not be visible to user-space, or that the RSA might be implemented > in hardware offload, but there is no sane reason to export pkcs1pad. The problem is that if I'm to produce consistency with, say, the TPM interface, then I have to deal in wrapped/padded data - leastways as far as I can tell from reading the docs. David