Lines Matching refs:blob_size
185 if (*ret_buffer_size < tmp->blob_size) {
191 if ((rc = read_data(fd, ret_buffer, tmp->blob_size))) {
196 *ret_buffer_size = tmp->blob_size;
227 if (*ret_buffer_size < c->blob_size) {
230 c->blob_size, *ret_buffer_size);
234 if ((rc = read_data(fd, ret_buffer, c->blob_size))) {
235 LogError("%s: error reading %d bytes", __FUNCTION__, c->blob_size);
238 *ret_buffer_size = c->blob_size;
497 DBG_ASSERT(tmp->blob_size < 4096);
498 if (tmp->blob_size > sizeof(tmp_buffer)) {
500 tmp->blob_size);
506 if ((rc = read_data(fd, tmp_buffer, tmp->blob_size))) {
512 *ret_key = malloc(tmp->blob_size);
514 LogError("malloc of %d bytes failed.", tmp->blob_size);
519 memcpy(*ret_key, tmp_buffer, tmp->blob_size);
520 *size = tmp->blob_size;