Lines Matching refs:blob
99 keymaster_param_blob(tag, &keyParams[i].blob[0], keyParams[i].blob.size()); in KmParamSet()
122 inline static keymaster_blob_t hidlVec2KmBlob(const hidl_vec<uint8_t>& blob) { in hidlVec2KmBlob() argument
124 if (blob.size()) return {&blob[0], blob.size()}; in hidlVec2KmBlob()
128 inline static keymaster_key_blob_t hidlVec2KmKeyBlob(const hidl_vec<uint8_t>& blob) { in hidlVec2KmKeyBlob() argument
130 if (blob.size()) return {&blob[0], blob.size()}; in hidlVec2KmKeyBlob()
134 inline static hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_key_blob_t& blob) { in kmBlob2hidlVec() argument
135 if (blob.key_material == nullptr || blob.key_material_size == 0) { in kmBlob2hidlVec()
138 return hidl_vec<uint8_t>(blob.key_material, blob.key_material + blob.key_material_size); in kmBlob2hidlVec()
141 inline static hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_blob_t& blob) { in kmBlob2hidlVec() argument
142 if (blob.data == nullptr || blob.data_length == 0) { in kmBlob2hidlVec()
145 return hidl_vec<uint8_t>(blob.data, blob.data + blob.data_length); in kmBlob2hidlVec()
193 result[i].blob = kmBlob2hidlVec(params[i].blob); in kmParamSet2Hidl()