HomeSort by: relevance | last modified time | path
    Searched refs:hashCtx (Results 1 - 25 of 48) sorted by relevancy

1 2

  /src/crypto/external/cpl/trousers/dist/src/tspi/
tsp_get_flags.c 38 Trspi_HashCtx hashCtx;
44 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
45 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_GetCapabilityOwner);
46 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest)))
57 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
58 result |= Trspi_Hash_UINT32(&hashCtx, result);
59 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_GetCapabilityOwner);
60 result |= Trspi_Hash_VERSION(&hashCtx, (TSS_VERSION *)&version);
61 result |= Trspi_Hash_UINT32(&hashCtx, *nonVolFlags);
62 result |= Trspi_Hash_UINT32(&hashCtx, *volFlags)
    [all...]
tsp_ek.c 31 Trspi_HashCtx hashCtx;
46 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
47 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_OwnerReadInternalPub);
48 result |= Trspi_Hash_UINT32(&hashCtx, TPM_KH_EK);
49 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest)))
61 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
62 result |= Trspi_Hash_UINT32(&hashCtx, TPM_SUCCESS);
63 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_OwnerReadInternalPub);
64 result |= Trspi_HashUpdate(&hashCtx, pubEKSize, pubEK);
65 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest))
    [all...]
tspi_admin.c 36 Trspi_HashCtx hashCtx;
47 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
48 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_DisableOwnerClear);
49 if ((result |= Trspi_HashFinal(&hashCtx, hashDigest.digest)))
59 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
60 result |= Trspi_Hash_UINT32(&hashCtx, result);
61 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_DisableOwnerClear);
62 if ((result |= Trspi_HashFinal(&hashCtx, hashDigest.digest)))
73 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
74 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_OwnerSetDisable)
    [all...]
tspi_cmk.c 31 Trspi_HashCtx hashCtx;
42 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
43 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_CMK_SetRestrictions);
44 result |= Trspi_Hash_UINT32(&hashCtx, CmkDelegate);
45 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest)))
55 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
56 result |= Trspi_Hash_UINT32(&hashCtx, result);
57 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_CMK_SetRestrictions);
58 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest)))
77 Trspi_HashCtx hashCtx;
    [all...]
tspi_key.c 63 Trspi_HashCtx hashCtx;
88 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
89 result |= Trspi_Hash_UINT32(&hashCtx, ordinal);
90 result |= Trspi_HashUpdate(&hashCtx, keySize, keyBlob);
91 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest))) {
115 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
116 result |= Trspi_Hash_UINT32(&hashCtx, result);
117 result |= Trspi_Hash_UINT32(&hashCtx, ordinal);
119 result |= Trspi_Hash_UINT32(&hashCtx, keyslot);
120 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest))
    [all...]
tspi_nv.c 52 Trspi_HashCtx hashCtx;
125 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
126 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_NV_DefineSpace);
127 result |= Trspi_HashUpdate(&hashCtx, NVPublic_DataSize, NVPublicData);
128 result |= Trspi_Hash_ENCAUTH(&hashCtx, xsap->encAuthUse.authdata);
129 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest)))
140 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
141 result |= Trspi_Hash_UINT32(&hashCtx, TPM_SUCCESS);
142 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_NV_DefineSpace);
143 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest))
    [all...]
tspi_maint.c 38 Trspi_HashCtx hashCtx;
53 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
54 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_CreateMaintenanceArchive);
55 result |= Trspi_Hash_BYTE(&hashCtx, fGenerateRndNumber);
56 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest)))
70 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
71 result |= Trspi_Hash_UINT32(&hashCtx, result);
72 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_CreateMaintenanceArchive);
73 result |= Trspi_Hash_UINT32(&hashCtx, *pulRndNumberLength);
74 result |= Trspi_HashUpdate(&hashCtx, *pulRndNumberLength, *prgbRndNumber)
    [all...]
tspi_migration.c 44 Trspi_HashCtx hashCtx;
101 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
102 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_AuthorizeMigrationKey);
103 result |= Trspi_Hash_UINT16(&hashCtx, tpmMigrationScheme);
104 result |= Trspi_HashUpdate(&hashCtx, pubKeySize, pubKeyBlob);
105 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest)))
120 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
121 result |= Trspi_Hash_UINT32(&hashCtx, result);
122 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_AuthorizeMigrationKey);
123 result |= Trspi_HashUpdate(&hashCtx, *pulMigTicketLength, *prgbMigTicket)
    [all...]
