Lines Matching refs:buf_ptr
340 static bool deserialize(keymaster_key_param_t* param, const uint8_t** buf_ptr, const uint8_t* end,
342 if (!copy_uint32_from_buf(buf_ptr, end, ¶m->tag))
350 return copy_uint32_from_buf(buf_ptr, end, ¶m->enumerated);
353 return copy_uint32_from_buf(buf_ptr, end, ¶m->integer);
356 return copy_uint64_from_buf(buf_ptr, end, ¶m->long_integer);
358 return copy_uint64_from_buf(buf_ptr, end, ¶m->date_time);
361 if (*buf_ptr < end) {
362 param->boolean = static_cast<bool>(**buf_ptr);
363 (*buf_ptr)++;
371 if (!copy_uint32_from_buf(buf_ptr, end, ¶m->blob.data_length) ||
372 !copy_uint32_from_buf(buf_ptr, end, &offset))
412 bool AuthorizationSet::DeserializeIndirectData(const uint8_t** buf_ptr, const uint8_t* end) {
414 if (!copy_size_and_data_from_buf(buf_ptr, end, &indirect_data_size_, &indirect_buf)) {
423 bool AuthorizationSet::DeserializeElementsData(const uint8_t** buf_ptr, const uint8_t* end) {
426 if (!copy_uint32_from_buf(buf_ptr, end, &elements_count) ||
427 !copy_uint32_from_buf(buf_ptr, end, &elements_size)) {
435 if (static_cast<ptrdiff_t>(elements_size) > end - *buf_ptr ||
437 *buf_ptr + (elements_count * sizeof(*elems_)) < *buf_ptr) {
447 const uint8_t* elements_end = *buf_ptr + elements_size;
449 if (!deserialize(elems_ + i, buf_ptr, elements_end, indirect_data_, indirect_end)) {
459 bool AuthorizationSet::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
462 if (!DeserializeIndirectData(buf_ptr, end) || !DeserializeElementsData(buf_ptr, end))