Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1065005rdh; Fri, 27 Oct 2023 03:57:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGgtPJaEcHx653akTQ/t9aOiOuhSgl+6zaOyugP4VuQ8M2gCzVnlCU8cvveN9YKXnLtDhII X-Received: by 2002:a81:bc45:0:b0:595:e1b:b978 with SMTP id b5-20020a81bc45000000b005950e1bb978mr2527329ywl.21.1698404250043; Fri, 27 Oct 2023 03:57:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698404250; cv=none; d=google.com; s=arc-20160816; b=kRnVWhZbVkWv/7V35PQb3RoEJfOnjPM0DJbvub32s8EBkTJHYtpNnTMuqeNCj/tRzX VeVbFUpW+YcqP35OerCDvj0sQHGJflVtuJM8N+Polvvxkz4lTbV/VjlmaW9wl5bZlwqU cNak/4MusTck90h9+oRgdDD/ZZ9SNgnvy6VHbUotO4uW3hSlhdjykyUhs3dhwuYGaBzF llH0NyG8eClq+C1zn4ACs9s+FXW4MnMSijr6VAbsS/j7s3KiLJgjG3a7pl7/6Ve6RWiv MAly7LtURKfQ7gtPRRdg+JMnamSpEaJLDoitAalNqCKBn5wZochHDZ5u/Apcc59rs4M2 r9Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=PdXK0HHk60xtCNMc4x+b7F2E05Wma/Vr6ofzY3Klm3U=; fh=cmvGs3cYpc6/75EVYhgoXl/45VYuAhNx7Bcx963/HRs=; b=Vaya6BQ56erXN2Gt852E83fZftBOyXsobKJfZm5NaxTUjOjxpup/eeRbxhd9r7kiwO +1q0R/2JVrksjcxqeKCikq8BuFdWLKSqYjkcqj/R6pTxl0bdgbSCL4dGy+ygdEMlb1qt 4vuhMHutggfBIyzYwFC4XKbXlMz59SWZVjOGbC+0t5tD2zep/ODpq93kHxe/7brpottw 0GfL4Vjqpjad3FLe6Fejgod1DnNydUUztbfCVSMFE1gQ6BDaOyRAZBnobkhQ+iXLp/Br +tXp9A3AUPVA6T6j4ZLKlrWOOSmKKJMcRgIOkIrV6SBhXryJMUQ6/5joD0hHNNDWiD3y mJew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id x186-20020a81a0c3000000b005a247d7248esi1910576ywg.5.2023.10.27.03.57.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 03:57:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2CDB8825A866; Fri, 27 Oct 2023 03:57:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345656AbjJ0K5Z (ORCPT + 99 others); Fri, 27 Oct 2023 06:57:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345539AbjJ0K5Y (ORCPT ); Fri, 27 Oct 2023 06:57:24 -0400 Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7026F9C; Fri, 27 Oct 2023 03:57:22 -0700 (PDT) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1qwKWj-00BegP-RR; Fri, 27 Oct 2023 18:57:18 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 27 Oct 2023 18:57:24 +0800 Date: Fri, 27 Oct 2023 18:57:24 +0800 From: Herbert Xu To: Dimitri John Ledkov Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/6] crypto: pkcs7 x509 add FIPS 202 SHA-3 support Message-ID: References: <20231022182208.188714-1-dimitri.ledkov@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231022182208.188714-1-dimitri.ledkov@canonical.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 27 Oct 2023 03:57:26 -0700 (PDT) On Sun, Oct 22, 2023 at 07:22:02PM +0100, Dimitri John Ledkov wrote: > Recent patches to cryptodev removed support for insecure, broken or > weak x509/pkcs7 signing hashes MD4, MD5, SHA1, SHA-224. This opens > room to add SHA-3 family of hashes, which are not yet broken. > > Add support for FIPS 202 SHA-3 in x509 RSA & ECC certs, pkcs7 > signatures, hash info structs. And adjust documentation. > > This enables using SHA-3 family of hashes for kernel module signing. > > For SHA3+ECC signing openssl with this patch [0] is needed, currently > in openssl development tip. SHA3+RSA signing is supported by stable > openssl. > > kmod needs a patch to recognise SHA3 hash names [1], submitted > separately. > > This patch series is on top of tip of cryptodev git repository commit > a2786e8bdd ("crypto: qcom-rng - Add missing dependency on hw_random") > > [0] https://github.com/openssl/openssl/pull/22147/files > [1] https://lore.kernel.org/all/20231022180928.180437-1-dimitri.ledkov@canonical.com/ > > Dimitri John Ledkov (6): > x509: Add OIDs for FIPS 202 SHA-3 hash and signatures > crypto: FIPS 202 SHA-3 register in hash info for IMA > crypto: rsa-pkcs1pad - Add FIPS 202 SHA-3 support > crypto: x509 pkcs7 - allow FIPS 202 SHA-3 signatures > crypto: enable automatic module signing with FIPS 202 SHA-3 > Documentation/module-signing.txt: bring up to date > > Documentation/admin-guide/module-signing.rst | 17 ++++++++----- > certs/Kconfig | 2 +- > crypto/asymmetric_keys/mscode_parser.c | 9 +++++++ > crypto/asymmetric_keys/pkcs7_parser.c | 12 ++++++++++ > crypto/asymmetric_keys/public_key.c | 5 +++- > crypto/asymmetric_keys/x509_cert_parser.c | 24 +++++++++++++++++++ > crypto/hash_info.c | 6 +++++ > crypto/rsa-pkcs1pad.c | 25 +++++++++++++++++++- > crypto/testmgr.c | 12 ++++++++++ > include/crypto/hash_info.h | 1 + > include/linux/oid_registry.h | 11 +++++++++ > include/uapi/linux/hash_info.h | 3 +++ > kernel/module/Kconfig | 15 ++++++++++++ > 13 files changed, 133 insertions(+), 9 deletions(-) > > -- > 2.34.1 All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt