• Home
  • Raw
  • Download

Lines Matching refs:end

29 uint8_t* KeymasterResponse::Serialize(uint8_t* buf, const uint8_t* end) const {  in Serialize()
30 buf = append_uint32_to_buf(buf, end, static_cast<uint32_t>(error)); in Serialize()
32 buf = NonErrorSerialize(buf, end); in Serialize()
36 bool KeymasterResponse::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
37 if (!copy_uint32_from_buf(buf_ptr, end, &error)) in Deserialize()
41 return NonErrorDeserialize(buf_ptr, end); in Deserialize()
48 uint8_t* SupportedAlgorithmsResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const { in NonErrorSerialize()
49 return append_uint32_array_to_buf(buf, end, algorithms, algorithms_length); in NonErrorSerialize()
52 bool SupportedAlgorithmsResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) { in NonErrorDeserialize() argument
56 if (!copy_uint32_array_from_buf(buf_ptr, end, &deserialized_algorithms, &algorithms_length)) in NonErrorDeserialize()
71 uint8_t* GenerateKeyResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const { in NonErrorSerialize()
72 buf = append_size_and_data_to_buf(buf, end, key_blob.key_material, key_blob.key_material_size); in NonErrorSerialize()
73 buf = enforced.Serialize(buf, end); in NonErrorSerialize()
74 return unenforced.Serialize(buf, end); in NonErrorSerialize()
77 bool GenerateKeyResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) { in NonErrorDeserialize() argument
81 if (!copy_size_and_data_from_buf(buf_ptr, end, &key_blob.key_material_size, in NonErrorDeserialize()
83 !enforced.Deserialize(buf_ptr, end) || !unenforced.Deserialize(buf_ptr, end)) in NonErrorDeserialize()
104 uint8_t* GetKeyCharacteristicsRequest::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize()
105 buf = append_size_and_data_to_buf(buf, end, key_blob.key_material, key_blob.key_material_size); in Serialize()
106 return additional_params.Serialize(buf, end); in Serialize()
109 bool GetKeyCharacteristicsRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
113 if (!copy_size_and_data_from_buf(buf_ptr, end, &key_blob.key_material_size, in Deserialize()
115 !additional_params.Deserialize(buf_ptr, end)) in Deserialize()
125 uint8_t* GetKeyCharacteristicsResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const { in NonErrorSerialize()
126 buf = enforced.Serialize(buf, end); in NonErrorSerialize()
127 return unenforced.Serialize(buf, end); in NonErrorSerialize()
131 const uint8_t* end) { in NonErrorDeserialize() argument
132 return enforced.Deserialize(buf_ptr, end) && unenforced.Deserialize(buf_ptr, end); in NonErrorDeserialize()
146 uint8_t* BeginOperationRequest::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize()
147 buf = append_uint32_to_buf(buf, end, purpose); in Serialize()
148 buf = append_size_and_data_to_buf(buf, end, key_blob.key_material, key_blob.key_material_size); in Serialize()
149 return additional_params.Serialize(buf, end); in Serialize()
152 bool BeginOperationRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
156 if (!copy_uint32_from_buf(buf_ptr, end, &purpose) || in Deserialize()
157 !copy_size_and_data_from_buf(buf_ptr, end, &key_blob.key_material_size, in Deserialize()
159 !additional_params.Deserialize(buf_ptr, end)) in Deserialize()
169 uint8_t* BeginOperationResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const { in NonErrorSerialize()
170 return append_uint64_to_buf(buf, end, op_handle); in NonErrorSerialize()
173 bool BeginOperationResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) { in NonErrorDeserialize() argument
174 return copy_uint64_from_buf(buf_ptr, end, &op_handle); in NonErrorDeserialize()
181 uint8_t* UpdateOperationRequest::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize()
182 buf = append_uint64_to_buf(buf, end, op_handle); in Serialize()
183 return input.Serialize(buf, end); in Serialize()
186 bool UpdateOperationRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
187 return copy_uint64_from_buf(buf_ptr, end, &op_handle) && input.Deserialize(buf_ptr, end); in Deserialize()
194 uint8_t* UpdateOperationResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const { in NonErrorSerialize()
195 return output.Serialize(buf, end); in NonErrorSerialize()
198 bool UpdateOperationResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) { in NonErrorDeserialize() argument
199 return output.Deserialize(buf_ptr, end); in NonErrorDeserialize()
206 uint8_t* FinishOperationRequest::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize()
207 buf = append_uint64_to_buf(buf, end, op_handle); in Serialize()
208 return signature.Serialize(buf, end); in Serialize()
211 bool FinishOperationRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
212 return copy_uint64_from_buf(buf_ptr, end, &op_handle) && signature.Deserialize(buf_ptr, end); in Deserialize()
219 uint8_t* FinishOperationResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const { in NonErrorSerialize()
220 return output.Serialize(buf, end); in NonErrorSerialize()
223 bool FinishOperationResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) { in NonErrorDeserialize() argument
224 return output.Deserialize(buf_ptr, end); in NonErrorDeserialize()
238 uint8_t* ImportKeyRequest::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize()
239 buf = key_description.Serialize(buf, end); in Serialize()
240 buf = append_uint32_to_buf(buf, end, key_format); in Serialize()
241 return append_size_and_data_to_buf(buf, end, key_data, key_data_length); in Serialize()
244 bool ImportKeyRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
248 if (!key_description.Deserialize(buf_ptr, end) || in Deserialize()
249 !copy_uint32_from_buf(buf_ptr, end, &key_format) || in Deserialize()
250 !copy_size_and_data_from_buf(buf_ptr, end, &key_data_length, &deserialized_key_material)) in Deserialize()
267 uint8_t* ImportKeyResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const { in NonErrorSerialize()
268 buf = append_size_and_data_to_buf(buf, end, key_blob.key_material, key_blob.key_material_size); in NonErrorSerialize()
269 buf = enforced.Serialize(buf, end); in NonErrorSerialize()
270 return unenforced.Serialize(buf, end); in NonErrorSerialize()
273 bool ImportKeyResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) { in NonErrorDeserialize() argument
277 if (!copy_size_and_data_from_buf(buf_ptr, end, &key_blob.key_material_size, in NonErrorDeserialize()
279 !enforced.Deserialize(buf_ptr, end) || !unenforced.Deserialize(buf_ptr, end)) in NonErrorDeserialize()
296 uint8_t* ExportKeyRequest::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize()
297 buf = additional_params.Serialize(buf, end); in Serialize()
298 buf = append_uint32_to_buf(buf, end, key_format); in Serialize()
299 return append_size_and_data_to_buf(buf, end, key_blob.key_material, key_blob.key_material_size); in Serialize()
302 bool ExportKeyRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
306 if (!additional_params.Deserialize(buf_ptr, end) || in Deserialize()
307 !copy_uint32_from_buf(buf_ptr, end, &key_format) || in Deserialize()
308 !copy_size_and_data_from_buf(buf_ptr, end, &key_blob.key_material_size, in Deserialize()
325 uint8_t* ExportKeyResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const { in NonErrorSerialize()
326 return append_size_and_data_to_buf(buf, end, key_data, key_data_length); in NonErrorSerialize()
329 bool ExportKeyResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) { in NonErrorDeserialize() argument
333 if (!copy_size_and_data_from_buf(buf_ptr, end, &key_data_length, &deserialized_key_material)) in NonErrorDeserialize()