Home
last modified time | relevance | path

Searched refs:pub_data_size (Results 1 – 4 of 4) sorted by relevance

/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/ps/
H A Dps_utils.c91 find_write_offset(UINT32 pub_data_size, UINT32 blob_size, UINT32 vendor_data_size) in find_write_offset() argument
102 tmp->pub_data_size == pub_data_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
256 tmp->pub_data_size = pub_data_size; in cache_key()
414 if ((rc = read_data(fd, &tmp->pub_data_size, sizeof(UINT16)))) { in init_disk_cache()
418 tmp->pub_data_size = LE_16(tmp->pub_data_size); in init_disk_cache()
420 DBG_ASSERT(tmp->pub_data_size <= 2048 && tmp->pub_data_size > 0); in init_disk_cache()
449 offset = lseek(fd, tmp->pub_data_size, SEEK_CUR); in init_disk_cache()
H A Dtcsps.c319 if (pub->keyLength != tmp->pub_data_size || !(tmp->flags & CACHE_FLAG_VALID)) { in psfile_is_pub_registered()
337 DBG_ASSERT(tmp->pub_data_size < 2048); in psfile_is_pub_registered()
340 if ((rc = read_data(fd, tmp_buffer, tmp->pub_data_size))) { in psfile_is_pub_registered()
347 if (memcmp(tmp_buffer, pub->key, tmp->pub_data_size)) { in psfile_is_pub_registered()
378 if (pub->keyLength != tmp->pub_data_size || !(tmp->flags & CACHE_FLAG_VALID)) { in psfile_get_uuid_by_pub()
396 DBG_ASSERT(tmp->pub_data_size < 2048); in psfile_get_uuid_by_pub()
398 if (tmp->pub_data_size > sizeof(tmp_buffer)) { in psfile_get_uuid_by_pub()
400 tmp->pub_data_size); in psfile_get_uuid_by_pub()
405 if ((rc = read_data(fd, tmp_buffer, tmp->pub_data_size))) { in psfile_get_uuid_by_pub()
412 if (memcmp(tmp_buffer, pub->key, tmp->pub_data_size)) { in psfile_get_uuid_by_pub()
[all …]
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/ps/
H A Dtspps.c731 if ((result = read_data(fd, &tmp[i].pub_data_size, sizeof(UINT16)))) { in psfile_get_all_cache_entries()
735 tmp[i].pub_data_size = LE_16(tmp[i].pub_data_size); in psfile_get_all_cache_entries()
737 DBG_ASSERT(tmp[i].pub_data_size <= 2048); in psfile_get_all_cache_entries()
763 offset = lseek(fd, tmp[i].pub_data_size, SEEK_CUR); in psfile_get_all_cache_entries()
1161 if ((result = read_data(fd, &c->pub_data_size, sizeof(UINT16)))) { in psfile_get_cache_entry_by_uuid()
1165 c->pub_data_size = LE_16(c->pub_data_size); in psfile_get_cache_entry_by_uuid()
1166 DBG_ASSERT(c->pub_data_size <= 2048 && c->pub_data_size > 0); in psfile_get_cache_entry_by_uuid()
1191 offset = lseek(fd, c->pub_data_size, SEEK_CUR); in psfile_get_cache_entry_by_uuid()
1251 if ((result = read_data(fd, &c->pub_data_size, sizeof(UINT16)))) { in psfile_get_cache_entry_by_pub()
1256 c->pub_data_size = LE_16(c->pub_data_size); in psfile_get_cache_entry_by_pub()
[all …]
/netbsd-src/crypto/external/cpl/trousers/dist/src/include/
H A Dtcs_tsp.h53 UINT16 pub_data_size; member
76 …((c)->offset + (2 * sizeof(TSS_UUID)) + (3 * sizeof(UINT16)) + sizeof(UINT32) + (c)->pub_data_size)
77 …(2 * sizeof(TSS_UUID)) + (3 * sizeof(UINT16)) + sizeof(UINT32) + (c)->pub_data_size + (c)->blob_si…