Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp413735ybl; Wed, 11 Dec 2019 01:44:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxoO2VdCsGDOnkpAtEfy3nGp3cwzgfySikFNVaAIQLc6qReiJ8hHiANsQeaEWfk3Sx5Su1y X-Received: by 2002:a9d:6f11:: with SMTP id n17mr1591122otq.126.1576057461590; Wed, 11 Dec 2019 01:44:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576057461; cv=none; d=google.com; s=arc-20160816; b=zq77mjYKJ0Zt5xAoUC9LOk/9UoxfTiGlgk07zY01vo04HV3gy54gwzN8VgfdC/3229 aK2l3Zsg1V5Rg/8jmGEZeMseVKp9E/cUuG0UVt+KWcwpTpd6B4qJV5FLsugDYarRBco7 FgQeccxnOSze3Y4a16Cq7rltHyXY3N7PkabONKY2tvXvIy7E4HzWvqsETh8mn2JNcTLA zjKmKxk6f16AwG6/0IXTdv2o/L4rUuv/2Yqzo97xEi4e9edDQLTF9mPf6WlFFC/3grf0 mcs0pIjByB/K2PDiU1+wDXqeJCSBTCiDOFcmkYnWp9D1KXY3M95FGuhgbs3ZbmAYboMj 5FFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:message-id:subject:cc:to:from:date; bh=lKahOm1hx1K83Qlp6cQvgVJb1F34/Mr4zWEdaxyFSNA=; b=0mdKyLCF+JRtjp2rYv8PGv+BUktASg23RmSZqE1JVFBy5+D9V1yT6rs/ddceXqkTvi wNb7BG4H4UxgdeU8xzu+uYzqENrvNRvc2HAUeWYX97A4Q+2zIzZ1tcDuuDzaBRtonMKK r39lsgalXFXSs41JShWVvpTJiwTgJtFGXTaBfAnOfLGAGBDjEb8L66BfpcN8GshwNI4e sxBzRMBD5xH37tpAT21OTqOruGpHMqGe1ZY3tYN5ngQTLTU/tJG3UokVd3SKeDS/N/Kx k2/lv0DTCc8GXtwDjC8Kc/4CY6HvKSBsqXW2XMZ3IgOVdOfg2+LklSlI3DOIdBbclSNk 1dXQ== 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 q9si824812oif.92.2019.12.11.01.43.58; Wed, 11 Dec 2019 01:44:21 -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 S1728693AbfLKJnh (ORCPT + 99 others); Wed, 11 Dec 2019 04:43:37 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:54768 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728370AbfLKJng (ORCPT ); Wed, 11 Dec 2019 04:43:36 -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 1ieyWt-0000NR-G6; Wed, 11 Dec 2019 17:43:35 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1ieyWs-0001Hg-FV; Wed, 11 Dec 2019 17:43:34 +0800 Date: Wed, 11 Dec 2019 17:43:34 +0800 From: Herbert Xu To: Eric Biggers Cc: linux-crypto@vger.kernel.org Subject: Re: [PATCH 0/7] crypto: more self-test improvements Message-ID: <20191211094334.y5ykf4supval6feu@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191201215330.171990-1-ebiggers@kernel.org> X-Newsgroups: apana.lists.os.linux.cryptoapi Organization: Core 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 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 > > 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(-) All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt