Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1273463ybl; Tue, 3 Dec 2019 04:39:52 -0800 (PST) X-Google-Smtp-Source: APXvYqzmPYSUBv1HOxgF/ayiOT+SpaOHRWJhCeupcjxk1DKFWTYdXRbLa1eEDxC+vo/enlV1/KKy X-Received: by 2002:a05:6808:aac:: with SMTP id r12mr3372637oij.59.1575376791895; Tue, 03 Dec 2019 04:39:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575376791; cv=none; d=google.com; s=arc-20160816; b=YjjMYEDwecozoArtfl/d0QiNBUrbqYgEEsqK0GQAFREy/eb/fKDTv50ujXAPKQdVRC 3sfo3d+ITFJdT2HkFuf1Eo4Q2W+Duipua/dZYT2yHDBA9dX1HWlrXcEmcqkTIXEPnX70 jNIpgYPHzO1327oMs44CZn/vvuhPxgx0CtJlA1s3h79noQRz7iMuUpzR/GkDH5jVn/L1 WLBhWFll3O8p0/u1gVukRtVG/AZfmAGFB/V+VuFEymLZW7ZyQuvHVRtaltiuJN+eNMhY yzYuDE2DsDvuYrnoSZR7AhrkaaipGglHmy+NqkJCjqp5U/QfJWT0yevFYjdk9Ml5inpX AVaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=MyMcdHp2K0H8Xf4kwbcIc/jJgvEd2T5X4YN8iU45gmA=; b=GdTBCvF9qu4Qf7RVKA1oOqaCbmOZ7RxF98ZtWNu1DsuTHy97E/lIy/hRrxqu3XqSrz 6AqbwVZPWfVB2N4/xe2NdNUxZ6UClqU+IK1ICllLGDtEy6odlZsavtQRMMHdLvcZLkMb phs9Z3TdZKSmISzj+Cas46Qbe7jNkRCqpZrkGPvgwlTG1Xc7ZnlGD/Mru8ZZeGFWa0dI 5F8xFUF2kQbaidlnYhGzcFyKGSjjAihobY/ncLhIeF21mhRa6IfG1VbmKsBtbaX16Irq aOKMGJT/aAB488LLe/yKTi2yJ0iYLtNyanfSnVnmRd3gydg9s22/uuoPtt77fmE9nDJf LvPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Il9yVdFZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i8si1207778oia.137.2019.12.03.04.39.34; Tue, 03 Dec 2019 04:39:51 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Il9yVdFZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726057AbfLCMjd (ORCPT + 99 others); Tue, 3 Dec 2019 07:39:33 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:37479 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725957AbfLCMjc (ORCPT ); Tue, 3 Dec 2019 07:39:32 -0500 Received: by mail-wm1-f67.google.com with SMTP id f129so3294672wmf.2 for ; Tue, 03 Dec 2019 04:39:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MyMcdHp2K0H8Xf4kwbcIc/jJgvEd2T5X4YN8iU45gmA=; b=Il9yVdFZzbZaPUj1ohbbehmm9zRyot/JUqKTlcpSKSCspMmzjGZxIfFTZgQXrozzHa FD+l8AZZBZGnOE17aI88s3cZ8SGiMkoQc9jMNPg3yXUxrmYq7twGOMV5bOERLIQgm9f9 LuYqu0ikgz6AoXLfkv/WdGBU3p5cuyB3neCeG+aU48EOAOePXUxkCJoFhzJs9oit5R/d oJiCQqmnjVtWBoEnPihnXREUvQsGkgDtEI2c2lk+kQp4e276le/jBoP+Bj5SwjaOgeCc 5F5DDhxmuGiYDWi4iX2RdRRANKqsP2V0U6qFBQpMx7KuKdQTOneq/ZKJS5IA/G5NPHDq yugQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MyMcdHp2K0H8Xf4kwbcIc/jJgvEd2T5X4YN8iU45gmA=; b=kNtJSn4hHnd7JOCBItAYFToF9cC1rlRb36YRKZ5Xz24KviKHQkGbdra3zHJIOuXoH6 oe41IzG8p57Q+8hcVsmRIz2Lcs9OM+YXBpdGjVfPaNVvFmeyAW/FwKKbS1SZzFcnB6pT prdLR84zlOsaxu5EXcXXDOILRy5lz57Z2fh/AkX2CArFyBfcEhsh2+M/Bzh083mv0SZ6 dID+g2S18OD0W4HRK9hVO80m4dob+pwDyoFsoOKF750ph+gjs1NJHZd6E7SPN8J1TxPx d5u583m0t4KjeY6UjSSm4D7pIa7IdySnkzq369YSp86yvJbvBUzhVE2UvGUGn2iiXFlP CJhg== X-Gm-Message-State: APjAAAUpJZAyauC321wXCHUWxYgEWc/u7u1j6qsnTqtjwQJb2ARQYT6L UaQizmsbMWv/CISZR+Othu0Sux8T8ZQNcktb6GGr1Q== X-Received: by 2002:a1c:4c10:: with SMTP id z16mr32330206wmf.136.1575376770518; Tue, 03 Dec 2019 04:39:30 -0800 (PST) MIME-Version: 1.0 References: <20191201215330.171990-1-ebiggers@kernel.org> In-Reply-To: <20191201215330.171990-1-ebiggers@kernel.org> From: Ard Biesheuvel Date: Tue, 3 Dec 2019 12:39:26 +0000 Message-ID: Subject: Re: [PATCH 0/7] crypto: more self-test improvements To: Eric Biggers Cc: "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Sun, 1 Dec 2019 at 21:54, Eric Biggers wrote: > > This series makes some more improvements to the crypto self-tests, the > largest of which is making the AEAD fuzz tests test inauthentic inputs, > i.e. cases where decryption is expected to fail due to the (ciphertext, > AAD) pair not being the correct result of an encryption with the key. > > It also updates the self-tests to test passing misaligned buffers to the > various setkey() functions, and to check that skciphers have the same > min_keysize as the corresponding generic implementation. > > I haven't seen any test failures from this on x86_64, arm64, or arm32. > But as usual I haven't tested drivers for crypto accelerators. > > For this series to apply this cleanly, my other series > "crypto: skcipher - simplifications due to {,a}blkcipher removal" > needs to be applied first, due to a conflict in skcipher.h. > > This can also be retrieved from git at > https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git > tag "crypto-self-tests_2019-12-01". > > Eric Biggers (7): > crypto: aead - move crypto_aead_maxauthsize() to > crypto: skcipher - add crypto_skcipher_min_keysize() > crypto: testmgr - don't try to decrypt uninitialized buffers > crypto: testmgr - check skcipher min_keysize > crypto: testmgr - test setting misaligned keys > crypto: testmgr - create struct aead_extra_tests_ctx > crypto: testmgr - generate inauthentic AEAD test vectors > I've dropped this into kernelci again, let's see if anything turns out to be broken. For this series, Acked-by: Ard Biesheuvel > crypto/testmgr.c | 574 +++++++++++++++++++++++++-------- > crypto/testmgr.h | 14 +- > include/crypto/aead.h | 10 + > include/crypto/internal/aead.h | 10 - > include/crypto/skcipher.h | 6 + > 5 files changed, 461 insertions(+), 153 deletions(-) > > -- > 2.24.0 >