Message ID | 20170519065331.27670-4-clabbe.montjoie@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2FAA26034C for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 19 May 2017 07:02:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 202BC288A9 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 19 May 2017 07:02:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 14807288AE; Fri, 19 May 2017 07:02:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C148B288A9 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 19 May 2017 07:02:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=4RnaD8zL3tAvU7nnbWe4xzrKv6C4fnkYPsmF1BIW5Jo=; b=nbQBlYaTdzbVGSL29feqjGR8UY z5piKNqMS633eqfIEs3qcKV9wThPOM21CbcVAaHkknrznUnoRoPrrMXNSxoXaNae0UHtPu77d/XM0 nZ4KW4IX1VL4uE30lV44EV8pH5bN5yTJ22jTFwu+HNZrFFoAFJFRwYRkbQ/nsMAXb64XhnUJrysiC 2B8ZNm1BPtGfDrO98p7Z0LshjMV87sRWGhVOMSXT9X5iA/23FW6p0iDfXAzMDNtz7rVnOoqZoHLzR t4pu5QSA71MmOaSxMSnmtdazv3FMZq6Mh5cHuJMeDYG3744WyH6UM9itvcb4NnAGOukERlc3lYNhG smeR1hHw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dBbvL-0001s9-NG; Fri, 19 May 2017 07:02:07 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dBbpb-0004Qv-3l; Fri, 19 May 2017 06:56:13 +0000 Received: by mail-wm0-x243.google.com with SMTP id b84so276005wmh.0; Thu, 18 May 2017 23:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WR2an5z+AC/aye0DC3DrGMa7xgk1bUlgGt1uEN8VBK0=; b=NI1l5ezewlin5rEmhMAAjEAiheWf1CdBN+XzZ/RJfZvkwYOvld9reX6Tkx7sXocDPv q3dVbX8+H95l5yecIcn+5KevPlWmcEUy7vhEn5lcDsJ84RRt1l4apywK2NOefm9cc2nO 8kpXutz7/DqY/iAbq9M1LcPOZiALSDHaGiDJPYPD++uNvzQ6tiyWgbR1hsAL89WWLrNq 1ykvkcRIOFnKK2QuNkZnbhADE0HuwtTV36kMh4oQAQaheB/rIZvhygiW+hTyRLWLmbdv eE+v9LJo7Zvacah33Ud7QAFFJsvIGD2Rn+tgCvvQp+zZCoevj8VzoybOpjdADUvRJ4Cj ktCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WR2an5z+AC/aye0DC3DrGMa7xgk1bUlgGt1uEN8VBK0=; b=HegKMqu6iOuCBzwGKXj371/stHez6GwB0YnRiim3d0aUH2UAKiaM283CVvElRzjMEn WfLUUY3KIQp3iSkT8sLhC70TGXWttyw7ZhAlwWrzORJ3EH5zCXkGx37Z1X/N9E6jJGJo RP90+1Ee9gTO6zEYKmYkqcdlwlEP8bQPDgCv3w/kO5TOoh2ur5j2kWnrSEaazqdfXyig 6k/LWeVh5UzmY4YMBUqLIPnoDr491YdvskG2Mw9iHkcfsH6w9+cMmCpIxpXD/ns+Bz0x 1+rTDaRE1AP6VKDScsCFVNxlaKu3a5KJ7wbo/xmLEguXnTMT1kwG2oz9oHsxo/6BiXz9 fdXQ== X-Gm-Message-State: AODbwcBDneXdUUS/6iNitt+1tkS29DIuVve1beOEiNfwc3fsDXVMnYo3 9PLTHcyBMn5d5g== X-Received: by 10.28.223.195 with SMTP id w186mr5645369wmg.3.1495176949459; Thu, 18 May 2017 23:55:49 -0700 (PDT) Received: from Red.local (LFbn-1-7035-57.w90-116.abo.wanadoo.fr. [90.116.208.57]) by smtp.googlemail.com with ESMTPSA id 1sm3256734wrw.32.2017.05.18.23.55.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 May 2017 23:55:49 -0700 (PDT) From: Corentin Labbe <clabbe.montjoie@gmail.com> To: herbert@gondor.apana.org.au, davem@davemloft.net, thomas.lendacky@amd.com, gary.hook@amd.com, boris.brezillon@free-electrons.com, arno@natisbad.org, matthias.bgg@gmail.com, giovanni.cabiddu@intel.com, salvatore.benedetto@intel.com Subject: [PATCH v2 3/9] crypto: ixp4xx - Use IPAD/OPAD constant Date: Fri, 19 May 2017 08:53:25 +0200 Message-Id: <20170519065331.27670-4-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170519065331.27670-1-clabbe.montjoie@gmail.com> References: <20170519065331.27670-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170518_235611_326469_69181577 X-CRM114-Status: UNSURE ( 8.72 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: qat-linux@intel.com, linux-kernel@vger.kernel.org, Corentin Labbe <clabbe.montjoie@gmail.com>, linux-crypto@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/crypto/ixp4xx_crypto.c b/drivers/crypto/ixp4xx_crypto.c index 771dd26c7076..427cbe012729 100644 --- a/drivers/crypto/ixp4xx_crypto.c +++ b/drivers/crypto/ixp4xx_crypto.c @@ -23,6 +23,7 @@ #include <crypto/ctr.h> #include <crypto/des.h> #include <crypto/aes.h> +#include <crypto/hmac.h> #include <crypto/sha.h> #include <crypto/algapi.h> #include <crypto/internal/aead.h> @@ -90,8 +91,6 @@ #define CTL_FLAG_PERFORM_AEAD 0x0008 #define CTL_FLAG_MASK 0x000f -#define HMAC_IPAD_VALUE 0x36 -#define HMAC_OPAD_VALUE 0x5C #define HMAC_PAD_BLOCKLEN SHA1_BLOCK_SIZE #define MD5_DIGEST_SIZE 16
This patch simply replace all occurrence of HMAC IPAD/OPAD value by their define. Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> --- drivers/crypto/ixp4xx_crypto.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)