From patchwork Wed Dec 23 08:10:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 11987861 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8B25C433E0 for ; Wed, 23 Dec 2020 08:16:13 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 69F8A2076D for ; Wed, 23 Dec 2020 08:16:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 69F8A2076D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+c3F7CcLx9wqZENfL5qPdh6JiIS5DhizkOQf857so+I=; b=BanVhhTdbsgfUdnveAHPAz5zM cUtWycaOu/tiOrY9KR5qd0Hby0udSSNUM8VcTFbMufw5S9CgDR82JhA68oxtTzLP2JzBwmwSIFp8R u3Utaqyk+LvuNIJ/I+WrRYHg0Ja+/s5xXtuRq8D321gTG9jVMMAJPd24mGXuVUawPp+TOqHokiuSr zGRAIT6o/sLpBHnRh0U/ZPiFQjqaL3OFJ4MNI5+klU+LTqS4U8HtW+FAvnp5o0O7Twx9vBK8FWaDm b6G1Nt5rcWK2atX0+YY/p0iF1nqvroJ4r4PFpE72jQtIUA4EzTwufyWA2VnrlFsAypaVkDTkSMw6Q LFlojz07g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1krzI2-0007aa-RW; Wed, 23 Dec 2020 08:14:34 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1krzGX-0006zK-8e for linux-arm-kernel@lists.infradead.org; Wed, 23 Dec 2020 08:13:08 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1C3B122510; Wed, 23 Dec 2020 08:12:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608711179; bh=qS5odlNvKzcQ1NLPrL+sF+R4JtS6E6dFmblxMXhMlEI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SkQPMYnRUb4z6xQnbpCKDKenc6E58KB7clteA90Q9gUGF2XAZWw1e17yNcZEio9Oy khoIW0jbfw+D84scqPCSzdlBZYShgWWoWBrs8rYtF6BVE1qXlHWlRZk9w9q3xIwkqQ D0wUj8Sq9xkyoJfts6qR4ExNDBrKDQAVQQRKtOJy4CzWj2Y0vnugoZKQaBFBpNlRRh q7hIitMn8yMM3kTcQB+3ggVnXPkYD+91ZSQF//wpWXFOIufcEQLqycJIzNiLnIvtTy pkGjyUxdDrkYHQzbSVr9jRK1L1pAm6VPd3V63bPewbpemh+KlY8QW2qEz8I0fMf9P2 mqsBm/b4t5P9Q== From: Eric Biggers To: linux-crypto@vger.kernel.org Subject: [PATCH v3 13/14] crypto: blake2b - update file comment Date: Wed, 23 Dec 2020 00:10:02 -0800 Message-Id: <20201223081003.373663-14-ebiggers@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201223081003.373663-1-ebiggers@kernel.org> References: <20201223081003.373663-1-ebiggers@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201223_031301_483516_F8E13FCB X-CRM114-Status: GOOD ( 12.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Jason A . Donenfeld" , Herbert Xu , David Sterba , Ard Biesheuvel , linux-arm-kernel@lists.infradead.org, Paul Crowley Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Eric Biggers The file comment for blake2b_generic.c makes it sound like it's the reference implementation of BLAKE2b with only minor changes. But it's actually been changed a lot. Update the comment to make this clearer. Reviewed-by: David Sterba Acked-by: Ard Biesheuvel Signed-off-by: Eric Biggers --- crypto/blake2b_generic.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/crypto/blake2b_generic.c b/crypto/blake2b_generic.c index 963f7fe0e4ea8..6704c03558896 100644 --- a/crypto/blake2b_generic.c +++ b/crypto/blake2b_generic.c @@ -1,21 +1,18 @@ // SPDX-License-Identifier: (GPL-2.0-only OR Apache-2.0) /* - * BLAKE2b reference source code package - reference C implementations + * Generic implementation of the BLAKE2b digest algorithm. Based on the BLAKE2b + * reference implementation, but it has been heavily modified for use in the + * kernel. The reference implementation was: * - * Copyright 2012, Samuel Neves . You may use this under the - * terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at - * your option. The terms of these licenses can be found at: + * Copyright 2012, Samuel Neves . You may use this under + * the terms of the CC0, the OpenSSL Licence, or the Apache Public License + * 2.0, at your option. The terms of these licenses can be found at: * - * - CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0 - * - OpenSSL license : https://www.openssl.org/source/license.html - * - Apache 2.0 : https://www.apache.org/licenses/LICENSE-2.0 + * - CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0 + * - OpenSSL license : https://www.openssl.org/source/license.html + * - Apache 2.0 : https://www.apache.org/licenses/LICENSE-2.0 * - * More information about the BLAKE2 hash function can be found at - * https://blake2.net. - * - * Note: the original sources have been modified for inclusion in linux kernel - * in terms of coding style, using generic helpers and simplifications of error - * handling. + * More information about BLAKE2 can be found at https://blake2.net. */ #include