From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mNA6B0u0EWD4AQAA0tVLHw (envelope-from ) for ; Wed, 27 Jan 2021 18:43:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KLEAA0u0EWBSKQAAB5/wlQ (envelope-from ) for ; Wed, 27 Jan 2021 18:43:23 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2B8D59403AE for ; Wed, 27 Jan 2021 18:43:22 +0000 (UTC) Received: from localhost ([::1]:42366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4pmj-0004Tm-2H for larch@yhetil.org; Wed, 27 Jan 2021 13:43:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4pmQ-0004SU-VU for guix-patches@gnu.org; Wed, 27 Jan 2021 13:43:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34572) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l4pmQ-0007qv-Nk for guix-patches@gnu.org; Wed, 27 Jan 2021 13:43:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l4pmQ-00068V-KH for guix-patches@gnu.org; Wed, 27 Jan 2021 13:43:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46139] [PATCH] gnu: Add tpm2-tss. Resent-From: =?UTF-8?Q?L=C3=A9o?= Le Bouter Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 27 Jan 2021 18:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46139 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46139@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161177297123568 (code B ref -1); Wed, 27 Jan 2021 18:43:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jan 2021 18:42:51 +0000 Received: from localhost ([127.0.0.1]:46118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4pmF-000684-BH for submit@debbugs.gnu.org; Wed, 27 Jan 2021 13:42:51 -0500 Received: from lists.gnu.org ([209.51.188.17]:36140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4pmD-00067w-LS for submit@debbugs.gnu.org; Wed, 27 Jan 2021 13:42:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4pmB-0004JP-VU for guix-patches@gnu.org; Wed, 27 Jan 2021 13:42:49 -0500 Received: from mail.zaclys.net ([178.33.93.72]:60559) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4pm8-0007oD-Tx for guix-patches@gnu.org; Wed, 27 Jan 2021 13:42:47 -0500 Received: from localhost.localdomain (lam21-1_migr-78-196-200-185.fbx.proxad.net [78.196.200.185] (may be forged)) (authenticated bits=0) by mail.zaclys.net (8.14.7/8.14.7) with ESMTP id 10RIgVNW055541 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 27 Jan 2021 19:42:39 +0100 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.zaclys.net 10RIgVNW055541 Authentication-Results: mail.zaclys.net; spf=fail smtp.mailfrom=lle-bout@zaclys.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zaclys.net; s=default; t=1611772959; bh=9mc7Z35Rqhp7LIyLZf9Ybp6gKv5z8CK8b9YdneXn1N0=; h=From:To:Cc:Subject:Date:From; b=cLYUWY92QlAG1AqAypG64Qp5k2em0NpPE9Mh4O4pTqAv0qNkBIt8hks905RrHWfn5 tI38mM2a4Bmk9sAil3hnGm2jqK/rC7GBlq8TStmcUyqD8AHoWNmC5LoroJk8nQamNG QyONB7LRFciBmd+ZRBUirwLPTvUhpgfDBkvcb6V8= Date: Wed, 27 Jan 2021 19:42:27 +0100 Message-Id: <20210127184227.29258-1-lle-bout@zaclys.net> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.33.93.72; envelope-from=lle-bout@zaclys.net; helo=mail.zaclys.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: =?UTF-8?Q?L=C3=A9o?= Le Bouter X-ACL-Warn: , =?UTF-8?Q?L=C3=A9o?= Le Bouter via Guix-patches From: guix-patches--- via X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 1.15 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=zaclys.net header.s=default header.b=cLYUWY92; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 2B8D59403AE X-Spam-Score: 1.15 X-Migadu-Scanner: scn1.migadu.com X-TUID: +wautxqRkwWh * gnu/packages/hardware.scm (tpm2-tss): New variable. --- gnu/packages/hardware.scm | 68 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index 3da6759472..778453a395 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -498,3 +498,71 @@ screens. It displays various patterns and allows you to estimate the quality of your CRT/LCD monitor.") (home-page "https://github.com/TobiX/screentest") (license license:gpl2))) + +(define-public tpm2-tss + (package + (name "tpm2-tss") + (version "3.0.3") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/tpm2-software/" name + "/releases/download/" version "/" name "-" version + ".tar.gz")) + (sha256 + (base32 "05xynpwq851fp8f5fy7ac0blvz8mr5m5cbqj3gslgbwv63kjnfbq")))) + (build-system gnu-build-system) + (inputs + `(("pkg-config" ,pkg-config) + ("openssl" ,openssl) + ("json-c" ,json-c) + ("curl" ,curl))) + (synopsis "OSS implementation of the TCG TPM2 Software Stack (TSS2)") + (description "This package provides the Trusted Computing Group's (TCG) +TPM2 Software Stack (TSS). This stack consists of the following layers from +top to bottom: + +@enumerate +@item Feature API (FAPI) as described in the TCG Feature API (FAPI) +Specification along with TCG TSS 2.0 JSON Data Types and Policy Language +Specification This API is designed to be very high-level API, intended to make +programming with the TPM as simple as possible. The API functions are exposed +through a single library: libtss2-fapi. +@item Enhanced System API (ESAPI) as described in the TCG TSS 2.0 Enhanced +System API (ESAPI) Specification This API is a 1-to-1 mapping of the TPM2 +commands documented in Part 3 of the TPM2 specification. Additionally there +are asynchronous versions of each command. In addition to SAPI, the ESAPI +performs tracking of meta data for TPM object and automatic calculation of +session based authorization and encryption values. Both the synchronous and +asynchronous API are exposed through a single library: libtss2-esys. +@item System API (SAPI) as described in the TCG TSS 2.0 System Level API +(SAPI) Specification This API is a 1-to-1 mapping of the TPM2 commands +documented in Part 3 of the TPM2 specification. Additionally there are +asynchronous versions of each command. These asynchronous variants may be +useful for integration into event-driven programming environments. Both the +synchronous and asynchronous API are exposed through a single library: +libtss2-sys. +@item Marshaling/Unmarshaling (MU) as described in the TCG TSS 2.0 +Marshaling/Unmarshaling API Specification This API provides a set of +marshaling and unmarshaling functions for all data types define by the TPM +library specification. The Marshaling/Unmarshaling API is exposed through a +library called libtss2-mu. +@item TPM Command Transmission Interface (TCTI) as described in the TCG TSS +2.0 TPM Command Transmission Interface (TCTI) API Specification. This API +provides a standard interface to transmit / receive TPM command / response +buffers. It is expected that any number of libraries implementing the TCTI API +will be implemented as a way to abstract various platform specific IPC +mechanisms. Currently this repository provides several TCTI implementations: +libtss2-tcti-device, libtss2-tcti-tbs (for Windows), libtss2-tcti-swtpm and +libtss2-tcti-mssim. The former should be used for direct access to the TPM +through the Linux kernel driver. The latter implements the protocol exposed by +the Microsoft software TPM2 simulator. +@item The TCG TSS 2.0 Overview and Common Structures Specification forms the +basis for all implementations in this project. NOTE: We deviate from this +specification by increasing the value of TPM2_NUM_PCR_BANKS from 3 to 16 to +ensure compatibility with TPM2 implementations that have enabled a larger than +typical number of PCR banks. This larger value for TPM2_NUM_PCR_BANKS is +expected to be included in a future revision of the specification. +@end enumerate") + (home-page "https://tpm2-software.github.io/") + (license license:bsd-2))) -- 2.30.0