Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752604AbdCBQdy (ORCPT ); Thu, 2 Mar 2017 11:33:54 -0500 Received: from mga06.intel.com ([134.134.136.31]:50961 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751531AbdCBQds (ORCPT ); Thu, 2 Mar 2017 11:33:48 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,232,1484035200"; d="scan'208";a="939876569" Subject: Re: Problem with RSA test from testmgr To: Corentin Labbe , =?UTF-8?Q?Stephan_M=c3=bcller?= References: <20170228155953.GA1732@Red> <9482066.IEBbAWS9B8@positron.chronox.de> <20170301120414.GA18217@Red> <45107561.YcGaMWr4ZQ@tauon.atsec.com> <20170302062158.GA9242@Red> Cc: herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org From: Tadeusz Struk Message-ID: <4adef3de-a376-5827-37cc-af45cd683293@intel.com> Date: Thu, 2 Mar 2017 08:30:10 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <20170302062158.GA9242@Red> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 407 Lines: 11 On 03/01/2017 10:21 PM, Corentin Labbe wrote: > I am finishing a patch that made testmgr test both (padded and unpadded). Even if you patch the test vectors there is no guarantee that a user of the API will always have the plain text padded. It can be anything between 1 and the key size. This needs to be the driver who adds padding if needed. See how other implementations handle it. Thanks, -- Tadeusz