tspi_dir.c 37 Trspi_HashCtx hashCtx;
54 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
55 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_DirWriteAuth);
56 result |= Trspi_Hash_UINT32(&hashCtx, ulDirIndex);
57 result |= Trspi_HashUpdate(&hashCtx, (UINT32)sizeof(TCPA_DIRVALUE), (BYTE *)&dirValue);
58 if ((result |= Trspi_HashFinal(&hashCtx, hashDigest.digest)))
69 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
70 result |= Trspi_Hash_UINT32(&hashCtx, result);
71 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_DirWriteAuth);
72 if ((result |= Trspi_HashFinal(&hashCtx, hashDigest.digest))
    [all...]
tsp_changeauth.c 83 Trspi_HashCtx hashCtx;
92 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
93 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_ChangeAuthOwner);
94 result |= Trspi_Hash_UINT16(&hashCtx, TCPA_PID_ADCP);
95 result |= Trspi_Hash_ENCAUTH(&hashCtx, xsap->encAuthUse.authdata);
96 result |= Trspi_Hash_UINT16(&hashCtx, TCPA_ET_OWNER);
97 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest)))
108 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
109 result |= Trspi_Hash_UINT32(&hashCtx, TPM_SUCCESS);
110 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_ChangeAuthOwner)
    [all...]
tspi_own.c 45 Trspi_HashCtx hashCtx;
83 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
84 result |= Trspi_Hash_UINT32(&hashCtx, result);
85 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_TakeOwnership);
86 result |= Trspi_HashUpdate(&hashCtx, newSrkBlobSize, newSrkBlob);
87 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest)))
125 Trspi_HashCtx hashCtx;
135 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
136 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_OwnerClear);
137 if ((result |= Trspi_HashFinal(&hashCtx, hashDigest.digest))
    [all...]
tsp_caps_tpm.c 38 Trspi_HashCtx hashCtx;
44 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
45 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_SetCapability);
46 result |= Trspi_Hash_UINT32(&hashCtx, tcsCapArea);
47 result |= Trspi_Hash_UINT32(&hashCtx, (UINT32)sizeof(UINT32));
48 result |= Trspi_HashUpdate(&hashCtx, (UINT32)sizeof(UINT32), (BYTE *)&subCap);
49 result |= Trspi_Hash_UINT32(&hashCtx, (UINT32)sizeof(TSS_BOOL));
50 result |= Trspi_Hash_BOOL(&hashCtx, value);
51 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest)))
63 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1)
    [all...]
tspi_seal.c 44 Trspi_HashCtx hashCtx;
122 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
123 result |= Trspi_Hash_UINT32(&hashCtx, sealOrdinal);
124 result |= Trspi_Hash_ENCAUTH(&hashCtx, xsap->encAuthUse.authdata);
125 result |= Trspi_Hash_UINT32(&hashCtx, pcrDataSize);
126 result |= Trspi_HashUpdate(&hashCtx, pcrDataSize, pcrData);
127 result |= Trspi_Hash_UINT32(&hashCtx, ulDataLength);
128 result |= Trspi_HashUpdate(&hashCtx, ulDataLength, sealData);
129 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest))) {
161 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1)
    [all...]
tspi_certify.c 48 Trspi_HashCtx hashCtx;
87 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
88 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_CertifyKey);
89 result |= Trspi_HashUpdate(&hashCtx, sizeof(antiReplay.nonce), antiReplay.nonce);
90 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest)))
118 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
119 result |= Trspi_Hash_UINT32(&hashCtx, result);
120 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_CertifyKey);
121 result |= Trspi_HashUpdate(&hashCtx, CertifyInfoSize, CertifyInfo);
122 result |= Trspi_Hash_UINT32(&hashCtx, outDataSize)
    [all...]
tspi_sign.c 40 Trspi_HashCtx hashCtx;
58 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
59 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_Sign);
60 result |= Trspi_Hash_UINT32(&hashCtx, ulDataLen);
61 result |= Trspi_HashUpdate(&hashCtx, ulDataLen, data);
62 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest)))
79 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
80 result |= Trspi_Hash_UINT32(&hashCtx, result);
81 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_Sign);
82 result |= Trspi_Hash_UINT32(&hashCtx, *pulSignatureLength)
    [all...]
tspi_changeauth.c 141 Trspi_HashCtx hashCtx;
196 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
197 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_ChangeAuthAsymStart);
198 result |= Trspi_HashUpdate(&hashCtx, TCPA_SHA1_160_HASH_LEN,
200 result |= Trspi_Hash_KEY_PARMS(&hashCtx, &keyParms);
201 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest)))
224 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
225 result |= Trspi_Hash_UINT32(&hashCtx, result);
226 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_ChangeAuthAsymStart);
227 result |= Trspi_HashUpdate(&hashCtx, CertifyInfoSize, CertifyInfo)
    [all...]
