Message ID | 20170424141629.27155-7-clabbe.montjoie@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-mediatek-bounces+patchwork-linux-mediatek=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 56B6F601AE for <patchwork-linux-mediatek@patchwork.kernel.org>; Mon, 24 Apr 2017 14:20:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4787B27813 for <patchwork-linux-mediatek@patchwork.kernel.org>; Mon, 24 Apr 2017 14:20:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A7252835B; Mon, 24 Apr 2017 14:20:53 +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 C764B27813 for <patchwork-linux-mediatek@patchwork.kernel.org>; Mon, 24 Apr 2017 14:20:52 +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=szS3VaojFF6adfezZ/JJVUJnI20tcVOmn0fTFQTCUL0=; b=FBAul0d2KV5SxBNVcvpiEQ0cJd BOXBcAYccSw0yLvVs4Y/jC4njiE1SYXVkE44JZKvlF1TbFZgVG3O83yCQkc3Ttkfg61w6DyB/9bG0 WwZwX3cOMLGMdQJhUfedUv6DEYzflsozAAWAc6YIb+o9iesh97NBnOoiTSSUw/KrMFKm4wjS8c35x FxWJy7KmoRpGiObSLyLW1OWgYcmJ4cCMU/80a8Hx9RC2MVtUGqIBUtgJA1ze0Us2Px2TEux8Hs50u cNjjDPLJ/M3jPYIbFB4qnT6xtMfrS9tHuHaGhp81Pfm6SwyHMAwkkBAMmjzFdC1YZa3K4Hzd3/XCM /gBpBJJw==; 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 1d2erC-0001Xj-Ti; Mon, 24 Apr 2017 14:20:50 +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-0006Wy-3G; Mon, 24 Apr 2017 14:19:11 +0000 Received: by mail-wm0-x244.google.com with SMTP id z129so17635516wmb.1; Mon, 24 Apr 2017 07:18:49 -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=uY+bhW2soLjCP0WEBiglRprUR3+wy/P6g4AtKWFwUXQ=; b=Qzn4ZbFBR+u1dB+/QBeWTv8JmtncjvMa2EXKl7tDUIgUdhTDgRMmmODZ6EFF/jmt2q k9IoEOqzBrsKR0007zH3gQepVfi4yvrI/3w2O2rTQmuLtgQ+2ycPn0N0WtPbS10+XjH+ Wx6YYTyXrDs3F2u+JAusluqBcOBDCl5UmNSmLh27jZJpPxKedoSm7VMS9OBKmnqxyhZD gbZU4q+oPhFWA1TE3etYuj+FBLPTF6mAP/cf33EbP5qAbqf+/YZhMVCxusVAfLconO8J kGZhYmzDwMIoVrjGIwOZYbYaaq5xKPwd8mAUG8T7zjq8YFideJJT+NnzS6rX0s7T8brV vvsw== 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=uY+bhW2soLjCP0WEBiglRprUR3+wy/P6g4AtKWFwUXQ=; b=FuwDga7zma5zeF5o3fDQFZxOr9UzX43PzL/I4VOXFhY3KT6d06puQwroluhjayUdAC UrH3ZqNK2s/4INL8M7qOUXGxJS1R4laeliHXxnrcprJlMguHQD66lrPQM0Nb0GEJxNqk RITX3v4mOf5p+PIqLjxoYw2RrsF47IhxYcr4ehdOdmq1leSGcTnOt9ddmj+aj0KMJ2Xl 79JuxJkBmx7gfzlbqvKCRfqMHLADnrvWvEriv7FEfVpeEaQmMK84CuwH9CVsirf+tJYl Pu3R66QgIUFG+jAJkJAsDwF0dfVtwf7xCj3x16X9owy18+NYk8XmLNW6e/PEigILVvdM 8/hQ== X-Gm-Message-State: AN3rC/4Y3AUTkoRu2jnMo1o3bcvlik1v/5N4yU6jopKJaL19cL9vQJmF Sw0nJN39wPMCxg== X-Received: by 10.28.199.2 with SMTP id x2mr10067499wmf.94.1493043528217; Mon, 24 Apr 2017 07:18:48 -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.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Apr 2017 07:18:47 -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 7/9] crypto: qat - Use IPAD/OPAD constant Date: Mon, 24 Apr 2017 16:16:27 +0200 Message-Id: <20170424141629.27155-7-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_442323_2A80F359 X-CRM114-Status: UNSURE ( 8.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-mediatek.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/> List-Post: <mailto:linux-mediatek@lists.infradead.org> List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>, <mailto:linux-mediatek-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-mediatek" <linux-mediatek-bounces@lists.infradead.org> Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/crypto/qat/qat_common/qat_algs.c b/drivers/crypto/qat/qat_common/qat_algs.c index 20f35df..6843fe2 100644 --- a/drivers/crypto/qat/qat_common/qat_algs.c +++ b/drivers/crypto/qat/qat_common/qat_algs.c @@ -178,8 +178,8 @@ static int qat_alg_do_precomputes(struct icp_qat_hw_auth_algo_blk *hash, for (i = 0; i < block_size; i++) { char *ipad_ptr = ipad + i; char *opad_ptr = opad + i; - *ipad_ptr ^= 0x36; - *opad_ptr ^= 0x5C; + *ipad_ptr ^= HMAC_IPAD_VALUE; + *opad_ptr ^= HMAC_OPAD_VALUE; } if (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/qat/qat_common/qat_algs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)