Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4305840ybc; Fri, 22 Nov 2019 00:17:07 -0800 (PST) X-Google-Smtp-Source: APXvYqz5dMZOhZYAYFNPqOSMdFmqrx38fGRbThrsIlAFKYlXg9jD1DyoBzWbvPgB+/3VssNz9Zkv X-Received: by 2002:adf:b199:: with SMTP id q25mr17147242wra.320.1574410627083; Fri, 22 Nov 2019 00:17:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574410627; cv=none; d=google.com; s=arc-20160816; b=UnKAQIFzUXK7+qAjk4OOX1R/JnDnVeLNbN9z+F6TwJpDULD+MWrXii8jtuQ9TYb4cM JRGp40ktkOvEGor6OtYBA07tJ2fO13IY7bhtS80mUj/1dJXW6Pcnh7a1uALvlZuVc2GL LMAuBfIplY1Tnzcm7HwbF1qN07ssonBtddfThSxCk+39eiZwh/zSWct+jnxtjiPZAwk3 v1H0giEaD3/Px+x795a1Ny2igGb7SpN198qMYuT6j+Iy5d2i6GlmI9ViiqRrQuFNGzhA XFzWg74CQ6u9FxI/keHyHdOAx1HPVW8CMgwEq/dmTSQt+Nh/83QWMPE8cSwpTv2LqoT/ 6nWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Y1nUwE+djSU8Kdibv6vxVquWvjJtMGevZjZsHjmz+3s=; b=wMgUfeZj5CYj5w0oO6tI/9IY53LfAYnXjj8l3eHHhJaEasNyUEggL6XlZ+WOmBjAA4 dyZldKGoUM8f7Ri+i/nEpaW7zF1UjcFY+KY3de6aAxaRAmPGhGzbS3hq+roulQ+dFlCd yYC2es5r38OaoSMq2QorXB77kdNYlvOrAU9A7GHI/J4GJ4qa8XKMCuxxe0u6YWbkIv6X +inwciyTPWaesaoSt60vtWvUApmwmYWIj+ta03cwSpwuyXEXTX5zgh0DYxfVnQXor/r9 6UaWs4sughMZOkqcbGDQ1cj30y/YWcVFUgXyOHg4au0Y0H5CUC0LvEbTq12i/kzLHGz4 dVqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h52si4162560edb.77.2019.11.22.00.16.42; Fri, 22 Nov 2019 00:17:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726548AbfKVIQM (ORCPT + 99 others); Fri, 22 Nov 2019 03:16:12 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:43546 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726018AbfKVIQM (ORCPT ); Fri, 22 Nov 2019 03:16:12 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1iY46t-0007jR-Gi; Fri, 22 Nov 2019 16:16:11 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1iY46t-0004vb-BY; Fri, 22 Nov 2019 16:16:11 +0800 Date: Fri, 22 Nov 2019 16:16:11 +0800 From: Herbert Xu To: Harald Freudenberger Cc: linux-crypto@vger.kernel.org, ebiggers@kernel.org, heiko.carstens@de.ibm.com, gor@linux.ibm.com Subject: Re: [PATCH 3/3] crypto/testmgr: add selftests for paes-s390 Message-ID: <20191122081611.vznhvhouim6hnehc@gondor.apana.org.au> References: <20191113105523.8007-1-freude@linux.ibm.com> <20191113105523.8007-4-freude@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191113105523.8007-4-freude@linux.ibm.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Nov 13, 2019 at 11:55:23AM +0100, Harald Freudenberger wrote: > This patch adds selftests for the s390 specific protected key > AES (PAES) cipher implementations: > * cbc-paes-s390 > * ctr-paes-s390 > * ecb-paes-s390 > * xts-paes-s390 > PAES is an AES cipher but with encrypted ('protected') key > material. So here come ordinary AES enciphered data values > but with a special key format understood by the PAES > implementation. > > The testdata definitons and testlist entries are surrounded > by #if IS_ENABLED(CONFIG_CRYPTO_PAES_S390) because they don't > make any sense on non s390 platforms or without the PAES > cipher implementation. > > Signed-off-by: Harald Freudenberger > --- > crypto/testmgr.c | 36 +++++ > crypto/testmgr.h | 334 +++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 370 insertions(+) So with your cleartext work, I gather that you can now supply arbitrary keys to paes? If so my preferred method of testing it would be to add a paes-specific tester function that massaged the existing aes vectors into the format required by paes so you get exactly the same testing coverage as plain aes. Is this possible? Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt