Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1304020rdh; Mon, 25 Sep 2023 08:45:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHgeDnKqUlWjH66ZdjeSqjI69mijKbTaEnM/dhyPUV9BTf03tfgtk41jd7GTfEvlsUe2qsa X-Received: by 2002:a54:440c:0:b0:3a7:365c:f89b with SMTP id k12-20020a54440c000000b003a7365cf89bmr7750137oiw.34.1695656705797; Mon, 25 Sep 2023 08:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695656705; cv=none; d=google.com; s=arc-20160816; b=mD3bEiuyri+YaE/OMSGvPCXpiSxCyJlxPBK2qNj5sqOxihXn0/4d2D7mFDJ8/GDF+a Gaos+BJbLec3XrRv9weshRhDmUU0F9l8tcb+2Ax3c9zHqTne5Bmd7ekWIIC54w8y8/cv kG6kA51YVXDsdWieeUEC/aXFsmgqaEKDKrDu7G+A/pIWUB3gt0XntzkSS52IRVdnYbUr qcmLrSqevaE4agCu3m2hJyUuXrkaSCTUcbqMsdylC5BALsZJJ0KNEB6d7/KjHmqo52AS YU4bWujDIX1sWAmGMnC+1FWR78WC1QUTUdQXD1qwouq6U+qGDKYqgDPPQ2fUaolh3vDQ /lEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qlHB5g04CHR9/tv4OtnunPdCrwHYeHqfKkK6TM3fS9U=; fh=tviR08lFG+54esGJyrLHT4lrARHdK8RLPqfNKMCXuuE=; b=C1n2Uky1DP+8KcxTtwaKw3/jdH8V++LOPLKDuVJrbQCL0J/m4tkXNK0hJFJAxNosxr XY9DIT4cr5VGDxyv+iXX8srKaTLlalL7CC8ikkkPeUJJJntKPagLUv/+vSm0aLx532Ex NX7RMrF5u4iRx6sqYO63q/QbfISOEzDSpXHhXM+qPHAhyJXRom2pa6mvkInX5SCObvsA FsYk4oGU5V91AQ4HmHswaLtF16sB+/zY0TUNf41VBtHohD2Hl/CNJYnk1NOU9+vCXaBo bTrQK5ApOMINrZwH2Wt+UsRmEmrI2S4/9I8yIvAIg6QNMlK7VHXPjtdfg2lWpmWkYKAU 32XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IgLsAW7H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id z1-20020a63c041000000b005789f552066si10164554pgi.335.2023.09.25.08.45.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 08:45:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IgLsAW7H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2F1AD80E6CB6; Mon, 25 Sep 2023 08:32:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232336AbjIYPbz (ORCPT + 99 others); Mon, 25 Sep 2023 11:31:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232086AbjIYPby (ORCPT ); Mon, 25 Sep 2023 11:31:54 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 468B395; Mon, 25 Sep 2023 08:31:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695655908; x=1727191908; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ohmo0uphE7YPdh5WwFbU8+KeksI6x6RafAzGQ1Oq1QM=; b=IgLsAW7H7m+4ZZPxHo+meX4GcowK2hqx+zUQUBzafrgVRxlMpceTQKfS KR3Dp/Upc5lpjdOpu5hdg/GGR6IOOJCpg81MZ7qEJYMUfq30ZWoThyK8O /gjpbOwou0gptwdfI1zRu/V04KJMqOACd2lyVluw3D7gTfXqpI//pxbcl zv5DPbKmSMCtbS9BZ2hfxpATwqKt0zU8XYAqz2oDUaxR7dPP3rANNUE0p NVzWTCt6s0WNv2BWH7SfKiB7RRyQG5aOVRZ/QY9N3bnb3UvpSon0Q0LZP oaZ14f7fU586so4YHrDB33cP93p2Wm68Lo9YTi+0cYjnYMw+p1lfN4Qr9 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="361533581" X-IronPort-AV: E=Sophos;i="6.03,175,1694761200"; d="scan'208";a="361533581" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2023 08:31:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="725023003" X-IronPort-AV: E=Sophos;i="6.03,175,1694761200"; d="scan'208";a="725023003" Received: from chang-linux-3.sc.intel.com ([172.25.66.173]) by orsmga006.jf.intel.com with ESMTP; 25 Sep 2023 08:31:45 -0700 From: "Chang S. Bae" To: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Cc: herbert@gondor.apana.org.au, davem@davemloft.net, ebiggers@kernel.org, x86@kernel.org, chang.seok.bae@intel.com Subject: [PATCH 0/3] crypto: x86/aesni - Improve XTS data type Date: Mon, 25 Sep 2023 08:17:49 -0700 Message-Id: <20230925151752.162449-1-chang.seok.bae@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 25 Sep 2023 08:32:01 -0700 (PDT) The field within the struct aesni_xts_ctx is currently defined as a byte array, sized to match the struct crypto_aes_ctx. However, it actually represents the struct data type. To accurately redefine the data type, some adjustments have to be made to the address alignment code. It involved refactoring the common alignment code initially, followed by updating the structure's definition. Finally, the XTS alignment is now performed early in the process, rather than at every access point. This change was suggested during Eric's review of another series intended to enable an alternative AES implementation [1][2]. I viewed it as an enhancement to the mainline, independent of the series. I have divided these changes into incremental pieces, making them considerably more reviewable and maintainable. The series is based on the cryptodev's master branch: git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master Thanks, Chang [1] https://lore.kernel.org/all/ZFWQ4sZEVu%2FLHq+Q@gmail.com/ [2] https://lore.kernel.org/all/20230526065414.GB875@sol.localdomain/ Chang S. Bae (3): crypto: x86/aesni - Refactor the common address alignment code crypto: x86/aesni - Correct the data type in struct aesni_xts_ctx crypto: x86/aesni - Perform address alignment early for XTS mode arch/x86/crypto/aesni-intel_glue.c | 52 ++++++++++++++---------------- 1 file changed, 25 insertions(+), 27 deletions(-) base-commit: 1c43c0f1f84aa59dfc98ce66f0a67b2922aa7f9d -- 2.34.1