Lines Matching refs:blob_size
183 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 > sizeof(tmp_buffer)) {
498 tmp->blob_size);
504 if ((rc = read_data(fd, tmp_buffer, tmp->blob_size))) {
510 *ret_key = malloc(tmp->blob_size);
512 LogError("malloc of %d bytes failed.", tmp->blob_size);
517 memcpy(*ret_key, tmp_buffer, tmp->blob_size);
518 *size = tmp->blob_size;