From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.182.15 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796100000; b=4rXvLs96wZAOz1YieWZyBmbO2FyOP9oMw2/DhEQl63Ty0CmqY5xklKUCXxJecW1e+5Bm 91pAlmBP2hyg7DgvWBsprV63XNJzW/fjJHh/eD/habVVqxQyIA2McIpa8gGKfAGLzAT0v Izb1XDDO48c5mo2ZtxLvBHeSRuzB1r9Pge0ug6ub6nfeHaZ6lRR5JlVnNAyTKKN7INN6R 6vjvctZJl88QxSeMA2XFtjARJDYJOETeS8dcXVPodlCr7l7hN7KzuRtLJgJB+gaTDtirP wTt2052rpigrrvonVIklXMk5rqSf2TsoYBH4nsiF075+/N74WYiHUfBQV7T3urae2ZA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796100000; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding: X-ZohoMailClient; bh=5lglE88f9lIY8u36Bv8Yeke3reaFJx49fRt6gjZKhSc=; b=KdaitphyDq2gdcbyn/8b1p/l0FLz0FpT7sLE+A4RI1crHpv2Tqgm9nk/54zzYqNCPqCC vaRi1CEv/nQsNoBTPmeseXoD4ZYLyHVLLDG1VBcXlNvztr/of3KPlELqjJNHMoBneriy/ YCQcKhmKuFTG/zUBRa7EE5UWzjvR0FYEqHGDAxm/CqrmGdTJKB0PRo5q2J58wqk2mlbhR jYjSwf3auZpOLEr/OA/oLLu6N1Pn0+yPqkzZZKkEknGahgACdorEiTvwBjmX108UGKLdU Z7mPTrZJLm68ZzpqhazOflLM/fdqOcrTPWdfFjz3IzvHrioiRKCqTBa4+BXgpXu/+cw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=laveeshbansal.com; spf=pass smtp.mailfrom=laveeshbansal.com; dkim=pass header.d=laveeshbansal.com header.i=@laveeshbansal.com header.a=rsa-sha256 header.s=zoho header.b=LtWuZhwq; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.182.15 Received: from sender5-op-o15.zoho.com (sender5-op-o15.zoho.com [165.173.182.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50E91606A31A; Tue, 1 Dec 2026 04:40:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 50E91606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=laveeshbansal.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=laveeshbansal.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=laveeshbansal.com header.i=@laveeshbansal.com header.a=rsa-sha256 header.s=zoho header.b=LtWuZhwq ARC-Seal: i=1; a=rsa-sha256; t=1796099989; cv=none; d=zohomail.com; s=zohoarc; b=lyKyDsCAFHTLrOQFtoB0aXv0cQgSeENcLd80KSiOm0rht1QhQsn7Ro/c6KzVM2TcsLQs/SDF1wGVfrfKmxsN7yGmpeLvUKPxkbMdjkqvrjf0OetRC4VzcX6ojuhf0cn75K+DP042QT4oj9Lm07btnX3pqFYiGWALH4xa8+B8UV0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1796099989; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=5lglE88f9lIY8u36Bv8Yeke3reaFJx49fRt6gjZKhSc=; b=ldgcTMyLVZlpYKKBByX2RBQ+DH05KIupttDPkGkD5Sje5z4txEA3T/SUH/HOpXkTPMGt9UqnHB+EMWtjoj2MeCuUnxqa//T+6DJKdGh1zCX/JC+dycBjDt/s6VSE+fLiITW3zfszDaptTQHKYZWXn0euc5Vi68odY4ShaskV3TM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=laveeshbansal.com; spf=pass smtp.mailfrom=laveeshb@laveeshbansal.com; dmarc=pass header.from= DKIM-Signature: a=rsa-sha256; b=LtWuZhwqheIf9ZG64cSl7VJHYrbJycJyFUfSUMZspf6Qb2XJHUg2tEP4kxJ4/hsyosXcxJH0Tjkucf+Q1Z0f4k0nfFfTFOgoQLkPUIgdU0OkVM7T5WX4bbBv6TMqpKOWhNc0OhXydqXNusGQIxONiuFv4Op8k8SVQOWkVdapxMg=; c=relaxed/relaxed; s=zoho; d=laveeshbansal.com; v=1; bh=5lglE88f9lIY8u36Bv8Yeke3reaFJx49fRt6gjZKhSc=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc; Received: by smtp.zohomail.com with SMTPS id 1796099988114755.5982502996212; Mon, 30 Nov 2026 20:39:48 -0800 (PST) From: Laveesh Bansal To: Eric Biggers Cc: Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] crypto: adiantum - Use the ChaCha library Date: Mon, 30 Nov 2026 20:39:43 -0800 Message-ID: <20261201043945.50022-1-laveeshb@laveeshbansal.com> X-Mailer: git-send-email 2.54.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External This series makes adiantum call the ChaCha library directly instead of going through a crypto_skcipher child. This came out of a conversation on another patch: https://lore.kernel.org/all/20261127184407.GB1974@quark/ v1: https://lore.kernel.org/all/20261130055539.8278-1-laveeshb@laveeshbansal.com/ I used an LLM for research, the first draft, review and tests. I did the final code changes and reviews myself. Changes in v2: I addressed feedback on v1. https://lore.kernel.org/all/20261130194303.GB16775@google.com/ https://lore.kernel.org/all/20261130194012.GA16775@google.com/ - Merged patches 2 and 3. - Updated adiantum to not be a template. It registers two skcipher algorithms -- adiantum(xchacha12,aes) and adiantum(xchacha20,aes). - In-place requests under CONFIG_HIGHMEM map the memory only once. - 'buf' is zeroized. - Based on the current cryptodev master because the base in v1 -- commit 9fb9278d13dca -- is no longer in it. Laveesh Bansal (2): crypto: testmgr - Add Adiantum vectors with a partial last ChaCha block crypto: adiantum - Use the ChaCha library crypto/Kconfig | 3 +- crypto/adiantum.c | 336 ++++++++++-------------- crypto/testmgr.h | 644 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 782 insertions(+), 201 deletions(-) This series applies on top of the following: - setkey: https://lore.kernel.org/all/20261125013553.94480-1-ebiggers@kernel.org/ - aeslib: https://lore.kernel.org/all/20261125032407.126634-1-ebiggers@kernel.org/ base-commit: e1ec0b1e859b0f2261d64b3db95991c2da627af4 prerequisite-patch-id: 5268ec1436ad909487f950765a39a0cc6eac0c6a prerequisite-patch-id: 0edefdce5d51065803ab84e3492634dcb9e0e53e -- 2.43.0