Lines Matching refs:buf_ptr
349 static bool deserialize(keymaster_key_param_t* param, const uint8_t** buf_ptr, const uint8_t* end, in deserialize() argument
351 if (!copy_uint32_from_buf(buf_ptr, end, ¶m->tag)) return false; in deserialize()
358 return copy_uint32_from_buf(buf_ptr, end, ¶m->enumerated); in deserialize()
361 return copy_uint32_from_buf(buf_ptr, end, ¶m->integer); in deserialize()
364 return copy_uint64_from_buf(buf_ptr, end, ¶m->long_integer); in deserialize()
366 return copy_uint64_from_buf(buf_ptr, end, ¶m->date_time); in deserialize()
369 if (*buf_ptr < end) { in deserialize()
370 uint8_t temp = **buf_ptr; in deserialize()
375 (*buf_ptr)++; in deserialize()
384 if (!copy_uint32_from_buf(buf_ptr, end, ¶m->blob.data_length) || in deserialize()
385 !copy_uint32_from_buf(buf_ptr, end, &offset)) in deserialize()
425 bool AuthorizationSet::DeserializeIndirectData(const uint8_t** buf_ptr, const uint8_t* end) { in DeserializeIndirectData() argument
427 if (!copy_size_and_data_from_buf(buf_ptr, end, &indirect_data_size_, &indirect_buf)) { in DeserializeIndirectData()
436 bool AuthorizationSet::DeserializeElementsData(const uint8_t** buf_ptr, const uint8_t* end) { in DeserializeElementsData() argument
439 if (!copy_uint32_from_buf(buf_ptr, end, &elements_count) || in DeserializeElementsData()
440 !copy_uint32_from_buf(buf_ptr, end, &elements_size)) { in DeserializeElementsData()
455 if (static_cast<ptrdiff_t>(elements_size) > end - *buf_ptr || in DeserializeElementsData()
470 const uint8_t* elements_end = *buf_ptr + elements_size; in DeserializeElementsData()
472 if (!deserialize(elems_ + i, buf_ptr, elements_end, indirect_data_, indirect_end)) { in DeserializeElementsData()
481 if (*buf_ptr != elements_end) { in DeserializeElementsData()
491 bool AuthorizationSet::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
494 if (!DeserializeIndirectData(buf_ptr, end) || !DeserializeElementsData(buf_ptr, end)) in Deserialize()