Skip to content

tss2_sign: Add new parameter from which the digest is computed.#3570

Merged
JuergenReppSIT merged 1 commit into
tpm2-software:masterfrom
JuergenReppSIT:tss2-sign-add-digest-and-sign
Apr 8, 2026
Merged

tss2_sign: Add new parameter from which the digest is computed.#3570
JuergenReppSIT merged 1 commit into
tpm2-software:masterfrom
JuergenReppSIT:tss2-sign-add-digest-and-sign

Conversation

@JuergenReppSIT
Copy link
Copy Markdown
Member

@JuergenReppSIT JuergenReppSIT commented Mar 27, 2026

  • The parameter --data (-m) can be used to compute the digest from the
    this data if the new function Fapi_DigestAndSign is available.
  • Add conditional integration test depending on the FAPI version.

@JuergenReppSIT JuergenReppSIT force-pushed the tss2-sign-add-digest-and-sign branch 6 times, most recently from b0c01f7 to f546696 Compare March 27, 2026 10:08
@JuergenReppSIT JuergenReppSIT force-pushed the tss2-sign-add-digest-and-sign branch 3 times, most recently from a95c71d to 9d5db0e Compare March 28, 2026 18:23
* The parameter --data (-m) can be used to compute the digest from the
  this data if the new function Fapi_DigestAndSign is available.
* Add conditional integration test depending on the FAPI version.

Signed-off-by: Juergen Repp <juergen_repp@web.de>
@JuergenReppSIT JuergenReppSIT force-pushed the tss2-sign-add-digest-and-sign branch from 9d5db0e to 5c78cf6 Compare March 28, 2026 19:16
Comment thread configure.ac
AC_CHECK_LIB(crypto, [EVP_sm4_cfb128], [
AC_DEFINE([HAVE_EVP_SM4_CFB], [1], [Support EVP_sm4_cfb in openssl])],
[])
AC_CHECK_LIB(tss2-fapi, [Fapi_DigestAndSign], [
Copy link
Copy Markdown
Member

@AndreasFuchsTPM AndreasFuchsTPM Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we not just require tpm2-tss >=4.2 as minimum version instead ?
Makes it simpler...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we not just require tpm2-tss >=4.2 as minimum version instead ? Makes it simpler...

I added this check to enable the test with Fapi_DigestAndSign and the current TSS master in the CI.

@JuergenReppSIT JuergenReppSIT merged commit 2467d6f into tpm2-software:master Apr 8, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants