Lines Matching refs:buf_ptr

41 static bool deserialize_key_blob(keymaster_key_blob_t* key_blob, const uint8_t** buf_ptr,
46 if (!copy_size_and_data_from_buf(buf_ptr, end, &key_blob->key_material_size,
67 bool KeymasterResponse::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
68 if (!copy_uint32_from_buf(buf_ptr, end, &error))
72 return NonErrorDeserialize(buf_ptr, end);
89 bool GenerateKeyResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) {
90 return deserialize_key_blob(&key_blob, buf_ptr, end) && enforced.Deserialize(buf_ptr, end) &&
91 unenforced.Deserialize(buf_ptr, end);
111 bool GetKeyCharacteristicsRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
112 return deserialize_key_blob(&key_blob, buf_ptr, end) &&
113 additional_params.Deserialize(buf_ptr, end);
125 bool GetKeyCharacteristicsResponse::NonErrorDeserialize(const uint8_t** buf_ptr,
127 return enforced.Deserialize(buf_ptr, end) && unenforced.Deserialize(buf_ptr, end);
145 bool BeginOperationRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
146 return copy_uint32_from_buf(buf_ptr, end, &purpose) &&
147 deserialize_key_blob(&key_blob, buf_ptr, end) &&
148 additional_params.Deserialize(buf_ptr, end);
165 bool BeginOperationResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) {
166 bool retval = copy_uint64_from_buf(buf_ptr, end, &op_handle);
168 retval = output_params.Deserialize(buf_ptr, end);
187 bool UpdateOperationRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
188 bool retval = copy_uint64_from_buf(buf_ptr, end, &op_handle) && input.Deserialize(buf_ptr, end);
190 retval = additional_params.Deserialize(buf_ptr, end);
224 bool UpdateOperationResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) {
225 bool retval = output.Deserialize(buf_ptr, end);
227 retval = copy_uint32_from_buf(buf_ptr, end, &input_consumed);
229 retval = output_params.Deserialize(buf_ptr, end);
264 bool FinishOperationRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
266 copy_uint64_from_buf(buf_ptr, end, &op_handle) && signature.Deserialize(buf_ptr, end);
268 retval = additional_params.Deserialize(buf_ptr, end);
270 retval = input.Deserialize(buf_ptr, end);
288 bool FinishOperationResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) {
289 bool retval = output.Deserialize(buf_ptr, end);
291 retval = output_params.Deserialize(buf_ptr, end);
303 bool AddEntropyRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
304 return random_data.Deserialize(buf_ptr, end);
324 bool ImportKeyRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
328 if (!key_description.Deserialize(buf_ptr, end) ||
329 !copy_uint32_from_buf(buf_ptr, end, &key_format) ||
330 !copy_size_and_data_from_buf(buf_ptr, end, &key_data_length, &deserialized_key_material))
350 bool ImportKeyResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) {
351 return deserialize_key_blob(&key_blob, buf_ptr, end) && enforced.Deserialize(buf_ptr, end) &&
352 unenforced.Deserialize(buf_ptr, end);
370 bool ExportKeyRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
371 return additional_params.Deserialize(buf_ptr, end) &&
372 copy_uint32_from_buf(buf_ptr, end, &key_format) &&
373 deserialize_key_blob(&key_blob, buf_ptr, end);
390 bool ExportKeyResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) {
394 if (!copy_size_and_data_from_buf(buf_ptr, end, &key_data_length, &deserialized_key_material))
412 bool DeleteKeyRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
413 return deserialize_key_blob(&key_blob, buf_ptr, end);
431 bool GetVersionResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) {
432 if (*buf_ptr + NonErrorSerializedSize() > end)
434 const uint8_t* tmp = *buf_ptr;
438 *buf_ptr = tmp;
459 bool AttestKeyRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
460 return deserialize_key_blob(&key_blob, buf_ptr, end) && attest_params.Deserialize(buf_ptr, end);
509 bool AttestKeyResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) {
511 if (!copy_uint32_from_buf(buf_ptr, end, &entry_count) || !AllocateChain(entry_count))
517 if (!copy_size_and_data_from_buf(buf_ptr, end, &data_length, &data))
543 bool UpgradeKeyRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
544 return deserialize_key_blob(&key_blob, buf_ptr, end) &&
545 upgrade_params.Deserialize(buf_ptr, end);
560 bool UpgradeKeyResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) {
561 return deserialize_key_blob(&upgraded_key, buf_ptr, end);