From patchwork Sun Jun 30 16:50:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 168176 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1934147ilk; Sun, 30 Jun 2019 09:50:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhelZgdmdJhfuYVvQrVRw1fwQM3dTyFoGPvVCNbTfSgNOF+m1toT6ZLVMmJsgYowTV8Wmb X-Received: by 2002:a17:902:7043:: with SMTP id h3mr24839767plt.10.1561913446802; Sun, 30 Jun 2019 09:50:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561913446; cv=none; d=google.com; s=arc-20160816; b=EYW0HzOwryfiaCVn/vJZAxkHneZ5w7LqDeiJKRuGPhMx0i0289sC+GwheUvzAVHuYB UJK8FG9hwJtmI/gOysgMkGKZnYiY4gEFB2ZZ5tIOW/hjv7b0uGN2H89A6nMiSTNcagRL d5Tt8r3u8azNujF22+2Ps0vthPf+1SVXMAfQBNou4JzQITXm7XeqZhE19i3/o6BtSmMk NwbEUL8c200Dog8RVL8u7mHfaPNtR1VaLlNcHk2RouSL2vt5jPyyhmDDxYxSRMyMvVS5 I8TBzHjqCNXxrG9oeowmLXwcFsr+MIodrE81O5Mx77qkPTXt8SO/aMjKVcodZeynmt7b AuOg== 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=FsynkDGHcI3FuVlz//acB7VJ0fqaGYFF4yMXPjLoHBk=; b=axnaYfuaXsBPwMiPU94d3is1seXMG6VWESAlRQZeM0W3b27KqSfzQ4qR+jOMAv7jIN x0l4+FWN/Gxvd1m+YFTEpImMktbP4FanatJtTdW35eY4ZSwmaC18KrcL8TgkVbD8brO/ daQgz2zoteiJkaoea5aFaPdH8q+B7Mjqq7AnH3WG+ms2acnsv7PTcPOrvPFb1JArpiXJ jLICXckgh7bs2ndvMQk88PdENeM2uij+vEFvU2hnN7Bo9DGcvmKpAOKjOq2DY/BzN6Ix 97zf2yybcwxSbj4xQlb6uMgSpemigUcqFs28sGYA5VszQf5Ax4G4rdgSsao22CkVMxik K+Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q94vcS7+; 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 i23si7572593pgh.26.2019.06.30.09.50.46; Sun, 30 Jun 2019 09:50:46 -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=q94vcS7+; 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 S1726641AbfF3Quq (ORCPT + 3 others); Sun, 30 Jun 2019 12:50:46 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:38965 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726605AbfF3Qup (ORCPT ); Sun, 30 Jun 2019 12:50:45 -0400 Received: by mail-lf1-f68.google.com with SMTP id p24so7119442lfo.6 for ; Sun, 30 Jun 2019 09:50:44 -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=FsynkDGHcI3FuVlz//acB7VJ0fqaGYFF4yMXPjLoHBk=; b=q94vcS7+PDwg+NvpbLTHSA6TF5ZT+Ku0WDmm/kSnlTP1PpJd2jEun+/YBzQ6RIS850 WDRnhT6JEH4DCJ+vZLPJOnB7Az4647wrrodVTgPXwL5YutdCtsArpzIxWUC3iGU1W4/B /25Fgfcsqa0XcovPAIbaoyNIgOI2NOk3Pty8++oNKVnka7ffC+BusQ4isvVwA3PppENS y0MMlop0caZcG6zaZOojuNQWTP5F6GMqLd1B4RJ8ln5TU0ENU0jvpaeNFM38ytsa0xit zMMC6Hc1BSodA1XKsld0QcCPvBDefZ5iYx5j9Fwn7jvtoQSZqc17xGH34TscZldjsp1Q QPqg== 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=FsynkDGHcI3FuVlz//acB7VJ0fqaGYFF4yMXPjLoHBk=; b=js23PrJ42wSvE7RlWSrwZuU6Igu8bw2lgnvIXfjClzphh9hnB7q4Ii7r3y7J/izNHP yE+yjcwyhbUtzOjwrHhdQ5LmezRIyuQCyzDpQsoIZbhfNRKAmtBFxqV1PEMN1JAmdTBp FFr6tPY9MJnnPLGPOBRF3eZ59P4Iszj1QCpKzPI1HWzn18GxOu+SlC5vwkpmxz9JFBIo THBpOTt9SL9SWzTevpeVy6PnIpvPK7OpiOnOBebQcOuknpb8fzm59GPlrPd4JvV4K38F USM7deqWsGA60rc+uZtj8hgI0V+hpZOwrTYl7//zUVkFFDTZQZ50c96oLBTtbT2f6HTW gBJg== X-Gm-Message-State: APjAAAWh1UOuPqQC5WKy4QPB3Q66hmnbNyh73kAtDRCD3k0CczEbtmWC vTFGMSUIujCjaCLFdMNxsL/IQWxidi7hNA== X-Received: by 2002:ac2:558a:: with SMTP id v10mr10075831lfg.41.1561913443596; Sun, 30 Jun 2019 09:50:43 -0700 (PDT) Received: from e111045-lin.arm.com (89-212-78-239.static.t-2.net. [89.212.78.239]) by smtp.gmail.com with ESMTPSA id t15sm2097367lff.94.2019.06.30.09.50.42 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 30 Jun 2019 09:50:42 -0700 (PDT) From: Ard Biesheuvel To: linux-crypto@vger.kernel.org Cc: Ard Biesheuvel , Eric Biggers , Ondrej Mosnacek , Herbert Xu , Steve Capper , Milan Broz , Ard Biesheuvel Subject: [PATCH v3 3/7] crypto: aegis128 - drop empty TFM init/exit routines Date: Sun, 30 Jun 2019 18:50:27 +0200 Message-Id: <20190630165031.26365-4-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190630165031.26365-1-ard.biesheuvel@linaro.org> References: <20190630165031.26365-1-ard.biesheuvel@linaro.org> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org TFM init/exit routines are optional, so no need to provide empty ones. Reviewed-by: Ondrej Mosnacek Signed-off-by: Ard Biesheuvel --- crypto/aegis128.c | 11 ----------- 1 file changed, 11 deletions(-) -- 2.17.1 diff --git a/crypto/aegis128.c b/crypto/aegis128.c index d78f77fc5dd1..32840d5e7f65 100644 --- a/crypto/aegis128.c +++ b/crypto/aegis128.c @@ -403,22 +403,11 @@ static int crypto_aegis128_decrypt(struct aead_request *req) return crypto_memneq(tag.bytes, zeros, authsize) ? -EBADMSG : 0; } -static int crypto_aegis128_init_tfm(struct crypto_aead *tfm) -{ - return 0; -} - -static void crypto_aegis128_exit_tfm(struct crypto_aead *tfm) -{ -} - static struct aead_alg crypto_aegis128_alg = { .setkey = crypto_aegis128_setkey, .setauthsize = crypto_aegis128_setauthsize, .encrypt = crypto_aegis128_encrypt, .decrypt = crypto_aegis128_decrypt, - .init = crypto_aegis128_init_tfm, - .exit = crypto_aegis128_exit_tfm, .ivsize = AEGIS128_NONCE_SIZE, .maxauthsize = AEGIS128_MAX_AUTH_SIZE,