From patchwork Fri May 19 06:53:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9735953 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: 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 0FE76601C2 for ; Fri, 19 May 2017 06:58:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A82B288A6 for ; Fri, 19 May 2017 06:58:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F33D9288AD; Fri, 19 May 2017 06:58:11 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC247288A6 for ; Fri, 19 May 2017 06:58:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754872AbdESG6I (ORCPT ); Fri, 19 May 2017 02:58:08 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33323 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752194AbdESGzu (ORCPT ); Fri, 19 May 2017 02:55:50 -0400 Received: by mail-wm0-f67.google.com with SMTP id b84so276007wmh.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=pzATI+5ucrAbmN5d/BLWTqqN0YfxzPErYlXEuZztiUNVl3Y6KEYan7SUWsRZxXoUXa PkGkkr2T0oLGZlB4tOy6ZdcaqK+htCFA9QeiHlCVqP00x2Ae287lvRSxTjBKEX0FbEBp c49w3zqhgmv4ykt+oJPecnhsDQJeumqIB0EFWa7vn2D1rYm0JHnPxK5eU/3ROwJxfMAP sGn5R8rqC4OnX2if5boIheh97oyFZAw1qEBLedm1myVeM2RnyioZTQHhGYZ2tvTBh87c eR0wZvAFynr0Q8QLsVO5zEz8Q+52jbXGd7WT0QxTMR+Xpzgvju0cuYThRduHVi03+d8M TuYQ== X-Gm-Message-State: AODbwcDoL6DZClVkCprlRydtCOGIdcg4s4FDUtmHF7bbkSNjvq8RomQQ ph/oJ2uImOBaMw== 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 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 Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, qat-linux@intel.com, Corentin Labbe 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> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch simply replace all occurrence of HMAC IPAD/OPAD value by their define. Signed-off-by: Corentin Labbe --- drivers/crypto/ixp4xx_crypto.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 #include #include +#include #include #include #include @@ -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