Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp257187rwd; Tue, 6 Jun 2023 22:41:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4cevb6OtqEbu9ad2FHV8Q1d2zSwyo/VOxrIJKgZm7i2WEAqAzJAo9Fm5Cz0UeceZq7048K X-Received: by 2002:a05:6a00:4c82:b0:656:39af:5137 with SMTP id eb2-20020a056a004c8200b0065639af5137mr940544pfb.0.1686116460105; Tue, 06 Jun 2023 22:41:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686116460; cv=none; d=google.com; s=arc-20160816; b=zDL2PrH728xtom7kIiCET/da7IjuZGb+7v+2V2vZj2CQxzpmq4moifrMQXUwv/dCXP tZPJwRBrrCDaN2h2fWBADEFzldvm4Rn8nQL8HX7R9WodwFCbVWXvD5IQXtbwaD2LsLEy c4+CS5HE3GmsfHoSb9m7lw2CftFpKY6EcVYmIByA4rkZVpvHQtbqmwOMgJf85g4A+m/d SDHv7ROAEDsvBCokm0qHxAwcrars69PLlvHHsmeM80RUpQHNOnuK5MJOSeCKQbSEiivx EBkOKHqq9mY7OPDuCMXMQUOyGuTfBEO9GJh7woJzf+Uxr7pOscKwKCVjrlqnLK2eVuMx taUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FCWFiUFPUn5eTTeVEYVaJy8+YMLW+6inCvkAAvBu/yM=; b=iQekf7C805zT5qeGEfR6IAztxxTq/Cky9ApmRVWRoeSD+PBghCXC764IiMlbMf2n8U pcPC8tACTLrG70fZfMTt5rWLDp9ISQ1m4iZmIo1nIXwXR3gFERZjDpy/b7x6SD5RNjn/ tBbNrB05+sqwz8VZWvm7UCMDz1Fhf8gJOxOJ+9mk9eXVlLVGHDD+nOuRcO6dwSrMqfj1 5f8iHveg+Lhs3buURIGMQrwTW9G9X0YitYT7DF0jd7lMHQuQQIhffmx/e/T0DTFFbq2W DS4ECw3/FWAys1VYcSC0YCJugAj93VnPPXyjn+6VgK78SAJHKnzjTX/5K1SC4pIeLfO7 a/GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ZoVD7rem; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g29-20020aa796bd000000b006556984fbf6si6475396pfk.290.2023.06.06.22.40.45; Tue, 06 Jun 2023 22:41:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ZoVD7rem; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234753AbjFGFkO (ORCPT + 99 others); Wed, 7 Jun 2023 01:40:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234133AbjFGFkL (ORCPT ); Wed, 7 Jun 2023 01:40:11 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B8AC1BD3; Tue, 6 Jun 2023 22:40:06 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-5144a9c11c7so6382312a12.2; Tue, 06 Jun 2023 22:40:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686116405; x=1688708405; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FCWFiUFPUn5eTTeVEYVaJy8+YMLW+6inCvkAAvBu/yM=; b=ZoVD7remziHgcihW3SoqS7YUcNOA1w0Hz6BAAVNweCU4IabFTQ6bb9bZbLZynoc37r 1IC0xUllVyeZ7IyH0hCkoFwmfsfQ0wT1j0lwis9bfB9SQAARPxw/gePiydJTTZi7/wUY QskOw1hq+jk+lQgMGUwv1zYPjypDQTZXowUgAT754i93VjCc1lI/56LykVYsr+jl37Il aNohwCi80aI+YZdFpii/v6MRGHRouyz7jKiphklI/oWoTB2jlGPm8lUHZtKUau/9rJ/K EqUaIBDFU4vmQD1vNPgAG8uOnPfR3EhMTo0ISX7CHq+vPJNXUH6u7HWnMNMMNeRyAwT+ xFKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686116405; x=1688708405; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FCWFiUFPUn5eTTeVEYVaJy8+YMLW+6inCvkAAvBu/yM=; b=RGWAJ0iQjOX2mKcC9XfKxWQMUnKO1nbapQrlFMv6ubD551wanE27dbnL3braPAlwFY B5My79g3k1KsQyImFNPRe0EhXxlSlSqpZcSbFZi1iPALrWWW1fUBiFAdEX4y+31n6+Cv RKjQ/+xtwuY9oNMUJpGSdAftjVRmawx4bnQS9WsllyPz1gkqowh2SWYerIUAX1SQMktq S6+tydbxhaXDvF1agodW62sS1Sk7qjcLOqHeJGBpcPidzw2waVearL3ak7faBrvUHURF eCjaBIk0I5djAPj0SY43psUeFAbDoDXONx5qoNoKr0xxjz4UeevVAIweOKK1Iv2PlOvT V4Sw== X-Gm-Message-State: AC+VfDx1nN499H6xfFnRuy+JIY4zmpwQbR71Elhcc4vPrtLX5Iv330Bz aHw3eAcW5PB+QtXJbEeS7So= X-Received: by 2002:a05:6a20:6a03:b0:117:428d:f983 with SMTP id p3-20020a056a206a0300b00117428df983mr2569550pzk.1.1686116405474; Tue, 06 Jun 2023 22:40:05 -0700 (PDT) Received: from debian.me (subs28-116-206-12-58.three.co.id. [116.206.12.58]) by smtp.gmail.com with ESMTPSA id q26-20020a62e11a000000b00657fbf81ffbsm4960598pfh.80.2023.06.06.22.40.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 22:40:04 -0700 (PDT) Received: by debian.me (Postfix, from userid 1000) id 8F34A1044ED; Wed, 7 Jun 2023 12:39:59 +0700 (WIB) From: Bagas Sanjaya To: Herbert Xu , "David S. Miller" , Franziska Naepelt , Greg Kroah-Hartman Cc: Linux SPDX Licenses , Linux Kernel Janitors , Linux Crypto , Linux Kernel Mailing List , David Howells , Jarkko Sakkinen , Dan Carpenter , Bagas Sanjaya , Stephan Mueller Subject: [PATCH 3/8] crypto: drbg: Convert dual BSD 3-Clause/GPL-1.0 license boilerplate to SPDX identifier Date: Wed, 7 Jun 2023 12:39:44 +0700 Message-ID: <20230607053940.39078-13-bagasdotme@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230607053940.39078-10-bagasdotme@gmail.com> References: <20230607053940.39078-10-bagasdotme@gmail.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2787; i=bagasdotme@gmail.com; h=from:subject; bh=CMhqFfpL0Ha26FzgmqI+vIPR5sC4x/nvpsvCP+iQTxQ=; b=owGbwMvMwCX2bWenZ2ig32LG02pJDCkNErIWnxc2xDuK7fc/kzXV7aGWv+rShPJpUrJX1u9ep MXjXTyto5SFQYyLQVZMkWVSIl/T6V1GIhfa1zrCzGFlAhnCwMUpABNxr2Zk2LZbXMU8QE+kSdxc Qed8nahYzT/Zotq0ybFdm2N4FFXuMjK8uT53l5k2l+ymyAXlXk/FTbUPMB5o1v+0mKM+7MyGyxZ MAA== X-Developer-Key: i=bagasdotme@gmail.com; a=openpgp; fpr=701B806FDCA5D3A58FFB8F7D7C276C64A5E44A1D Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Replace the boilerplate with corresponding SPDX tag. Since there is no explicit GPL version, assume GPL 1.0+. Cc: Stephan Mueller Signed-off-by: Bagas Sanjaya --- crypto/drbg.c | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/crypto/drbg.c b/crypto/drbg.c index ff4ebbc68efab1..f797deaf3952ef 100644 --- a/crypto/drbg.c +++ b/crypto/drbg.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: BSD-3-Clause OR GPL-1.0+ /* * DRBG: Deterministic Random Bits Generator * Based on NIST Recommended DRBG from NIST SP800-90A with the following @@ -9,38 +10,6 @@ * * Copyright Stephan Mueller , 2014 * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, and the entire permission notice in its entirety, - * including the disclaimer of warranties. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote - * products derived from this software without specific prior - * written permission. - * - * ALTERNATIVELY, this product may be distributed under the terms of - * the GNU General Public License, in which case the provisions of the GPL are - * required INSTEAD OF the above restrictions. (This clause is - * necessary due to a potential bad interaction between the GPL and - * the restrictions contained in a BSD-style copyright.) - * - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF - * WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR - * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE - * USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH - * DAMAGE. - * * DRBG Usage * ========== * The SP 800-90A DRBG allows the user to specify a personalization string -- An old man doll... just what I always wanted! - Clara