Tspi_TPM_DAA_Sign(3)
π Tspi_TPM_DAA_Sign(3) β¨
okay so bestie, this one's from the TCG Software Stack Developer's Reference (a.k.a. the Library Functions Manual crowd) and it's genuinely kind of iconic. it's all about making a DAA Signature that proves you own your DAA Credential. let's get into it π«Ά
πΈ NAME πΈ
Tspi_TPM_DAA_Sign β creates a DAA Signature that proofs ownership of the DAA Credential π
β SYNOPSIS β
#include <tss/tss_typedef.h>
#include <tss/tss_structs.h>
#include <tss/tspi.h>
TSS_RESULT Tspi_TPM_DAA_Sign(
TSS_HDAA hDAA,
TSS_HTPM hTPM,
TSS_HKEY hDaaCredential,
TSS_DAA_SELECTED_ATTRIB revealAttributes,
UINT32 verifierBaseNameLength,
BYTE* verifierBaseName,
UINT32 verifierNonceLength,
BYTE* verifierNonce,
TSS_DAA_SIGN_DATA signData,
TSS_DAA_SIGNATURE* daaSignature
);
no cap, that's ten parameters. she's high-maintenance but she delivers π
π¦ DESCRIPTION π¦
so Tspi_TPM_DAA_Sign creates a DAA Signature that proofs ownership of the DAA Credential, and it also includes a signature on either a public AIK or a message. both. the whole vibe. β¨
here's the tea π: if anonymity revocation is enabled, the value Nv is not provided in the clear anymore β instead it's encrypted under the public key of the anonymity revocation authority, which is a trusted third party (TTP). meaning the DAA Verifier literally cannot check for revocation or link a transaction/signature to prior ones. privacy? slayed. π
and depending on how it's chosen, the protocol either lets you implement anonymity revocation (i.e., using the DAA Issuer's long-term base name as the DAA Verifier's base name), or has the TTP doing the linking of different signatures for the same DAA Verifier (i.e., using the DAA Verifier's base name). iykyk π
π PARAMETERS π
okay bestie, buckle up, we're going through all ten π
π hDAA
the hDAA parameter is used to specify the handle of the DAA object.
π hTPM
the hTPM parameter is the handle to the TPM object.
π hDaaCredential
the hDaaCredential parameter is the Handle of the DAA Credential.
π revealAttributes
the revealAttributes parameter is the attributes which the credential owner wants to reveal to the DAA Verifier. choose wisely bestie, that's your business out there π
π verifierBaseNameLength
the verifierBaseNameLength parameter is the Length of verifierBaseName.
π verifierBaseName
the verifierBaseName parameter is the base name chosen by the DAA Verifier. if it equals to null, the platform chooses a random base name. surprise! π
π verifierNonceLength
the verifierNonceLength parameter is the length of verifierNonceName (20 bytes). yes, the manpage says verifierNonceName there β we're reporting it exactly as written, no editing, periodt π
π verifierNonce
the verifierNonce parameter is the nonce created by the DAA Verifier.
π signData
the signData parameter is the handle of the received DAA Credential.
π daaSignature
the daaSignature parameter is the DAA signature containing the proof of ownership of the DAA Credential, as well as a signature on either an AIK or a message.
π₯ RETURN CODES π₯
Tspi_TPM_DAA_Sign returns TSS_SUCCESS on success π β otherwise one of the following values is returned:
TSS_E_INVALID_HANDLEβ either the DAA or the TPM handler is not valid. check ur handles bestie πTSS_E_BAD_PARAMETERTSS_E_INTERNAL_ERRORβ an internal SW error has been detected. not her fault, it's giving internal π
heads up: TSS_E_BAD_PARAMETER is listed with no description attached in the original. so we're just gonna leave it there, mysterious and unbothered. π§
π CONFORMING TO π
Tspi_TPM_DAA_Sign conforms to the Trusted Computing Group Software Specification version 1.2 π
π SEE ALSO π
nothing else listed here, bestie β this one stands alone, main character energy fr fr β¨
and that's the whole page! love that for us. this little beauty is from TSS 1.2, dated 2006-09-04, and it lives at Tspi_TPM_DAA_Sign(3) β go forth and sign responsibly π¦π
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (C) 2006 International Business Machines Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms