From: Corentin Labbe Subject: Re: Problem with RSA test from testmgr Date: Thu, 2 Mar 2017 07:21:58 +0100 Message-ID: <20170302062158.GA9242@Red> References: <20170228155953.GA1732@Red> <9482066.IEBbAWS9B8@positron.chronox.de> <20170301120414.GA18217@Red> <45107561.YcGaMWr4ZQ@tauon.atsec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org To: Stephan =?iso-8859-1?Q?M=FCller?= Return-path: Received: from mail-wr0-f172.google.com ([209.85.128.172]:34834 "EHLO mail-wr0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751136AbdCBGaV (ORCPT ); Thu, 2 Mar 2017 01:30:21 -0500 Content-Disposition: inline In-Reply-To: <45107561.YcGaMWr4ZQ@tauon.atsec.com> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Wed, Mar 01, 2017 at 04:07:17PM +0100, Stephan M?ller wrote: > Am Mittwoch, 1. M?rz 2017, 13:04:14 CET schrieb Corentin Labbe: > > Hi Corentin, > > > > > I got the following: > > > > [ 1.086228] alg: akcipher: encrypt test failed. Invalid output > > [ 1.092196] 00000000: 6e 7c 8a 75 e7 30 80 d1 5e ab 9b db a2 cf ed db > > [ 1.098882] 00000010: c9 b2 db 43 bd 9a b9 75 27 f3 73 d9 73 b7 81 8c > > [ 1.105524] 00000020: 49 e8 45 fc 43 44 f5 6d f0 f7 b8 f2 ae 6b ae 49 > > [ 1.112090] 00000030: 1b 8e 50 c6 88 4e 99 09 78 14 f2 5d 99 c3 7f f9 > > [ 1.118747] alg: akcipher: test 1 failed for rsa-generic, err=-22 > > (Exactly the output of my hardare and openssl test) > > > > So the problem is just that my hardware does not handle non-padded data. > > I guess the best course of action would be to patch the test vector to use the > padded data. > > Ciao > Stephan I am finishing a patch that made testmgr test both (padded and unpadded). Regards Corentin Labbe