Lines Matching refs:buf_ptr
41 static bool deserialize_key_blob(keymaster_key_blob_t* key_blob, const uint8_t** buf_ptr, in deserialize_key_blob() argument
46 if (!copy_size_and_data_from_buf(buf_ptr, end, &key_blob->key_material_size, in deserialize_key_blob()
67 bool KeymasterResponse::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
68 if (!copy_uint32_from_buf(buf_ptr, end, &error)) in Deserialize()
72 return NonErrorDeserialize(buf_ptr, end); in Deserialize()
89 bool GenerateKeyResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) { in NonErrorDeserialize() argument
90 return deserialize_key_blob(&key_blob, buf_ptr, end) && enforced.Deserialize(buf_ptr, end) && in NonErrorDeserialize()
91 unenforced.Deserialize(buf_ptr, end); in NonErrorDeserialize()
111 bool GetKeyCharacteristicsRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
112 return deserialize_key_blob(&key_blob, buf_ptr, end) && in Deserialize()
113 additional_params.Deserialize(buf_ptr, end); in Deserialize()
125 bool GetKeyCharacteristicsResponse::NonErrorDeserialize(const uint8_t** buf_ptr, in NonErrorDeserialize() argument
127 return enforced.Deserialize(buf_ptr, end) && unenforced.Deserialize(buf_ptr, end); in NonErrorDeserialize()
145 bool BeginOperationRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
146 return copy_uint32_from_buf(buf_ptr, end, &purpose) && in Deserialize()
147 deserialize_key_blob(&key_blob, buf_ptr, end) && in Deserialize()
148 additional_params.Deserialize(buf_ptr, end); in Deserialize()
165 bool BeginOperationResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) { in NonErrorDeserialize() argument
166 bool retval = copy_uint64_from_buf(buf_ptr, end, &op_handle); in NonErrorDeserialize()
168 retval = output_params.Deserialize(buf_ptr, end); in NonErrorDeserialize()
187 bool UpdateOperationRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
188 bool retval = copy_uint64_from_buf(buf_ptr, end, &op_handle) && input.Deserialize(buf_ptr, end); in Deserialize()
190 retval = additional_params.Deserialize(buf_ptr, end); in Deserialize()
217 bool UpdateOperationResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) { in NonErrorDeserialize() argument
218 bool retval = output.Deserialize(buf_ptr, end); in NonErrorDeserialize()
220 retval = copy_uint32_from_buf(buf_ptr, end, &input_consumed); in NonErrorDeserialize()
222 retval = output_params.Deserialize(buf_ptr, end); in NonErrorDeserialize()
241 bool FinishOperationRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
243 copy_uint64_from_buf(buf_ptr, end, &op_handle) && signature.Deserialize(buf_ptr, end); in Deserialize()
245 retval = additional_params.Deserialize(buf_ptr, end); in Deserialize()
263 bool FinishOperationResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) { in NonErrorDeserialize() argument
264 bool retval = output.Deserialize(buf_ptr, end); in NonErrorDeserialize()
266 retval = output_params.Deserialize(buf_ptr, end); in NonErrorDeserialize()
278 bool AddEntropyRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
279 return random_data.Deserialize(buf_ptr, end); in Deserialize()
299 bool ImportKeyRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
303 if (!key_description.Deserialize(buf_ptr, end) || in Deserialize()
304 !copy_uint32_from_buf(buf_ptr, end, &key_format) || in Deserialize()
305 !copy_size_and_data_from_buf(buf_ptr, end, &key_data_length, &deserialized_key_material)) in Deserialize()
325 bool ImportKeyResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) { in NonErrorDeserialize() argument
326 return deserialize_key_blob(&key_blob, buf_ptr, end) && enforced.Deserialize(buf_ptr, end) && in NonErrorDeserialize()
327 unenforced.Deserialize(buf_ptr, end); in NonErrorDeserialize()
345 bool ExportKeyRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
346 return additional_params.Deserialize(buf_ptr, end) && in Deserialize()
347 copy_uint32_from_buf(buf_ptr, end, &key_format) && in Deserialize()
348 deserialize_key_blob(&key_blob, buf_ptr, end); in Deserialize()
365 bool ExportKeyResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) { in NonErrorDeserialize() argument
369 if (!copy_size_and_data_from_buf(buf_ptr, end, &key_data_length, &deserialized_key_material)) in NonErrorDeserialize()
387 bool DeleteKeyRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
388 return deserialize_key_blob(&key_blob, buf_ptr, end); in Deserialize()
406 bool GetVersionResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) { in NonErrorDeserialize() argument
407 if (*buf_ptr + NonErrorSerializedSize() > end) in NonErrorDeserialize()
409 const uint8_t* tmp = *buf_ptr; in NonErrorDeserialize()
413 *buf_ptr = tmp; in NonErrorDeserialize()