Lines Matching refs:buf_ptr

342 static bool deserialize(keymaster_key_param_t* param, const uint8_t** buf_ptr, const uint8_t* end,  in deserialize()  argument
344 if (!copy_uint32_from_buf(buf_ptr, end, &param->tag)) return false; in deserialize()
351 return copy_uint32_from_buf(buf_ptr, end, &param->enumerated); in deserialize()
354 return copy_uint32_from_buf(buf_ptr, end, &param->integer); in deserialize()
357 return copy_uint64_from_buf(buf_ptr, end, &param->long_integer); in deserialize()
359 return copy_uint64_from_buf(buf_ptr, end, &param->date_time); in deserialize()
362 if (*buf_ptr < end) { in deserialize()
363 uint8_t temp = **buf_ptr; in deserialize()
368 (*buf_ptr)++; in deserialize()
377 if (!copy_uint32_from_buf(buf_ptr, end, &param->blob.data_length) || in deserialize()
378 !copy_uint32_from_buf(buf_ptr, end, &offset)) in deserialize()
418 bool AuthorizationSet::DeserializeIndirectData(const uint8_t** buf_ptr, const uint8_t* end) { in DeserializeIndirectData() argument
420 if (!copy_size_and_data_from_buf(buf_ptr, end, &indirect_data_size_, &indirect_buf)) { in DeserializeIndirectData()
429 bool AuthorizationSet::DeserializeElementsData(const uint8_t** buf_ptr, const uint8_t* end) { in DeserializeElementsData() argument
432 if (!copy_uint32_from_buf(buf_ptr, end, &elements_count) || in DeserializeElementsData()
433 !copy_uint32_from_buf(buf_ptr, end, &elements_size)) { in DeserializeElementsData()
448 if (static_cast<ptrdiff_t>(elements_size) > end - *buf_ptr || in DeserializeElementsData()
463 const uint8_t* elements_end = *buf_ptr + elements_size; in DeserializeElementsData()
465 if (!deserialize(elems_ + i, buf_ptr, elements_end, indirect_data_, indirect_end)) { in DeserializeElementsData()
474 if (*buf_ptr != elements_end) { in DeserializeElementsData()
484 bool AuthorizationSet::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
487 if (!DeserializeIndirectData(buf_ptr, end) || !DeserializeElementsData(buf_ptr, end)) in Deserialize()