TSPI_HASH_UPDATEHASHVALUE(3)
β¨ Tspi_Hash_UpdateHashValue β¨
okay bestie, welcome to the TCG Software Stack Developer's Reference π this one's a page from the Library Functions Manual, and it's all about feeding fresh data into a hash object. pull up a chair, we're getting into it π«Ά
πΈ NAME πΈ
Tspi_Hash_UpdateHashValue β update the hash value of a hash object
π¦ 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_UpdateHashValue(TSS_HHASH hHash, UINT32 ulDataLength, BYTE* rgbData);
like yes, that's seven whole includes, she's thorough π
π DESCRIPTION π
so Tspi_Hash_UpdateHashValue does exactly what it says on the tin: it updates the hash value of a hash object with new information. feeding the girlie some fresh data, love that for her β¨
BUT. big but. if the object was created with the flag TSS_HASH_OTHER, this method will return an error. so sorry bestie, that door is closed π
also, and this is the important part β the object can't be modified after any of these have been called on it:
Tspi_Hash_SetHashValueTspi_Hash_GetHashValueTspi_Hash_SignTspi_Hash_VerifySignature
once one of those has touched it, she's locked in. no takebacks, no edits, periodt π
π PARAMETERS π
π hHash
The handle to the hash object instance whose hash value should be signed.
π ulDataLength
Indicates the length of the data provided at the parameter rgbData.
π rgbData
A pointer to the data.
β RETURN CODES β
Tspi_Hash_UpdateHashValue returns TSS_SUCCESS on success β slay π
β otherwise one of the following values is returned:
TSS_E_INVALID_HANDLEβhHashis not a valid handle. bestie that's not a real one πTSS_E_INTERNAL_ERRORβ An internal SW error has been detected. not our fault, the internals are going through it πTSS_E_BAD_PARAMETERβ One or more parameters is bad. she's just not that girl πTSS_E_HASH_INVALID_LENGTHβ Hash length is inconsistent with hash algorithm.TSS_E_HASH_NO_DATAβ Hash object has no internal hash value. empty. void. nothing there π«₯
π CONFORMING TO π
Tspi_Hash_UpdateHashValue conforms to the Trusted Computing Group Software Specification version 1.1 Golden β¨ certified icon behaviour, no cap.
π§ SEE ALSO π§
Tspi_Hash_GetHashValue(3), Tspi_Hash_Sign(3), Tspi_Hash_SetHashValue(3), Tspi_Hash_VerifySignature(3).
the whole friend group fr fr, go say hi π
okay that's the whole page bestie!! this was TSS 1.1, dated 2004-05-25, and yes she's an elder but she still eats π₯ mwah, go hash something responsibly πβ¨
π¦ 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