Home | History | Annotate | Download | only in keymaster

Lines Matching refs:buf_ptr

277 static bool deserialize(keymaster_key_param_t* param, const uint8_t** buf_ptr, const uint8_t* end,
279 if (!copy_uint32_from_buf(buf_ptr, end, &param->tag))
288 return copy_uint32_from_buf(buf_ptr, end, &param->enumerated);
291 return copy_uint32_from_buf(buf_ptr, end, &param->integer);
293 return copy_uint64_from_buf(buf_ptr, end, &param->long_integer);
295 return copy_uint64_from_buf(buf_ptr, end, &param->date_time);
298 if (*buf_ptr < end) {
299 param->boolean = static_cast<bool>(**buf_ptr);
300 (*buf_ptr)++;
308 if (!copy_uint32_from_buf(buf_ptr, end, &param->blob.data_length) ||
309 !copy_uint32_from_buf(buf_ptr, end, &offset))
346 bool AuthorizationSet::DeserializeIndirectData(const uint8_t** buf_ptr, const uint8_t* end) {
348 if (!copy_size_and_data_from_buf(buf_ptr, end, &indirect_data_size_, &indirect_buf)) {
356 bool AuthorizationSet::DeserializeElementsData(const uint8_t** buf_ptr, const uint8_t* end) {
359 if (!copy_uint32_from_buf(buf_ptr, end, &elements_count) ||
360 !copy_uint32_from_buf(buf_ptr, end, &elements_size)) {
367 if (static_cast<ptrdiff_t>(elements_size) > end - *buf_ptr ||
377 const uint8_t* elements_end = *buf_ptr + elements_size;
379 if (!deserialize(elems_ + i, buf_ptr, elements_end, indirect_data_, indirect_end)) {
388 bool AuthorizationSet::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
391 if (!DeserializeIndirectData(buf_ptr, end) || !DeserializeElementsData(buf_ptr, end))