Message ID | 20170424141629.27155-5-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 1F395601AE for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 24 Apr 2017 14:20:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 108EA27813 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 24 Apr 2017 14:20:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 052DB2835B; Mon, 24 Apr 2017 14:20:28 +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 C157C27813 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 24 Apr 2017 14:20:27 +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=x6QM02oDF7m5d+JDcIuOYVNIDy5v55eTs9nhJgsGjYE=; b=TV3X7XL4ZdPwYCfmf+udTWuY/4 YzYeeWIgSxYkGMoZsTsfNhHZbKtAvoEMMJ8p7wUJUpWXiataQmn8fmCM3IqEApBOA617Q1UMIrQvR Wyv2r4wOBpI9nWYefgPMVtziojiWNnh/eTSqw0RRR9j+hNX/6ILcvYkN8dUI3S6IPLcp2kHzVLDTS WHNOBYgDcmTj61aRTaO92gadZZVorNFJCBOWghZt+TfP2JfETp4HWq5tWruK1lyUqkOrPN2F7A4UF tZ/IOgJe4eEE/PcHFzCqfrsFpKt4DbIgYIu3fO74EiGOO5k5H9cjnxsyboDAod1kIbNcIifpJFtVL Q9EGjiGA==; 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 1d2eqn-0000zW-OZ; Mon, 24 Apr 2017 14:20:25 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d2epY-0006Wv-3T; Mon, 24 Apr 2017 14:19:12 +0000 Received: by mail-wm0-x244.google.com with SMTP id y10so6579711wmh.0; Mon, 24 Apr 2017 07:18:47 -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=biZo/KVntcleRVob2ecjnlj/eTHdm74BPWhqKbR7aRI=; b=I6aCM8Zc4gsAGjEG3OTzUoZHcXuB33cRLkoMOpVnDY8GrZRdebjHZVlBDFgzhX2TeN 5LPpJY4CCMegPdZwa1bjGAqMso1GBsPD0UDV7yO4FwlGKOg2abZ6Qj8qruJxgR1Ht5NN hNm6bfi8YbY6I6Sz4utl3USROAGvJL6Oewp6gadwBk72QS/dmbkBpnZr+Rxhas6KHIsi FxHqMmv9fdQoRztDRQhtQN6aRYllLAxBtFtbe4W/hd4XEZsraicuPJehb8OdlHOdjUcu BKqGjbjU2SDOGxYzn7rubNaCTLCFhm0RhEEKMVjzmndNyJ6NQT5vavb6YEWySFpNHeYT s2oA== 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=biZo/KVntcleRVob2ecjnlj/eTHdm74BPWhqKbR7aRI=; b=kGEY5NKqRvvSTsLQLQeIRkvd+Fvo4kylZ3Lp2FoHvae0zOTABjU8Z8oMb7p5wCjrOV FHXoj3rZUfFc0VgLzW0bEOG89y2TMB7MhHD4cVvZW14uMkOfG2C2vSBljvJmUKegaftX wB9aBtKrUayV57DgvcNUY+82OXOq1CUW08xLIH83fK7Fnj0K8b63iT4hF6GFVzIFldOb G/2UoXD0QHMAAr3v7C0kjy9ATJgXD0xkcsPwFAy0ywA6q1no3GL84YH+ehImxpohDPoW Pk8JWWLa+inpy49X2uwViT/7GIQ5+Qmuno6dMuDVr9bB0KvaMSepr+203WkDaluMye/W wx4g== X-Gm-Message-State: AN3rC/7hcpdsdDOgcUeqjULiNTQlLK3NIc+ShcCugYUrsGLYlUqUNaZP 5k1TWXpe+txVQg== X-Received: by 10.28.228.4 with SMTP id b4mr10078813wmh.119.1493043526080; Mon, 24 Apr 2017 07:18:46 -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.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Apr 2017 07:18:45 -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 5/9] crypto: mv_cesa - Use IPAD/OPAD constant Date: Mon, 24 Apr 2017 16:16:25 +0200 Message-Id: <20170424141629.27155-5-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_071908_442259_A1CC872F X-CRM114-Status: UNSURE ( 8.68 ) 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/mv_cesa.c b/drivers/crypto/mv_cesa.c index 451fa18..41ae190 100644 --- a/drivers/crypto/mv_cesa.c +++ b/drivers/crypto/mv_cesa.c @@ -822,8 +822,8 @@ static int mv_hash_setkey(struct crypto_ahash *tfm, const u8 * key, memcpy(opad, ipad, bs); for (i = 0; i < bs; i++) { - ipad[i] ^= 0x36; - opad[i] ^= 0x5c; + ipad[i] ^= HMAC_IPAD_VALUE; + opad[i] ^= HMAC_OPAD_VALUE; } rc = crypto_shash_init(shash) ? :
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/mv_cesa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)