Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp152928imm; Fri, 5 Oct 2018 01:14:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV60znx8WnAeQErL/8fBuVhZROQXmdkQf1X1RrwJhgPE6fJaPWI28Ys/OmMWF4+HgOzwcN6Nf X-Received: by 2002:a63:e216:: with SMTP id q22-v6mr8963672pgh.206.1538727299658; Fri, 05 Oct 2018 01:14:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538727299; cv=none; d=google.com; s=arc-20160816; b=ZbO6VW1Eki7XTkIVhHZH3o+gXMEcrmoHdFIPvf8J2NB8PeEJ1lllzcuIOlezJ57h04 k54Zw54R5k0HuvolgKaaJH7kTVI24SValI4R0UtkXQQD/lL1satcGV77c1znLBoYmSqy gF3HbbTzjnIM63kgtGbFAH8xEHxIjNWvXQW3ySuwQHdFH3JbaRZjJmNNQ78KAno3De8h SSNYiLJ6MHkWPopdASz8q9ZW6S+PCUfcTT+bulACMIa9/3qUECS3RgA4GXT7IcdowvQk hM6tOrtHdc8vYuoV4eAFtA46yDFutm9PhTSpVDuTqlcZGCo4VI1Us26C1wmqsicU4bHe rGQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=7ykn0kdpAuelX0ufR1lLCrLMFlIy/5JjP//jovQ6hBA=; b=03S6CWEfU5zOmzD3Vx9T9dd5QxkWVyLcoxNtQqC/ndSWn3hl/aijYSTnYR/TKX9Y4n MWMt5KTDKUDc8vcClrylKere4Z9GrvYVjWpF8I1irkQImXfsxOzDY85ryAU9mcCVhpN3 YB8K3Y65ZI4wSEBCeLUDwz/I5MzLWXtQ9oFqRC/MG0966mQydOnwPhPLIhQ1LacMdbAB FI2NJGschAwYD4cLQuEi8m4z2bHu26bKLlg8Qbxr4FNpir9dubf2QyE6bJE2KQagnoQM 6jMWBgBors7Kmgnl/D3vbJbX1JGoqZeVcutdSHP56XP4T8ZGD6A1J3zqh3meFxHBlTdG 0ssQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WeDWUysr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y15-v6si7487926plp.371.2018.10.05.01.14.44; Fri, 05 Oct 2018 01:14:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WeDWUysr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728624AbeJEPLo (ORCPT + 99 others); Fri, 5 Oct 2018 11:11:44 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:53522 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728552AbeJEPL0 (ORCPT ); Fri, 5 Oct 2018 11:11:26 -0400 Received: by mail-wm1-f68.google.com with SMTP id b19-v6so981282wme.3 for ; Fri, 05 Oct 2018 01:13:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7ykn0kdpAuelX0ufR1lLCrLMFlIy/5JjP//jovQ6hBA=; b=WeDWUysrCM1wTzn7PG9YlepPl9dIJg8fzOw1684WVaduAN0K8vgjCHF+9AEbojUJgw a6lay2dDQi7EbALoyTHW5TVZR0JGZnd8dl/TJiMHR5gduxF+udxOeiLpDmYl4u8nrdr4 Yex3cYKNCM1K4/unt4EPkx1wx8ANl/+NncRN8= 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=7ykn0kdpAuelX0ufR1lLCrLMFlIy/5JjP//jovQ6hBA=; b=W6k4hUFsvAyIBng1DlE1Q05W019KEnKO4K8fSrGGJTet0HTT+P7EFP5D6Glu0hbDGV bDKtiuGqZRom8TadiSzD8p3w05pjywW798i8uyTJh8l+sufFXfWaP/jz/bzih07mhwLD nL7LeMqviJQQrvVonDzt4+njroo9aAhRtf/KnfsU01/Ujk5vI1nEi/yKY/fclpft/9FK LNEMouZr2y7cQSMjdw3VHINLUCed7s6vQAQy8yP4v7a4mTEdLMd0h76DFdWa6PKETiym ybxMwVI3m4GYVQDXaed452HUei/AcCkp8K4THp/acBH+ifIJuXrjl3sNzWInD1pXq7MG eKhQ== X-Gm-Message-State: ABuFfoi3XvigF8BHL6KzK1ggqI0FJKNXwhIEpN7esiwxQ3E3J+U46KBk Q9eB7LtzOXs3VQ0oIWUz8XWW4sI7F6c= X-Received: by 2002:a1c:9901:: with SMTP id b1-v6mr4381461wme.15.1538727229699; Fri, 05 Oct 2018 01:13:49 -0700 (PDT) Received: from localhost.localdomain ([2a01:cb1d:112:6f00:697e:67d9:a05d:22c7]) by smtp.gmail.com with ESMTPSA id t4-v6sm6565620wrb.45.2018.10.05.01.13.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Oct 2018 01:13:49 -0700 (PDT) From: Ard Biesheuvel To: linux-kernel@vger.kernel.org Cc: Ard Biesheuvel , "Jason A . Donenfeld" , Eric Biggers , Samuel Neves , Andy Lutomirski , Arnd Bergmann , Herbert Xu , "David S. Miller" , Catalin Marinas , Will Deacon , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Thomas Gleixner , Ingo Molnar , Kees Cook , "Martin K. Petersen" , Greg Kroah-Hartman , Andrew Morton , Richard Weinberger , Peter Zijlstra , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Subject: [RFC PATCH 7/9] crypto: crct10dif/generic - switch crypto API driver to core library Date: Fri, 5 Oct 2018 10:13:31 +0200 Message-Id: <20181005081333.15018-8-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181005081333.15018-1-ard.biesheuvel@linaro.org> References: <20181005081333.15018-1-ard.biesheuvel@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Ard Biesheuvel --- crypto/crct10dif_generic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/crct10dif_generic.c b/crypto/crct10dif_generic.c index 8e94e29dc6fc..9ea4242c4921 100644 --- a/crypto/crct10dif_generic.c +++ b/crypto/crct10dif_generic.c @@ -53,7 +53,7 @@ static int chksum_update(struct shash_desc *desc, const u8 *data, { struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); - ctx->crc = crc_t10dif_generic(ctx->crc, data, length); + ctx->crc = crc_t10dif_update(ctx->crc, data, length); return 0; } @@ -68,7 +68,7 @@ static int chksum_final(struct shash_desc *desc, u8 *out) static int __chksum_finup(__u16 *crcp, const u8 *data, unsigned int len, u8 *out) { - *(__u16 *)out = crc_t10dif_generic(*crcp, data, len); + *(__u16 *)out = crc_t10dif_update(*crcp, data, len); return 0; } -- 2.11.0