Lines Matching defs:blobSize
93 obj_migdata_set_migrationblob(TSS_HMIGDATA hMigData, UINT32 whichOne, UINT32 blobSize, BYTE *blob)
99 result = obj_migdata_set_msa_pubkey(hMigData, blobSize, blob);
102 result = obj_migdata_set_ma_pubkey(hMigData, blobSize, blob);
105 result = obj_migdata_set_dest_pubkey(hMigData, blobSize, blob);
108 result = obj_migdata_set_src_pubkey(hMigData, blobSize, blob);
118 obj_migdata_get_migrationblob(TSS_HMIGDATA hMigData, UINT32 whichOne, UINT32 *blobSize, BYTE **blob)
124 result = obj_migdata_get_blob(hMigData, blobSize, blob);
134 obj_migdata_set_authoritydata(TSS_HMIGDATA hMigData, UINT32 whichOne, UINT32 blobSize, BYTE *blob)
140 result = obj_migdata_set_msa_digest(hMigData, blobSize, blob);
143 result = obj_migdata_set_msa_hmac(hMigData, blobSize, blob);
146 result = obj_migdata_set_msa_list(hMigData, blobSize, blob);
156 obj_migdata_get_authoritydata(TSS_HMIGDATA hMigData, UINT32 whichOne, UINT32 *blobSize, BYTE **blob)
162 result = obj_migdata_get_msa_digest(hMigData, blobSize, blob);
165 result = obj_migdata_get_msa_hmac(hMigData, blobSize, blob);
168 result = obj_migdata_get_msa_list(hMigData, blobSize, blob);
178 obj_migdata_set_migauthdata(TSS_HMIGDATA hMigData, UINT32 whichOne, UINT32 blobSize, BYTE *blob)
184 result = obj_migdata_set_ma_digest(hMigData, blobSize, blob);
187 result = obj_migdata_set_dest_digest(hMigData, blobSize, blob);
190 result = obj_migdata_set_src_digest(hMigData, blobSize, blob);
200 obj_migdata_get_migauthdata(TSS_HMIGDATA hMigData, UINT32 whichOne, UINT32 *blobSize, BYTE **blob)
206 result = obj_migdata_get_ma_digest(hMigData, blobSize, blob);
209 result = obj_migdata_get_dest_digest(hMigData, blobSize, blob);
212 result = obj_migdata_get_src_digest(hMigData, blobSize, blob);
222 obj_migdata_set_ticketdata(TSS_HMIGDATA hMigData, UINT32 whichOne, UINT32 blobSize, BYTE *blob)
228 result = obj_migdata_set_sig_data(hMigData, blobSize, blob);
231 result = obj_migdata_set_sig_value(hMigData, blobSize, blob);
234 result = obj_migdata_set_sig_ticket(hMigData, blobSize, blob);
237 result = obj_migdata_set_cmk_auth(hMigData, blobSize, blob);
247 obj_migdata_get_ticketdata(TSS_HMIGDATA hMigData, UINT32 whichOne, UINT32 *blobSize, BYTE **blob)
253 result = obj_migdata_get_sig_ticket(hMigData, blobSize, blob);
392 obj_migdata_set_msa_pubkey(TSS_HMIGDATA hMigData, UINT32 blobSize, BYTE *pubKeyBlob)
406 if ((result = obj_migdata_calc_pubkey_digest(blobSize, pubKeyBlob, &msaDigest)))
478 obj_migdata_get_msa_list_blob(TSS_HMIGDATA hMigData, UINT32 *blobSize, BYTE **msaListBlob)
493 *blobSize = offset;
494 if ((*msaListBlob = calloc_tspi(obj->tspContext, *blobSize)) == NULL) {
495 LogError("malloc of %u bytes failed.", *blobSize);
559 obj_migdata_set_ma_pubkey(TSS_HMIGDATA hMigData, UINT32 blobSize, BYTE *pubKeyBlob)
571 if ((result = obj_migdata_calc_pubkey_digest(blobSize, pubKeyBlob, &pubKeyDigest)))
637 obj_migdata_set_dest_pubkey(TSS_HMIGDATA hMigData, UINT32 blobSize, BYTE *pubKeyBlob)
649 if ((result = obj_migdata_calc_pubkey_digest(blobSize, pubKeyBlob, &pubKeyDigest)))
715 obj_migdata_set_src_pubkey(TSS_HMIGDATA hMigData, UINT32 blobSize, BYTE *pubKeyBlob)
727 if ((result = obj_migdata_calc_pubkey_digest(blobSize, pubKeyBlob, &pubKeyDigest)))
845 obj_migdata_get_cmk_auth_blob(TSS_HMIGDATA hMigData, UINT32 *blobSize, BYTE **cmkAuthBlob)
861 *blobSize = offset;
862 if ((*cmkAuthBlob = calloc_tspi(obj->tspContext, *blobSize)) == NULL) {
863 LogError("malloc of %u bytes failed.", *blobSize);
1031 obj_migdata_set_blob(TSS_HMIGDATA hMigData, UINT32 blobSize, BYTE *blob)
1042 migdata->blobSize = 0;
1044 if ((migdata->blob = malloc(blobSize)) == NULL) {
1045 LogError("malloc of %u bytes failed.", blobSize);
1049 memcpy(migdata->blob, blob, blobSize);
1050 migdata->blobSize = blobSize;
1059 obj_migdata_get_blob(TSS_HMIGDATA hMigData, UINT32 *blobSize, BYTE **blob)
1070 if ((*blob = calloc_tspi(obj->tspContext, migdata->blobSize)) == NULL) {
1071 LogError("malloc of %u bytes failed.", migdata->blobSize);
1075 memcpy(*blob, migdata->blob, migdata->blobSize);
1076 *blobSize = migdata->blobSize;
1086 obj_migdata_calc_pubkey_digest(UINT32 blobSize, BYTE *blob, TPM_DIGEST *digest)
1092 result |= Trspi_HashUpdate(&hashCtx, blobSize, blob);