From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pdx-out-002.esa.us-west-2.outbound.mail-perimeter.amazon.com (pdx-out-002.esa.us-west-2.outbound.mail-perimeter.amazon.com [44.246.1.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5D3A8C1F; Thu, 12 Feb 2026 02:53:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=44.246.1.125 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770864836; cv=none; b=McS4ZitQGctZLB42qKPkCfbSL1zYrS1U3qZFJrDTuUNHfK0KqGftWHyw61xQUxTqErbsuSDnh8zyGJ70qko31bBkTORdR52PCMxKmMWjyr2QaSK8NBlHFuw1Rj8TG/bMk+8EGFsGFFqAxE/RblZaVtiH1LDpnMpRAs5goBPcATk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770864836; c=relaxed/simple; bh=HAJGRyRqGf0r9eHqqTgNLEL2TbRYMGQWLl90vzPAtpQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Gztcw9PsULZFg7zt2IntEDZtPL0DefhxPe2Awn+zepBYeJSBWU2ltDfdECO/y6DO4qbHKq0zXajDU3+lqPm1eNzHN41GmTlcywRF5l2HeXVAtgk+vUWqLewHGE8xzZT6WtLSY8Ns0wvb1iUw/duZ7xGH6sabic3zoKw+wqftQnM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com; spf=pass smtp.mailfrom=amazon.com; dkim=pass (2048-bit key) header.d=amazon.com header.i=@amazon.com header.b=tY8Ic2iJ; arc=none smtp.client-ip=44.246.1.125 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=amazon.com header.i=@amazon.com header.b="tY8Ic2iJ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazoncorp2; t=1770864835; x=1802400835; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=p64SvMN5bUzwos8G1dSdVdIQ1VadFMYC728JQlnFmeU=; b=tY8Ic2iJamKF+LLUTyYo3DGrmutMuRlSWZCPpAc1nAXEv0vTD7aQT3rP nr5W24+AU1P7akJFzVJtHVrv6zHwfYXDpwsuC8lFzJ/yQQftQxUYvrDss mjJ+JWbrR8bG0r3ilPVHzj1TJoOqWPVSt79n3nFsIR8uD/GgXK0am29UW KdOQs8fHzEJ6EJ9cpTwiKRe3jt42x+Rlq02LVfsVqX0qqNNTDBpE1JKVO 9d0heFm73xq/UyW64fzVOEiq6sADXHJZRI2CcvxB8GIcxc9qGD5FamVNZ rZJuFeaG8YoTdYTGrNPInW6KJjTl8yFlIN6ILyhQQljs3hnDAkMwR8zEI w==; X-CSE-ConnectionGUID: fHF3OQVTTTawXjt+tBHSGA== X-CSE-MsgGUID: R8otepABREaAgRXUiHVCog== X-IronPort-AV: E=Sophos;i="6.21,285,1763424000"; d="scan'208";a="12918799" Received: from ip-10-5-9-48.us-west-2.compute.internal (HELO smtpout.naws.us-west-2.prod.farcaster.email.amazon.dev) ([10.5.9.48]) by internal-pdx-out-002.esa.us-west-2.outbound.mail-perimeter.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2026 02:53:55 +0000 Received: from EX19MTAUWB002.ant.amazon.com [205.251.233.111:3633] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.0.85:2525] with esmtp (Farcaster) id 9baa1dba-aafe-41f4-a3d6-8dd0a6da67bf; Thu, 12 Feb 2026 02:53:55 +0000 (UTC) X-Farcaster-Flow-ID: 9baa1dba-aafe-41f4-a3d6-8dd0a6da67bf Received: from EX19D001UWA001.ant.amazon.com (10.13.138.214) by EX19MTAUWB002.ant.amazon.com (10.250.64.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.35; Thu, 12 Feb 2026 02:53:54 +0000 Received: from dev-dsk-wanjay-2c-d25651b4.us-west-2.amazon.com (172.19.198.4) by EX19D001UWA001.ant.amazon.com (10.13.138.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.35; Thu, 12 Feb 2026 02:53:54 +0000 From: Jay Wang To: Herbert Xu , "David S . Miller" , CC: Jay Wang , Vegard Nossum , Nicolai Stange , Ilia Okomin , Catalin Marinas , "Will Deacon" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Luis Chamberlain , Petr Pavlu , Nathan Chancellor , Nicolas Schier , , , , Subject: [PATCH 025/106] crypto: convert exported crypto symbol into pluggable interface for CONFIG_CRYPTO_CCM crypto Date: Thu, 12 Feb 2026 02:46:01 +0000 Message-ID: <20260212024725.11264-26-wanjay@amazon.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260212024725.11264-1-wanjay@amazon.com> References: <20260212024725.11264-1-wanjay@amazon.com> Precedence: bulk X-Mailing-List: linux-modules@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EX19D043UWA003.ant.amazon.com (10.13.139.31) To EX19D001UWA001.ant.amazon.com (10.13.138.214) From: Vegard Nossum Apply Crypto API wrappers to the exported crypto symbol in CONFIG_CRYPTO_CCM-related crypto to convert them into pluggable interface. Signed-off-by: Vegard Nossum [add ccm.o into crypto-objs-y; revise commit message] Signed-off-by: Jay Wang --- crypto/Makefile | 2 +- crypto/ccm.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/Makefile b/crypto/Makefile index 11bb65cf0094..9dc0d5d55eaa 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -99,7 +99,7 @@ obj-$(CONFIG_CRYPTO_XCTR) += xctr.o obj-$(CONFIG_CRYPTO_HCTR2) += hctr2.o obj-$(CONFIG_CRYPTO_ADIANTUM) += adiantum.o crypto-objs-$(CONFIG_CRYPTO_GCM) += gcm.o -obj-$(CONFIG_CRYPTO_CCM) += ccm.o +crypto-objs-$(CONFIG_CRYPTO_CCM) += ccm.o obj-$(CONFIG_CRYPTO_CHACHA20POLY1305) += chacha20poly1305.o obj-$(CONFIG_CRYPTO_AEGIS128) += aegis128.o aegis128-y := aegis128-core.o diff --git a/crypto/ccm.c b/crypto/ccm.c index 2ae929ffdef8..e76946e05b5e 100644 --- a/crypto/ccm.c +++ b/crypto/ccm.c @@ -929,8 +929,8 @@ static void __exit crypto_ccm_module_exit(void) ARRAY_SIZE(crypto_ccm_tmpls)); } -module_init(crypto_ccm_module_init); -module_exit(crypto_ccm_module_exit); +crypto_module_init(crypto_ccm_module_init); +crypto_module_exit(crypto_ccm_module_exit); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Counter with CBC MAC"); -- 2.47.3