Searched refs:blob_size (Results 1 - 10 of 10) sorted by relevance

/netbsd-6-1-5-RELEASE/crypto/external/cpl/trousers/dist/tools/
H A Dps_inspect.c108 UINT16 pub_data_size, blob_size, cache_flags; local
118 blob_size = *(UINT16 *)&buf[(2 * sizeof(TSS_UUID)) + sizeof(UINT16)];
122 PRINT("blob_size%d: %hu\n", i, blob_size);
126 if ((members = fread(buf, pub_data_size + blob_size,
136 print_hex(&buf[pub_data_size], blob_size);
144 UINT16 pub_data_size, blob_size, cache_flags; local
155 blob_size = *(UINT16 *)&buf[(2 * sizeof(TSS_UUID)) + sizeof(UINT16)];
160 PRINT("blob_size%d: %hu\n", i, blob_size);
[all...]
H A Dps_convert.c105 UINT16 pub_data_size, blob_size, cache_flags; local
114 blob_size = *(UINT16 *)&buf[(2 * sizeof(TSS_UUID)) + sizeof(UINT16)];
118 OUT(out, &blob_size, sizeof(UINT16));
123 if ((members = fread(buf, pub_data_size + blob_size,
130 OUT(out, &buf[pub_data_size], blob_size);
/netbsd-6-1-5-RELEASE/crypto/external/cpl/trousers/dist/src/tcs/ps/
H A Dps_utils.c97 find_write_offset(UINT32 pub_data_size, UINT32 blob_size, UINT32 vendor_data_size) argument
109 tmp->blob_size == blob_size &&
129 write_key_init(int fd, UINT32 pub_data_size, UINT32 blob_size, UINT32 vendor_data_size) argument
190 offset = find_write_offset(pub_data_size, blob_size, vendor_data_size);
230 UINT16 pub_data_size, UINT32 blob_size,
261 tmp->blob_size = blob_size;
429 if ((rc = read_data(fd, &tmp->blob_size, sizeof(UINT16)))) {
433 tmp->blob_size
228 cache_key(UINT32 offset, UINT16 flags, TSS_UUID *uuid, TSS_UUID *parent_uuid, UINT16 pub_data_size, UINT32 blob_size, UINT32 vendor_data_size) argument
[all...]
H A Dtcsps.c183 if (*ret_buffer_size < tmp->blob_size) {
189 if ((rc = read_data(fd, ret_buffer, tmp->blob_size))) {
194 *ret_buffer_size = tmp->blob_size;
225 if (*ret_buffer_size < c->blob_size) {
228 c->blob_size, *ret_buffer_size);
232 if ((rc = read_data(fd, ret_buffer, c->blob_size))) {
233 LogError("%s: error reading %d bytes", __FUNCTION__, c->blob_size);
236 *ret_buffer_size = c->blob_size;
495 DBG_ASSERT(tmp->blob_size < 4096);
496 if (tmp->blob_size > sizeo
[all...]
/netbsd-6-1-5-RELEASE/crypto/external/cpl/trousers/dist/src/include/
H A Dtcs_tsp.h54 UINT16 blob_size; member in struct:key_disk_cache
77 #define TSSPS_VENDOR_DATA_OFFSET(c) ((c)->offset + (2 * sizeof(TSS_UUID)) + (3 * sizeof(UINT16)) + sizeof(UINT32) + (c)->pub_data_size + (c)->blob_size)
/netbsd-6-1-5-RELEASE/crypto/external/cpl/trousers/dist/src/tspi/ps/
H A Dtspps.c318 if (tmp.blob_size > 4096) {
320 tmp.blob_size);
323 if ((rc = read_data(fd, buf, tmp.blob_size))) {
328 memcpy(key, buf, tmp.blob_size);
356 if (tmp.blob_size > 4096) {
358 tmp.blob_size);
362 if ((result = read_data(fd, buf, tmp.blob_size))) {
367 memcpy(key, buf, tmp.blob_size);
738 if ((result = read_data(fd, &tmp[i].blob_size, sizeof(UINT16)))) {
742 tmp[i].blob_size
[all...]
/netbsd-6-1-5-RELEASE/crypto/external/cpl/trousers/dist/src/tcs/
H A Dtcs_key_ps.c249 ps_get_key_by_uuid(TSS_UUID *uuid, BYTE *blob, UINT16 *blob_size) argument
257 rc = psfile_get_key_by_uuid(fd, uuid, blob, blob_size);
264 ps_get_key_by_cache_entry(struct key_disk_cache *c, BYTE *blob, UINT16 *blob_size) argument
272 rc = psfile_get_key_by_cache_entry(fd, c, blob, blob_size);
343 UINT32 vendor_size, BYTE *blob, UINT32 blob_size)
348 UINT16 short_blob_size = (UINT16)blob_size;
342 ps_write_key(TSS_UUID *uuid, TSS_UUID *parent_uuid, BYTE *vendor_data, UINT32 vendor_size, BYTE *blob, UINT32 blob_size) argument
H A Dtcs_key.c142 UINT32 blob_size,
139 load_key_init(TPM_COMMAND_CODE ord, TCS_CONTEXT_HANDLE hContext, TCS_KEY_HANDLE parent_handle, UINT32 blob_size, BYTE* blob, TSS_BOOL encrypted, TPM_AUTH* auth, TSS_BOOL* load_key, UINT64* out_len, BYTE* out, TCS_KEY_HANDLE* handle, TPM_KEY_HANDLE* slot) argument
H A Dtcs_pbg.c919 UINT64 blob_size; local
1452 blob_size = in_len1 + in_len2 + TPM_DIGEST_SIZE + sizeof(TPM_AUTH);
1453 if (blob_size > TSS_TPM_TXBLOB_SIZE) {
/netbsd-6-1-5-RELEASE/crypto/external/cpl/trousers/dist/src/tspi/
H A Dtsp_ps.c112 ps_write_key(TSS_UUID *uuid, TSS_UUID *parent_uuid, UINT32 parent_ps, UINT32 blob_size, BYTE *blob) argument
116 UINT16 short_blob_size = (UINT16)blob_size;
118 if (blob_size > USHRT_MAX) {
119 LogError("Blob data being written to disk is too large(%u bytes)!", blob_size);

Completed in 136 milliseconds