Home | History | Annotate | Download | only in keymaster

Lines Matching refs:buf_ptr

36 bool KeymasterResponse::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
37 if (!copy_uint32_from_buf(buf_ptr, end, &error))
41 return NonErrorDeserialize(buf_ptr, end);
52 bool SupportedAlgorithmsResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) {
56 if (!copy_uint32_array_from_buf(buf_ptr, end, &deserialized_algorithms, &algorithms_length))
77 bool GenerateKeyResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) {
81 if (!copy_size_and_data_from_buf(buf_ptr, end, &key_blob.key_material_size,
83 !enforced.Deserialize(buf_ptr, end) || !unenforced.Deserialize(buf_ptr, end))
109 bool GetKeyCharacteristicsRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
113 if (!copy_size_and_data_from_buf(buf_ptr, end, &key_blob.key_material_size,
115 !additional_params.Deserialize(buf_ptr, end))
130 bool GetKeyCharacteristicsResponse::NonErrorDeserialize(const uint8_t** buf_ptr,
132 return enforced.Deserialize(buf_ptr, end) && unenforced.Deserialize(buf_ptr, end);
152 bool BeginOperationRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
156 if (!copy_uint32_from_buf(buf_ptr, end, &purpose) ||
157 !copy_size_and_data_from_buf(buf_ptr, end, &key_blob.key_material_size,
159 !additional_params.Deserialize(buf_ptr, end))
173 bool BeginOperationResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) {
174 return copy_uint64_from_buf(buf_ptr, end, &op_handle);
186 bool UpdateOperationRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
187 return copy_uint64_from_buf(buf_ptr, end, &op_handle) && input.Deserialize(buf_ptr, end);
198 bool UpdateOperationResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) {
199 return output.Deserialize(buf_ptr, end);
211 bool FinishOperationRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
212 return copy_uint64_from_buf(buf_ptr, end, &op_handle) && signature.Deserialize(buf_ptr, end);
223 bool FinishOperationResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) {
224 return output.Deserialize(buf_ptr, end);
244 bool ImportKeyRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
248 if (!key_description.Deserialize(buf_ptr, end) ||
249 !copy_uint32_from_buf(buf_ptr, end, &key_format) ||
250 !copy_size_and_data_from_buf(buf_ptr, end, &key_data_length, &deserialized_key_material))
273 bool ImportKeyResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) {
277 if (!copy_size_and_data_from_buf(buf_ptr, end, &key_blob.key_material_size,
279 !enforced.Deserialize(buf_ptr, end) || !unenforced.Deserialize(buf_ptr, end))
302 bool ExportKeyRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
306 if (!additional_params.Deserialize(buf_ptr, end) ||
307 !copy_uint32_from_buf(buf_ptr, end, &key_format) ||
308 !copy_size_and_data_from_buf(buf_ptr, end, &key_blob.key_material_size,
329 bool ExportKeyResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) {
333 if (!copy_size_and_data_from_buf(buf_ptr, end, &key_data_length, &deserialized_key_material))