/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/ps/ |
H A D | ps_utils.c | 91 find_write_offset(UINT32 pub_data_size, UINT32 blob_size, UINT32 vendor_data_size) in find_write_offset() argument 103 tmp->blob_size == blob_size && in find_write_offset() 123 write_key_init(int fd, UINT32 pub_data_size, UINT32 blob_size, UINT32 vendor_data_size) in write_key_init() argument 184 offset = find_write_offset(pub_data_size, blob_size, vendor_data_size); in write_key_init() 224 UINT16 pub_data_size, UINT32 blob_size, in cache_key() argument 255 tmp->blob_size = blob_size; in cache_key() 423 if ((rc = read_data(fd, &tmp->blob_size, sizeof(UINT16)))) { in init_disk_cache() 427 tmp->blob_size = LE_16(tmp->blob_size); in init_disk_cache() 428 DBG_ASSERT(tmp->blob_size <= 4096 && tmp->blob_size > 0); in init_disk_cache() 460 if ((rc = read_data(fd, srk_blob, tmp->blob_size))) { in init_disk_cache() [all …]
|
H A D | tcsps.c | 185 if (*ret_buffer_size < tmp->blob_size) { in psfile_get_key_by_uuid() 191 if ((rc = read_data(fd, ret_buffer, tmp->blob_size))) { in psfile_get_key_by_uuid() 196 *ret_buffer_size = tmp->blob_size; in psfile_get_key_by_uuid() 227 if (*ret_buffer_size < c->blob_size) { in psfile_get_key_by_cache_entry() 230 c->blob_size, *ret_buffer_size); in psfile_get_key_by_cache_entry() 234 if ((rc = read_data(fd, ret_buffer, c->blob_size))) { in psfile_get_key_by_cache_entry() 235 LogError("%s: error reading %d bytes", __FUNCTION__, c->blob_size); in psfile_get_key_by_cache_entry() 238 *ret_buffer_size = c->blob_size; in psfile_get_key_by_cache_entry() 497 DBG_ASSERT(tmp->blob_size < 4096); in psfile_get_key_by_pub() 498 if (tmp->blob_size > sizeof(tmp_buffer)) { in psfile_get_key_by_pub() [all …]
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/ps/ |
H A D | tspps.c | 320 if (tmp.blob_size > 4096) { in psfile_get_key_by_uuid() 322 tmp.blob_size); in psfile_get_key_by_uuid() 325 if ((rc = read_data(fd, buf, tmp.blob_size))) { in psfile_get_key_by_uuid() 330 memcpy(key, buf, tmp.blob_size); in psfile_get_key_by_uuid() 358 if (tmp.blob_size > 4096) { in psfile_get_key_by_pub() 360 tmp.blob_size); in psfile_get_key_by_pub() 364 if ((result = read_data(fd, buf, tmp.blob_size))) { in psfile_get_key_by_pub() 369 memcpy(key, buf, tmp.blob_size); in psfile_get_key_by_pub() 740 if ((result = read_data(fd, &tmp[i].blob_size, sizeof(UINT16)))) { in psfile_get_all_cache_entries() 744 tmp[i].blob_size = LE_16(tmp[i].blob_size); in psfile_get_all_cache_entries() [all …]
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/ |
H A D | tcs_key_ps.c | 249 ps_get_key_by_uuid(TSS_UUID *uuid, BYTE *blob, UINT16 *blob_size) in ps_get_key_by_uuid() argument 257 rc = psfile_get_key_by_uuid(fd, uuid, blob, blob_size); in ps_get_key_by_uuid() 264 ps_get_key_by_cache_entry(struct key_disk_cache *c, BYTE *blob, UINT16 *blob_size) in ps_get_key_by_cache_entry() argument 272 rc = psfile_get_key_by_cache_entry(fd, c, blob, blob_size); in ps_get_key_by_cache_entry() 343 UINT32 vendor_size, BYTE *blob, UINT32 blob_size) in ps_write_key() argument 348 UINT16 short_blob_size = (UINT16)blob_size; in ps_write_key()
|
H A D | tcs_key.c | 142 UINT32 blob_size, in load_key_init() argument
|
H A D | tcs_pbg.c | 932 UINT64 blob_size; in tpm_rqu_build() local 1465 blob_size = in_len1 + in_len2 + TPM_DIGEST_SIZE + sizeof(TPM_AUTH); in tpm_rqu_build() 1466 if (blob_size > TSS_TPM_TXBLOB_SIZE) { in tpm_rqu_build()
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/ |
H A D | tsp_ps.c | 112 ps_write_key(TSS_UUID *uuid, TSS_UUID *parent_uuid, UINT32 parent_ps, UINT32 blob_size, BYTE *blob) in ps_write_key() argument 116 UINT16 short_blob_size = (UINT16)blob_size; in ps_write_key() 118 if (blob_size > USHRT_MAX) { in ps_write_key() 119 LogError("Blob data being written to disk is too large(%u bytes)!", blob_size); in ps_write_key()
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/include/ |
H A D | tcs_tsp.h | 54 UINT16 blob_size; member 77 … * sizeof(TSS_UUID)) + (3 * sizeof(UINT16)) + sizeof(UINT32) + (c)->pub_data_size + (c)->blob_size)
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/scripts/ |
H A D | sancov.py | 118 pid, module_length, blob_size = struct.unpack('iII', header) 120 blob = f.read(blob_size) 122 assert(len(blob) == blob_size)
|
/netbsd-src/sys/external/bsd/drm2/dist/drm/ |
H A D | drm_plane.c | 96 size_t blob_size, formats_size, modifiers_size; in create_in_format_blob() local 109 blob_size = sizeof(struct drm_format_modifier_blob); in create_in_format_blob() 114 blob_size += round_up(formats_size, 8); in create_in_format_blob() 115 blob_size += modifiers_size; in create_in_format_blob() 117 blob = drm_property_create_blob(dev, blob_size, NULL); in create_in_format_blob()
|