Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753161AbdCBQ3L (ORCPT ); Thu, 2 Mar 2017 11:29:11 -0500 Received: from mga03.intel.com ([134.134.136.65]:57805 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751229AbdCBQ3H (ORCPT ); Thu, 2 Mar 2017 11:29:07 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,232,1484035200"; d="scan'208";a="70862325" Subject: Re: Problem with RSA test from testmgr To: =?UTF-8?Q?Stephan_M=c3=bcller?= References: <20170228155953.GA1732@Red> <20170301120414.GA18217@Red> <122aa2a3-e478-1a68-083a-273ceabaf2fb@intel.com> <3589679.E0B746otbi@tauon.atsec.com> Cc: Corentin Labbe , herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org From: Tadeusz Struk Message-ID: <3cc00e47-6076-51db-06d0-771af799984a@intel.com> Date: Thu, 2 Mar 2017 08:26:24 -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: <3589679.E0B746otbi@tauon.atsec.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 603 Lines: 17 Hi Stephan, On 03/01/2017 10:08 PM, Stephan M?ller wrote: >> memset(ptextp, 0, 256); >> memcpy(ptextp + 64 - 8, ptext_ex, plen); > I actually have tested that and it did not return the data the kernel > implementation would return It did for me: Result 64 plen=8 63 1c cd 7b e1 7e e4 de c9 a8 89 a1 74 cb 3c 63 7d 24 ec 83 c3 15 e4 7f 73 05 34 d1 ec 22 bb 8a 5e 32 39 6d c1 1d 7d 50 3b 9f 7a ad f0 2e 25 53 9f 6e bd 4c 55 84 0c 9b cf 1a 4b 51 1e 9e 0c 06 Are you sure you are compering this with the fist test vector? http://lxr.free-electrons.com/source/crypto/testmgr.h#L183 Thanks, -- Tadeusz