tsp_transport.c 41 Trspi_HashCtx hashCtx;
58 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
59 result |= Trspi_Hash_DIGEST(&hashCtx, pubKeyHash.digest);
60 if ((result |= Trspi_HashFinal(&hashCtx, pubKeyHash.digest)))
tspi_quote2.c 50 Trspi_HashCtx hashCtx;
96 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
97 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_Quote2);
98 result |= Trspi_HashUpdate(&hashCtx, TPM_SHA1_160_HASH_LEN, antiReplay.nonce);
99 result |= Trspi_HashUpdate(&hashCtx, pcrDataSize, pcrData);
100 result |= Trspi_Hash_BOOL(&hashCtx,fAddVersion);
101 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest)))
134 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
135 result |= Trspi_Hash_UINT32(&hashCtx, result);
136 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_Quote2)
    [all...]
tspi_selftest.c 57 Trspi_HashCtx hashCtx;
87 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
88 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_CertifySelfTest);
89 result |= Trspi_HashUpdate(&hashCtx, sizeof(TCPA_NONCE), antiReplay.nonce);
90 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest)))
108 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
109 result |= Trspi_Hash_UINT32(&hashCtx, result);
110 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_CertifySelfTest);
111 result |= Trspi_Hash_UINT32(&hashCtx, outDataSize);
112 result |= Trspi_HashUpdate(&hashCtx, outDataSize, outData)
    [all...]
tsp_own.c 49 Trspi_HashCtx hashCtx;
141 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
142 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_TakeOwnership);
143 result |= Trspi_Hash_UINT16(&hashCtx, TCPA_PID_OWNER);
144 result |= Trspi_Hash_UINT32(&hashCtx, *encOwnerAuthLength);
145 result |= Trspi_HashUpdate(&hashCtx, *encOwnerAuthLength, encOwnerAuth);
146 result |= Trspi_Hash_UINT32(&hashCtx, *encSRKAuthLength);
147 result |= Trspi_HashUpdate(&hashCtx, *encSRKAuthLength, encSRKAuth);
148 result |= Trspi_HashUpdate(&hashCtx, srkKeyBlobLength, srkKeyBlob);
150 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest))
    [all...]
obj_context.c 724 Trspi_HashCtx hashCtx;
811 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
812 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_EstablishTransport);
813 result |= Trspi_HashUpdate(&hashCtx, transPubLen, transPubBlob);
814 result |= Trspi_Hash_UINT32(&hashCtx, secretLen);
815 result |= Trspi_HashUpdate(&hashCtx, secretLen, secret);
816 if ((result |= Trspi_HashFinal(&hashCtx, context->transLogIn.parameters.digest)))
823 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
824 result |= Trspi_Hash_DIGEST(&hashCtx, context->transLogDigest.digest);
825 result |= Trspi_Hash_TRANSPORT_LOG_IN(&hashCtx, &context->transLogIn)
    [all...]
tsp_certify.c 42 Trspi_HashCtx hashCtx;
58 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
59 result |= Trspi_Hash_DIGEST(&hashCtx, pubKeyHash1.digest);
60 result |= Trspi_Hash_DIGEST(&hashCtx, pubKeyHash2.digest);
61 if ((result |= Trspi_HashFinal(&hashCtx, pubKeyHash1.digest)))
tsp_key.c 113 Trspi_HashCtx hashCtx;
124 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
125 result |= Trspi_Hash_DIGEST(&hashCtx, pubKeyHash.digest);
126 if ((result |= Trspi_HashFinal(&hashCtx, pubKeyHash.digest)))
151 Trspi_HashCtx hashCtx;
162 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
163 result |= Trspi_Hash_DIGEST(&hashCtx, pubKeyHash.digest);
164 if ((result |= Trspi_HashFinal(&hashCtx, pubKeyHash.digest)))
198 Trspi_HashCtx hashCtx;
211 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1)
    [all...]
tsp_audit.c 34 Trspi_HashCtx hashCtx;
60 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
61 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_SetOrdinalAuditStatus);
62 result |= Trspi_Hash_UINT32(&hashCtx, ulOrdinal);
63 result |= Trspi_Hash_BOOL(&hashCtx, bAuditState);
64 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest)))
75 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
76 result |= Trspi_Hash_UINT32(&hashCtx, result);
77 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_SetOrdinalAuditStatus);
78 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest))
    [all...]
tspi_quote.c 52 Trspi_HashCtx hashCtx;
86 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
87 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_Quote);
88 result |= Trspi_HashUpdate(&hashCtx, TPM_SHA1_160_HASH_LEN, antiReplay.nonce);
89 result |= Trspi_HashUpdate(&hashCtx, pcrDataSize, pcrData);
90 if ((result |= Trspi_HashFinal(&hashCtx, digest.digest)))
108 result = Trspi_HashInit(&hashCtx, TSS_HASH_SHA1);
109 result |= Trspi_Hash_UINT32(&hashCtx, result);
110 result |= Trspi_Hash_UINT32(&hashCtx, TPM_ORD_Quote);
111 result |= Trspi_HashUpdate(&hashCtx, pcrDataOutSize, pcrDataOut)
    [all...]

Completed in 726 milliseconds

1 2