Projects
openEuler:Mainline
tpm2-tools
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 8
View file
_service:tar_scm:tpm2-tools.spec
Changed
@@ -1,5 +1,5 @@ Name: tpm2-tools -Version: 5.4 +Version: 5.5 Release: 1 Summary: A TPM2.0 testing tool based on TPM2.0-TSS License: BSD @@ -57,6 +57,9 @@ %{_mandir}/*/* %changelog +* Tue Jul 18 2023 jinlun <jinlun@huawei.com> - 5.5-1 +- update to 5.5 + * Tue Dec 20 2022 wangyunjia <yunjia.wang@huawei.com> - 5.4-1 - update to 5.4
View file
_service:tar_scm:tpm2-tools-5.4.tar.gz/Makefile.in -> _service:tar_scm:tpm2-tools-5.5.tar.gz/Makefile.in
Changed
@@ -17,7 +17,7 @@ # SPDX-License-Identifier: BSD-3-Clause # aminclude_static.am generated automatically by Autoconf -# from AX_AM_MACROS_STATIC on Mon Dec 5 10:02:13 CST 2022 +# from AX_AM_MACROS_STATIC on Mon Feb 13 09:09:40 CST 2023 @@ -5883,8 +5883,8 @@ maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -@AUTOCONF_CODE_COVERAGE_2019_01_06_FALSE@distclean-local: @AUTOCONF_CODE_COVERAGE_2019_01_06_FALSE@clean-local: +@AUTOCONF_CODE_COVERAGE_2019_01_06_FALSE@distclean-local: clean: clean-am clean-am: clean-binPROGRAMS clean-checkPROGRAMS clean-generic \
View file
_service:tar_scm:tpm2-tools-5.4.tar.gz/VERSION -> _service:tar_scm:tpm2-tools-5.5.tar.gz/VERSION
Changed
@@ -1,1 +1,1 @@ -5.4 +5.5
View file
_service:tar_scm:tpm2-tools-5.4.tar.gz/aminclude_static.am -> _service:tar_scm:tpm2-tools-5.5.tar.gz/aminclude_static.am
Changed
@@ -1,6 +1,6 @@ # aminclude_static.am generated automatically by Autoconf -# from AX_AM_MACROS_STATIC on Mon Dec 5 10:02:13 CST 2022 +# from AX_AM_MACROS_STATIC on Mon Feb 13 09:09:40 CST 2023 # Code coverage
View file
_service:tar_scm:tpm2-tools-5.4.tar.gz/configure -> _service:tar_scm:tpm2-tools-5.5.tar.gz/configure
Changed
@@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for tpm2-tools 5.4. +# Generated by GNU Autoconf 2.69 for tpm2-tools 5.5. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -587,8 +587,8 @@ # Identity of this package. PACKAGE_NAME='tpm2-tools' PACKAGE_TARNAME='tpm2-tools' -PACKAGE_VERSION='5.4' -PACKAGE_STRING='tpm2-tools 5.4' +PACKAGE_VERSION='5.5' +PACKAGE_STRING='tpm2-tools 5.5' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -1450,7 +1450,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures tpm2-tools 5.4 to adapt to many kinds of systems. +\`configure' configures tpm2-tools 5.5 to adapt to many kinds of systems. Usage: $0 OPTION... VAR=VALUE... @@ -1521,7 +1521,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of tpm2-tools 5.4:";; + short | recursive ) echo "Configuration of tpm2-tools 5.5:";; esac cat <<\_ACEOF @@ -1702,7 +1702,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -tpm2-tools configure 5.4 +tpm2-tools configure 5.5 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1980,7 +1980,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by tpm2-tools $as_me 5.4, which was +It was created by tpm2-tools $as_me 5.5, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -11953,7 +11953,7 @@ # Define the identity of the package. PACKAGE='tpm2-tools' - VERSION='5.4' + VERSION='5.5' cat >>confdefs.h <<_ACEOF @@ -16986,7 +16986,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by tpm2-tools $as_me 5.4, which was +This file was extended by tpm2-tools $as_me 5.5, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -17052,7 +17052,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/\\""\`\$/\\\\&/g'`" ac_cs_version="\\ -tpm2-tools config.status 5.4 +tpm2-tools config.status 5.5 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\"
View file
_service:tar_scm:tpm2-tools-5.4.tar.gz/docs/CHANGELOG.md -> _service:tar_scm:tpm2-tools-5.5.tar.gz/docs/CHANGELOG.md
Changed
@@ -4,6 +4,19 @@ Starting with release 5.4, The format is based on Keep a Changelog(http://keepachangelog.com/). +## 5.5 - 2022-02-13 + +### Added + * tpm2_createek: + - SM2 EK Support + + * misc: + - SM2 support to internal OSSL format key routines. Fixes --format + flags for conversions. + +### Fixed: + * echo_tcti.py: set to use python3 named executable in shebang. + ## 5.4 - 2022-12-05 ### Added:
View file
_service:tar_scm:tpm2-tools-5.4.tar.gz/docs/CONTRIBUTING.md -> _service:tar_scm:tpm2-tools-5.5.tar.gz/docs/CONTRIBUTING.md
Changed
@@ -5,7 +5,7 @@ <https://github.com/tpm2-software/tpm2-tools/issues> Security sensitive bugs should be handled per the instructions in the -SECURITY.md(SECURITY.md) file. +docs/SECURITY.md(docs/SECURITY.md) file. ## Guidelines for submitting changes:
View file
_service:tar_scm:tpm2-tools-5.4.tar.gz/docs/MAINTAINERS.md -> _service:tar_scm:tpm2-tools-5.5.tar.gz/docs/MAINTAINERS.md
Changed
@@ -1,4 +1,6 @@ ## Maintainers +* Juergen Repp <juergen_repp@web.de> +* Andreas Fuchs <Andreas.Fuchs@infineon.com> * William Roberts <william.c.roberts@intel.com> * Imran Desai <imran.desai@intel.com>
View file
_service:tar_scm:tpm2-tools-5.4.tar.gz/lib/tpm2_attr_util.c -> _service:tar_scm:tpm2-tools-5.5.tar.gz/lib/tpm2_attr_util.c
Changed
@@ -202,7 +202,7 @@ static bool nt(TPMA_NV *nv, char *arg) { - uint16_t value; + uint16_t value = 0; bool result = tpm2_util_string_to_uint16(arg, &value); if (!result) { result = lookup_nt_friendly_name(arg, &value);
View file
_service:tar_scm:tpm2-tools-5.4.tar.gz/lib/tpm2_convert.c -> _service:tar_scm:tpm2-tools-5.5.tar.gz/lib/tpm2_convert.c
Changed
@@ -335,7 +335,11 @@ goto out; } - ctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL); + if (nid == NID_sm2) { + ctx = EVP_PKEY_CTX_new_from_name(NULL, "SM2", NULL); + } else { + ctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL); + } if (!ctx) { print_ssl_error("Failed to allocate EC key context"); goto out;
View file
_service:tar_scm:tpm2-tools-5.4.tar.gz/test/scripts/echo_tcti.py -> _service:tar_scm:tpm2-tools-5.5.tar.gz/test/scripts/echo_tcti.py
Changed
@@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # This TCTI is designed to use with the subprocess TCTI and echo the contents
View file
_service:tar_scm:tpm2-tools-5.4.tar.gz/tools/tpm2_createek.c -> _service:tar_scm:tpm2-tools-5.5.tar.gz/tools/tpm2_createek.c
Changed
@@ -18,6 +18,7 @@ #define RSA_EK_TEMPLATE_NV_INDEX 0x01c00004 #define ECC_EK_NONCE_NV_INDEX 0x01c0000b #define ECC_EK_TEMPLATE_NV_INDEX 0x01c0000c +#define ECC_SM2_EK_TEMPLATE_NV_INDEX 0x01c0001b #define DEFAULT_KEY_ALG "rsa2048" @@ -175,7 +176,8 @@ public->publicArea.authPolicy = *m->policy; if (public->publicArea.type == TPM2_ALG_ECC && - public->publicArea.parameters.eccDetail.curveID == TPM2_ECC_NIST_P256) { + (public->publicArea.parameters.eccDetail.curveID == TPM2_ECC_NIST_P256 || + public->publicArea.parameters.eccDetail.curveID == TPM2_ECC_SM2_P256)) { public->publicArea.unique.ecc.x.size = 32; public->publicArea.unique.ecc.y.size = 32; } else if (public->publicArea.type == TPM2_ALG_RSA && @@ -195,8 +197,17 @@ nonce_nv_index = RSA_EK_NONCE_NV_INDEX; break; case TPM2_ALG_ECC: - template_nv_index = ECC_EK_TEMPLATE_NV_INDEX; - nonce_nv_index = ECC_EK_NONCE_NV_INDEX; + if (input_public->publicArea.parameters.eccDetail.curveID == TPM2_ECC_NIST_P256) { + template_nv_index = ECC_EK_TEMPLATE_NV_INDEX; + nonce_nv_index = ECC_EK_NONCE_NV_INDEX; + } else if (input_public->publicArea.parameters.eccDetail.curveID == TPM2_ECC_SM2_P256) { + template_nv_index = ECC_SM2_EK_TEMPLATE_NV_INDEX; + // EK Nonces SHALL NOT be Populated in any NV Index in the High Range. + nonce_nv_index = 0; + } else { + template_nv_index = ECC_EK_TEMPLATE_NV_INDEX; + nonce_nv_index = ECC_EK_NONCE_NV_INDEX; + } break; default: LOG_ERR("EK template and EK nonce for algorithm type input(%4.4x)" @@ -228,11 +239,13 @@ // Read EK nonce UINT16 nonce_size = 0; - rc = tpm2_util_nv_read(ectx, nonce_nv_index, 0, 0, - &ctx.auth_owner_hierarchy.object, &nonce, &nonce_size, &cp_hash, - &rp_hash, TPM2_ALG_SHA256, 0, ESYS_TR_NONE, ESYS_TR_NONE, NULL); - if (rc != tool_rc_success) { - goto out; + if (nonce_nv_index) { + rc = tpm2_util_nv_read(ectx, nonce_nv_index, 0, 0, + &ctx.auth_owner_hierarchy.object, &nonce, &nonce_size, &cp_hash, + &rp_hash, TPM2_ALG_SHA256, 0, ESYS_TR_NONE, ESYS_TR_NONE, NULL); + if (rc != tool_rc_success) { + goto out; + } } if (input_public->publicArea.type == TPM2_ALG_RSA) { @@ -240,9 +253,11 @@ input_public->publicArea.unique.rsa.size = 256; } else { // ECC is only other supported algorithm - memcpy(&input_public->publicArea.unique.ecc.x.buffer, &nonce, nonce_size); - input_public->publicArea.unique.ecc.x.size = 32; - input_public->publicArea.unique.ecc.y.size = 32; + if (nonce_size) { + memcpy(&input_public->publicArea.unique.ecc.x.buffer, &nonce, nonce_size); + input_public->publicArea.unique.ecc.x.size = 32; + input_public->publicArea.unique.ecc.y.size = 32; + } } out: if (template) {
View file
_service:tar_scm:tpm2-tools-5.4.tar.gz/tools/tpm2_sessionconfig.c -> _service:tar_scm:tpm2-tools-5.5.tar.gz/tools/tpm2_sessionconfig.c
Changed
@@ -64,9 +64,6 @@ } tpm2_tool_output("Session-Handle: 0x%.8"PRIx32"\n", tpm_handle); - if (rc != tool_rc_success) { - return rc; - } bool is_attr_set = false; tpm2_tool_output("Session-Attributes: ");
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2