TSPI_HASH_VERIFYSIGNATURE(3)
π Tspi_Hash_VerifySignature(3) π
okay bestie so this is a page from the TCG Software Stack Developer's Reference, living in the Library Functions Manual, and it's literally the whole vibe of "did this signature actually come from who I think it did" π΅οΈβοΈβ¨
β¨ NAME β¨
Tspi_Hash_VerifySignature β verify the hash value with a given signature π
π SYNOPSIS π
#include <tss/platform.h>
#include <tss/tcpa_defines.h>
#include <tss/tcpa_typedef.h>
#include <tss/tcpa_struct.h>
#include <tss/tss_typedef.h>
#include <tss/tss_structs.h>
#include <tss/tspi.h>
TSS_RESULT Tspi_Hash_VerifySignature(TSS_HHASH hHash, TSS_HKEY hKey,
UINT32 ulSignatureLength, BYTE* rgbSignature);
πΈ DESCRIPTION πΈ
Tspi_Hash_VerifySignature checks a hash value from a given hash object against a given signature. no cap, that's the whole job π«Ά
so to actually use this command you need three things, and if you're missing any of them it's giving β¨nothingβ¨:
- a hash π
- a signature of that hash β the one you're trying to verify π
- the public key that corresponds to the private key that was used to sign the hash π
that's it. that's the trio. periodt π
π¦ PARAMETERS π¦
hHash
the handle to the hash object instance whose hash value should be signed π
hKey
handle to the key object that should be used for the signature verification π
ulSignatureLength
the length of the signature data you're handing over at the parameter rgbSignature π
rgbSignature
a pointer to the signature data ππ
π RETURN CODES π
Tspi_Hash_VerifySignature returns TSS_SUCCESS on success π otherwise one of these lil guys shows up:
TSS_E_INVALID_HANDLEβhKeyis not a valid handle πTSS_E_INTERNAL_ERRORβ an internal SW error has been detected π₯TSS_E_BAD_PARAMETERβ one or more parameters is bad πTSS_E_HASH_INVALID_LENGTHβ hash length is inconsistent with hash algorithm πβTSS_E_HASH_NO_DATAβ hash object has no internal hash value π«₯TSS_E_INVALID_SIGSCHEMEβ invalid signature scheme π«βοΈ
π CONFORMING TO π
Tspi_Hash_VerifySignature conforms to the Trusted Computing Group Software Specification version 1.1 Golden β iconic behavior honestly
π SEE ALSO π
and that's the page bestie π this was TSS 1.1, dated 2004-05-25 β yes she's an elder but she still ate π β¨ mwah, go verify those signatures π«Άπ
π¦ where this page comes from
- debian bookworm: libtspi-dev 0.3.15-0.3 Β· BSD-3-Clause
- debian trixie: libtspi-dev 0.3.15-0.4 Β· BSD-3-Clause
- epel 10: trousers-devel 0.3.15-11.el10_0 Β· BSD
- epel 9: trousers-devel 0.3.15-5.el9 Β· BSD
- fedora 43: trousers-devel 0.3.15-15.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-15.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-16.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-16.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: trousers-devel 0.3.15-17.fc44 Β· LicenseRef-Callaway-BSD
- fedora 44: trousers-devel 0.3.15-17.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: trousers 0.3.15
- nixpkgs unstable: netbsd-source 11.0
- nixpkgs unstable: trousers 0.3.15
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- ubuntu jammy: libtspi-dev 0.3.15-0.2 Β· BSD-3-Clause
- ubuntu noble: libtspi-dev 0.3.15-0.3build2 Β· BSD-3-Clause
- ubuntu questing: libtspi-dev 0.3.15-0.4
- ubuntu resolute: libtspi-dev 0.3.15-1 Β· BSD-3-Clause
- ubuntu stonking: libtspi-dev 0.3.15-1ubuntu2 Β· BSD-3-Clause
- Copyright (C) 2004 International Business Machines Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms