Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1360403pxb; Fri, 21 Jan 2022 16:29:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyg88shQ9NUuDzZkT256Mi5vVwswAnnEUnxGtCSfmTrnD6e0JGs7b4jCFR/Ngi6vk74IU8O X-Received: by 2002:a17:902:f681:b0:14a:2a1e:4692 with SMTP id l1-20020a170902f68100b0014a2a1e4692mr5734524plg.99.1642811398259; Fri, 21 Jan 2022 16:29:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642811398; cv=none; d=google.com; s=arc-20160816; b=dmzz1fjX4U2Zp8vWNhiIam3aseB1CqGTZGL7B7HNMzkVurpLcp0Y2vtXrZs/OND8xr nPOLY4enGBvDvrXuw9SwYRHTZcydnCxKdjEU9+tiUjGeuqZBIRgaVpTCf2j/2quGl7kb vKXYo1vVvmw5q9hllBqPTCtftMibi5dO6EhlMq1gnDkSpltYG4HXEjN2hOCUgmgA0DPF ewZV+eL0XKcK1NSV3vPvTK8NVaIn3Mb1LGfK3mwAQkkqL7/q1z+7uRS7V7lHv722xfN8 gyppABNdHfdLtzyFDHhEoXUICoZrFjOqQaeSO8/1P4lrB9AOZ+d559c0NZdGnGjnYRJN XBBQ== 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=+voPomDve1qXJhFgNfovxhf7gmY1dDR8B+xopqARLyY=; b=vHhtaeu3vylkgkQVEJm1Ge0UOHrSu3hXQAbTlnDBQtqLehOwkJWXJAgd7iM0q11zO1 V/bWFc7KPheX7psE2v8Jf2ZQbMekWz8nqFUQ3isXui4volwnc+2s+mmToE5ZluV50gWd JbufIxMroERChtaptkM8IYWEbCer7mGAJ2sVObqoMYzhoYHE73wP5CLbS8oxClH5RR9+ zTkZOUUxI5MmVXh8caVDxPBWOiN//10WDvRbB5CXdaW4B4KImcwEMXlOR09fZ2Ho/YDT 9eghEafW1a316dRf8Ifdbyc4U5uDJrc53wN4KZZuo3XRORpuDlpT6fpOg3xlcIwHr9Ku LPOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=UubX+tZc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e2si6947900pfe.62.2022.01.21.16.29.46; Fri, 21 Jan 2022 16:29:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=UubX+tZc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378486AbiAUCZw (ORCPT + 99 others); Thu, 20 Jan 2022 21:25:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348457AbiAUCZv (ORCPT ); Thu, 20 Jan 2022 21:25:51 -0500 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 567C5C06173F for ; Thu, 20 Jan 2022 18:25:51 -0800 (PST) Received: by mail-pg1-x533.google.com with SMTP id 187so6787705pga.10 for ; Thu, 20 Jan 2022 18:25:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+voPomDve1qXJhFgNfovxhf7gmY1dDR8B+xopqARLyY=; b=UubX+tZcZPf+xRM5IS1zf6cFWjDLExzHpy47TQTU53a7DDJ+z7+szHbEi8Kc4JKiDr pESA50tf2tHvryDPWX6YJKPyI7jFU5JKjA2MFeX/wwEI6lePBpX3sErdo1NH0iCyFOoQ dfN71+F4z9bRbDFkgK77+tryVmB27rBKasejItYIxbaZD7o1I7mAfX/ikFBe8qZnSrL2 6Zo4pP2mhtPmQSq59RUSdzu7t2styOWR7kzCmaaZGohDinBGVImKDuXpSgkBM4PCasft uD2hEapinzSHdsPmyOM9fVhVoAY6ZfaI4o44AHmm84hKkJbR36NGbCUe0ZqC5xlGo+rV Cc5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+voPomDve1qXJhFgNfovxhf7gmY1dDR8B+xopqARLyY=; b=mpErUDnb6mXWDGFCh4NuCkLCXeXpnwVGf4NlKyTD6rAZ5EGSPk939XXEv7JD6e45Gl voow+yZysP7hP/fRh8styXlW0pdGglfg1Vzw2D0AJvINb54TRLdmksJiLjGkdZz6z/QI 10Wlo16pCR0E9mc43DYQX5+IEC/gNqxZtHGNppzXzNqmdgK0tGNKLeY71kKYoCyvMzSp yeKKUDx+7fkO12AnsNsicYN260nXeQT+VI/cGSU53mD7ul0FdtATeSSrG/X0Vky3834i Qr7vPOeolges7bVNMJp9SvbtEU4BBp8ainWSKA92MzJeBtAEoNu1je7djkK5dfmfYxDX 1oag== X-Gm-Message-State: AOAM530PTp8ez1swEZoO5oJeT+kLWwQevzyi/7CrBqjP1piTVlVJFaG4 QFSqW8dhVReAr3Tpro1CnEKjFQ== X-Received: by 2002:a63:3fc5:: with SMTP id m188mr1339522pga.307.1642731950857; Thu, 20 Jan 2022 18:25:50 -0800 (PST) Received: from libai.bytedance.net ([61.120.150.72]) by smtp.gmail.com with ESMTPSA id h2sm5057577pfv.31.2022.01.20.18.25.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jan 2022 18:25:50 -0800 (PST) From: zhenwei pi To: mst@redhat.com, arei.gonglei@huawei.com Cc: jasowang@redhat.com, virtualization@lists.linux-foundation.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, helei.sig11@bytedance.com, zhenwei pi Subject: [PATCH 0/3] Introduce akcipher service for virtio-crypto Date: Fri, 21 Jan 2022 10:24:35 +0800 Message-Id: <20220121022438.1042547-1-pizhenwei@bytedance.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce akcipher service, implement RSA algorithm, and a minor fix. zhenwei pi (3): virtio_crypto: Introduce VIRTIO_CRYPTO_NOSPC virtio-crypto: introduce akcipher service virtio-crypto: implement RSA algorithm drivers/crypto/virtio/Makefile | 1 + .../virtio/virtio_crypto_akcipher_algo.c | 584 ++++++++++++++++++ drivers/crypto/virtio/virtio_crypto_common.h | 3 + drivers/crypto/virtio/virtio_crypto_core.c | 6 +- drivers/crypto/virtio/virtio_crypto_mgr.c | 11 + include/uapi/linux/virtio_crypto.h | 98 ++- 6 files changed, 693 insertions(+), 10 deletions(-) create mode 100644 drivers/crypto/virtio/virtio_crypto_akcipher_algo.c -- 2.25.1