From patchwork Fri Jun 28 17:07:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 168109 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3943240ilk; Fri, 28 Jun 2019 10:08:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKBY14b6BH4R4HkvoVg3EsPcfMnvUUwbB954zAFZ0t3G5ba95CqnHv8Kg27OuFG8JCcQLK X-Received: by 2002:a17:90a:350c:: with SMTP id q12mr14560468pjb.46.1561741692740; Fri, 28 Jun 2019 10:08:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561741692; cv=none; d=google.com; s=arc-20160816; b=q7lVexNtMk6bqCh5FSN9csT/5BTVtCdQ2K3y7Am+eRZHg4VPxH45+zLt/6q2ZuE+wF 4IuKgm9mrEeSgj0INepgjdeGCyBYeXlaDzevOVe7aEprVVgAb8aCBHTpfH4psGWmfPCL IT2dkpXriuPbnmIjWvSESa8ZLJjHU0EDVaOVk6Uvak7cov7P4FE25rxJRdlkkSMmRik+ NQbnx+HgBCmMQPAHkwRWOwzh0fmqe/fGn94QQIncsOttS7KBvIZEmJKWH+80oxArKFfV twLGSzySHOkStwv9xRpBU3q8Kxx7eiyA1tfZvvXY45IIxwgByCBXlQb7j+m8joOZDd2n NMCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pjc8Ij8Y09mce/aaMgeAqNcF4yfEEvBFQu5xP/Kzcq0=; b=qJGxBZB5RvcoRxejznGhLOGPloJEGnyFHpxJkYnu62ZDzqEN3Qo/GTFsqqBwB8MGLS FQsedB72TocggakQYtAdLxkjtNWh9Qq7p2OnT5yhjhdp9P1rrdLt0RxiZoB/GNrZr9rB kvIBSIr4sOV3i1e9C8e+kPMwCrRHgjK8dloA2tLLkTCXMgpjSspZENKRZuDp9MEI0SMQ Pgn88O79eoxr4Sd79qvnnInhTKwj4fH6MHf42zLEXux6iA/BCF8GpjVMzcx8/clpy8Qd QyIpTvSJAbbHXzsxhJSXFkC31YevDlO+XpJdA0+1bsZ+eK90EKeMeBo9ETmXRaILoRDb us9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c9j2Zutu; 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 i3si2338787pgq.440.2019.06.28.10.08.12; Fri, 28 Jun 2019 10:08:12 -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=c9j2Zutu; 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 S1726672AbfF1RIM (ORCPT + 3 others); Fri, 28 Jun 2019 13:08:12 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:54980 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726408AbfF1RIL (ORCPT ); Fri, 28 Jun 2019 13:08:11 -0400 Received: by mail-wm1-f67.google.com with SMTP id g135so9787880wme.4 for ; Fri, 28 Jun 2019 10:08:10 -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 :mime-version:content-transfer-encoding; bh=pjc8Ij8Y09mce/aaMgeAqNcF4yfEEvBFQu5xP/Kzcq0=; b=c9j2Zutu9EDcMb85IPhR5HkDdANRDstVkiyHsSpnOcRWQmiVwa1yp/za76vAByLKu5 lUb8St0oxflWXOkf+vGYITkcz95Ptr00nmWX6E965gzxTG0VePtCJcGeVb2VlC/pD6t5 iBBcj7NjAfOCnk8pjSYl/UK2oTw1NuPjZwGrhHLhm7fV0xjafhLohy42ZHu1Xf3SVMsX 5f1J2369gmMZaQDttUrNwnJp0ZPk7yiEnWeMiHoGzV1x3YU23Z70G4KD//3tSOFOkuNo x2KpzGpX7VqQGW9beDDToU9rg6sSi72yfYO0Rwtj310cdTwpDjpJuAmX7Gh68zXb1jRO G29g== 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:mime-version:content-transfer-encoding; bh=pjc8Ij8Y09mce/aaMgeAqNcF4yfEEvBFQu5xP/Kzcq0=; b=nkyGzxUeKuWsz12KpWQQLSZ4I/Wra/1jV2ZI+A2ehsUv4gyrohVmAc49czt9qPuTbN A/MgRdDkFkZcl/0I/AJmEgBUzF/UOyo1KpAIQbgLKi3hKH3uBiINPT5QRnpLTxB0EUN/ 4yJ6Ohkn7b0dOe186bRnjvkjyDoEBpd3nteYlYE0trEx2v4r3MxxS9T/7eh6FsVRwN9t joXSvoEHU8PGy28JoDSvy4BQU4f/rWHIhW52KdtZx9sMF7DzEhCeHuxBucCyVWi2QjWv 08tnfajeGFOcgOKtqvMkKdazLgsi3UJh1EC3i8nBNFLKVW4z5jn6vpMZ28e0F0ipf9OP beYQ== X-Gm-Message-State: APjAAAW1pGydBhOakdUI62gl35KyVYR1M4h18CcHeBV1a/cfO7sFkoT7 3Qb0SHwemWv+1jnbyG1LQgAPL7pTb+Q8Lg== X-Received: by 2002:a1c:c706:: with SMTP id x6mr7785707wmf.162.1561741689443; Fri, 28 Jun 2019 10:08:09 -0700 (PDT) Received: from localhost.localdomain (laubervilliers-657-1-83-120.w92-154.abo.wanadoo.fr. [92.154.90.120]) by smtp.gmail.com with ESMTPSA id c15sm3833251wrd.88.2019.06.28.10.08.08 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 28 Jun 2019 10:08:08 -0700 (PDT) From: Ard Biesheuvel To: linux-crypto@vger.kernel.org Cc: Ard Biesheuvel , Eric Biggers , Ondrej Mosnacek , Herbert Xu , Steve Capper , Milan Broz Subject: [PATCH v2 3/7] crypto: aegis128 - drop empty TFM init/exit routines Date: Fri, 28 Jun 2019 19:07:42 +0200 Message-Id: <20190628170746.28768-4-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190628170746.28768-1-ard.biesheuvel@linaro.org> References: <20190628170746.28768-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 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.20.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,