Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tspi_hash_sethashvalue(3) [centos man page]

Tspi_Hash_SetHashValue(3)				     Library Functions Manual					 Tspi_Hash_SetHashValue(3)

						     TCG Software Stack Developer's Reference

NAME
Tspi_Hash_SetHashValue - Sets the hash value of a hash object for non-SHA1 hash objects. 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_SetHashValue(TSS_HHASH hHash, UINT32 ulHashValueLength, BYTE* rgbHashValue); DESCRIPTION
Tspi_Hash_SetHashValue sets the hash value of a hash object. If the object was created with the flag TSS_HASH_OTHER, then the hash identi- fier has to be set by calling Tspi_SetAttribData to perform the sign operation. PARAMETERS
hHash The handle to the hash object instance whose hash value should be signed. ulHashValueLength Indicates the length of the hash value data provided at the parameter rgbHashValue. rgbHashValue A pointer to the hash value data. RETURN CODES
Tspi_Hash_SetHashValue returns TSS_SUCCESS on success, otherwise one of the following values is returned: TSS_E_INVALID_HANDLE hHash is 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. CONFORMING TO
Tspi_Hash_SetHashValue conforms to the Trusted Computing Group Software Specification version 1.1 Golden SEE ALSO
Tspi_Hash_UpdateHash(3), Tspi_Hash_Sign(3), Tspi_Hash_GetHashValue(3). TSS 1.1 2004-05-25 Tspi_Hash_SetHashValue(3)

Check Out this Related Man Page

Tspi_Hash_GetHashValue(3)				     Library Functions Manual					 Tspi_Hash_GetHashValue(3)

						     TCG Software Stack Developer's Reference

NAME
Tspi_Hash_GetHashValue - get the current 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_GetHashValue(TSS_HHASH hHash, UINT32* pulHashValueLength, BYTE** prgbHashValue); DESCRIPTION
Tspi_Hash_GetHashValue gets the hash value of a hash object. Tspi_Context_FreeMemory must be used to clean up after this function, as memo- ry is allocated for the prgbHashValue data. PARAMETERS
hHash The handle to the hash object instance whose hash value should be signed. pulHashValueLength Receives the length of the hash value data returned at the parameter prgbHashValue. prgbHashValue Receives a pointer to the hash value data. RETURN CODES
Tspi_Hash_GetHashValue returns TSS_SUCCESS on success, otherwise one of the following values is returned: TSS_E_INVALID_HANDLE hHash is 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. CONFORMING TO
Tspi_Hash_GetHashValue conforms to the Trusted Computing Group Software Specification version 1.1 Golden SEE ALSO
Tspi_Hash_UpdateHash(3), Tspi_Hash_Sign(3), Tspi_Hash_VerifySignature(3), Tspi_Hash_SetHashValue(3). TSS 1.1 2004-05-25 Tspi_Hash_GetHashValue(3)
Man Page

7 More Discussions You Might Find Interesting

1. Programming

C library

Does anybody know are there free C library that implements most features of C++ standard library? e.g. I've used Berkeley in-memory db as maps (hash) but this isn't sufficient (7 Replies)
Discussion started by: Hitori
7 Replies

2. Shell Programming and Scripting

perl adding items to a hash

how would you go about taking a user's input and adding it to a hash? i'd also like it to permanently add the input to the hash. not just in the ram, add it into the script! :eek: (17 Replies)
Discussion started by: andrew2325
17 Replies

3. Shell Programming and Scripting

Need explanation on Anonymous hash in PERL!!

Hi, I have doubt regarding the Anonymous hash. For creating a object we are generally using Anonymous hash. My Doubt is: Why we are only using Anonymous hash?? Instead of Anonymous hash can we use global hash variable and take its reference for creating an object using same bless function??... (0 Replies)
Discussion started by: jatanig
0 Replies

4. Programming

SHA1 hash calculation

hi i want to generate SHA1 hash of string in Linux (atmark) and downloaded the XYSSL-0.9 version code for the same.i have the algorithm which takes file as argument and returns hash of file . And of same file while I generated the key using online tools then it doesn't match with my compiled... (4 Replies)
Discussion started by: ahsaas42
4 Replies

5. Shell Programming and Scripting

Regarding anonymous hash in PERL

Hi, I have doubt regarding the Anonymous hash. For creating a object we are generally using Anonymous hash. My Doubt is: Why we are only using Anonymous hash?? Instead of Anonymous hash can we use global hash variable and take its reference for creating an object using same bless function??... (0 Replies)
Discussion started by: jatanig
0 Replies

6. Shell Programming and Scripting

PERL : Group & Sum in hash

Hi, I have a hash which is to be populated by reading data lines from a flat file. I am supposed to read fields 1-5 from the file and load them on to the hash such that fields 1-4 are going to be the hash key-set and field 5 is the hash value. Field 5 is a monetary amount and is supposed... (1 Reply)
Discussion started by: sinpeak
1 Replies

7. Shell Programming and Scripting

Sort a hash based on the string length of the values

Hi, I want to be able to sort/print a hash based on the string length of the values. For example %hash = ( key1 => 'jeri', key2 => 'corona', key3 => 'una, ); I want to be able to print in the following order (smallest to largest) una,jeri,corona OR... (1 Reply)
Discussion started by: jdilts
1 Replies