From patchwork Fri Oct 5 08:13:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 148151 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp151121lji; Fri, 5 Oct 2018 01:13:54 -0700 (PDT) X-Google-Smtp-Source: ACcGV60zjuG8QwEiKIv+KAoFdmRLPuR4iurO8rpmmAKIVFkmM36PglxKzafS/pQ1I3hdqYlqBaVc X-Received: by 2002:a17:902:b28:: with SMTP id 37-v6mr10544071plq.337.1538727234115; Fri, 05 Oct 2018 01:13:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538727234; cv=none; d=google.com; s=arc-20160816; b=S7yCKzgYa+fl/GPvIMs4Kb4QRzM+MB3H7ro29+chUz6XsbzAW2z5qIcVF1FhNXkfTR c4lvXah97ug9tP8G4kAWBVQfwG8ZH4ExGYqRHp8vV9j66PuBgck3Pwsd+mw6REpFlM21 Bt+4E4d9zSfHFBjhBOdW5hoZgoIuuGbU6hMuRhjNDan4/rTnGGwIbO8j9I8WuT99S2Is x0FlKw4uzzjMZIvaE8zAJGBabGTpdkXRrGKBpUrgbjrUmftkJEJ2Xt2uUXss91xhQRKL agFNXLWv275REDS48PU9pe3Z3VffNVoy/QDZzQnKT788a835shZjx+c8LcSaXhO6UREz eo1A== 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=nhUC3M9XUEbPCz1yEojmZGi6w/CES8AjJcw3hIOEru4ZaW1OzA2M05cayh0g0Snea1 2pBKEwxAP7rZJVoBFyt6PxM0QiG4qi12q2Gcsdj43iUN17AYiHQ2gsdwM4bv0ChosJfI GXUYQZk58AAEU16Efl5vdIcUafvlFN/ESVBK6f2uTLY+vW28FijXOzlKA15oiBRp8Zmf C6LlCpqVeyIY5zBzKPVsfoCtCQwP1vCMjE/QZMtqxbwDdWR81vScALrsFPw3ZDTvFB79 kBe/bt2VBXXFBPmMQAgI6lZS7d9KfBAtFGnQgP5mO4wja5DmCwR5Gu6I/ywmIPr65hX+ IsdA== 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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 g15-v6si7691811plo.284.2018.10.05.01.13.53; Fri, 05 Oct 2018 01:13:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 S1728578AbeJEPL1 (ORCPT + 2 others); Fri, 5 Oct 2018 11:11:27 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:52841 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728495AbeJEPL1 (ORCPT ); Fri, 5 Oct 2018 11:11:27 -0400 Received: by mail-wm1-f66.google.com with SMTP id 189-v6so986160wmw.2 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=DqFH+qI+vRh366rU9Mf279NfOOWYePssQR+srs5gggHiZJL2QiutJZIWKexLm23wB3 aZgnl2glt7MZgWWsiM/Gfqu8XZyVzoNts5+ilH4SDGBj5hMAw3O4wEFNOYGD4uYJ8oR7 U5w8vBATaJ0OQcURbVOxST0XSttazgDYS4Lm9W4uv83LQtsDdVh1bQnpdcEql7gsAZZk kLSOdq4N+OjEHoeBtY8lFuE15VSSJT/6e8haMWq2K3SKY8HDVcGwLEZ3Ptq+4heDBEAL QwluytYi0n5dWuUVtlZD6sl0q1rQiId2DeTw9EnrvWbdCQEXoTUfEOpLG/fFwXs0WXzv Yu0w== X-Gm-Message-State: ABuFfohU9BHTi70EaNc+5DheUvhAZeFVG+3TkSawZYd1JhNbOx1KzZn5 CMEgqjXzNa16pcGNYaNxVdSsDw== 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-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Signed-off-by: Ard Biesheuvel --- crypto/crct10dif_generic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.11.0 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; }