Message ID | 20170424141629.27155-2-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 CA144601AE for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 24 Apr 2017 14:19:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B806927813 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 24 Apr 2017 14:19:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ACEB128329; Mon, 24 Apr 2017 14:19:31 +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 4103C2835B for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 24 Apr 2017 14:19:31 +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=FSG774MQerI4zb6LsIv1jA11zIcaReSHXJGLgY2V7O4=; b=TKx3g2O1vIJ/vkbpiMqyv/5tCl h3I8i7cX0JAazIofa51ZXdaEhiXupMdtududfOfZMZER014rieyT3QcLs71tv7rGplDdkU28ZPmqi 8LWuhBt5KxTvP8a5DzLsgMZ4pPwDM5Ybg9XjEYEyC/INgGu++1bNJcX/ZVMULOLIvL49MADlyknxN 3bxs5d38iF30DUliSC3S/1KApGt1mV18pdDoTNweLvZKcNKwmkZLlEVB2PoHTpXRgMxEJpqBz3pFl hgFRxZGEkwm55FtOQRTIlXhvLW5Y0lDOrTUECF+udtyjmjC/vPQ7yMxgQQqPxwu3sL/33mYBVMzFZ hV+MiRAw==; 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 1d2epp-0006yW-6Q; Mon, 24 Apr 2017 14:19:25 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d2epU-0006Wr-Je; Mon, 24 Apr 2017 14:19:06 +0000 Received: by mail-wr0-x244.google.com with SMTP id w50so16563617wrc.0; Mon, 24 Apr 2017 07:18:44 -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=A9iYW37p9HT4rJQkIkFPPxxPPTU6NeLDfC8+IyLgKls=; b=dTjijxf0XEdztLDZQvFG/6xEhpZUKLIgbx+oo3yQ06ZVsprhIedFLZHaA0EoaoLxGS ia6n5srMOU43pgJbFCqfYCJGPjb5a3h5cqJ3QpHStesJeT7c4uxP3B83uaYObCn0hl+0 nOA8tFzdqyGDn3efE1XN2sSRuqTZxYHaSXCZ5RraeYQbzeqEohUVyjsqAI9zyxKhpsa/ opgPYWyWKawqCEk+wulBeHg3Lz9DQvgFDgw7LNqJDbNO4WbXjTfH6RBEM4ZW38bXlbed mGpka7pW9b5EjsvXkdGbLRavfF2u/fzBF1VP5iwFr0gsQMf0cmE5ARurjBr1siizPgCV SZ5Q== 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=A9iYW37p9HT4rJQkIkFPPxxPPTU6NeLDfC8+IyLgKls=; b=pZBrEkyZK5pDNE7EjeUG2z0qjLwG3mewBB4jExr+DJZ+ZmhOxdFTI3C0nyRf1zEBdk yMlJ0QpWNQKrKpKbhxK0wUnTwrmlyEhzXKROlPiDw+nRfp5I71HAhzlVKUGL/9V7OMNw rIJ4DvX5lH7BZ2RO9pqxSc9P+102anKSRXHX2DeIlkhE2tf1J3w+sA919hSjawLZj9d9 MUe0RM1N8gS809PopLuZBL4d4ywq/nuC1RXh3iuFwyDgZIqG2vdUP13WV9X/UTjYXYQI rusVevRe0qf/aLngl4aheKnwE3hpFKwx2nnmG4eQVHBkbETuby52OL70OXUT9q8A8T8h OGyw== X-Gm-Message-State: AN3rC/60FQZBjSLBxmC/OOkTAaLd3GxoC5+cUq0NEolAs/dU6DVaYDZk 5dT5DGcv3I+U0w== X-Received: by 10.223.157.37 with SMTP id k37mr6466595wre.156.1493043522909; Mon, 24 Apr 2017 07:18:42 -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 q140sm548033wmb.14.2017.04.24.07.18.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Apr 2017 07:18:42 -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 2/9] crypto: brcm - Use IPAD/OPAD constant Date: Mon, 24 Apr 2017 16:16:22 +0200 Message-Id: <20170424141629.27155-2-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170424141629.27155-1-clabbe.montjoie@gmail.com> References: <20170424141629.27155-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170424_071904_807777_4439520A X-CRM114-Status: UNSURE ( 8.60 ) 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/bcm/cipher.c b/drivers/crypto/bcm/cipher.c index cc0d5b9..304c7ed 100644 --- a/drivers/crypto/bcm/cipher.c +++ b/drivers/crypto/bcm/cipher.c @@ -2510,8 +2510,8 @@ static int ahash_hmac_setkey(struct crypto_ahash *ahash, const u8 *key, memcpy(ctx->opad, ctx->ipad, blocksize); for (index = 0; index < blocksize; index++) { - ctx->ipad[index] ^= 0x36; - ctx->opad[index] ^= 0x5c; + ctx->ipad[index] ^= HMAC_IPAD_VALUE; + ctx->opad[index] ^= HMAC_OPAD_VALUE; } flow_dump(" ipad: ", ctx->ipad, blocksize);
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/bcm/cipher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)