Lines Matching refs:blob
219 static bool readKeymasterBlob(const Parcel& in, keymaster_blob_t* blob) {
229 blob->data = reinterpret_cast<const uint8_t*>(malloc(length));
230 if (!blob->data)
237 blob->data_length = static_cast<size_t>(length);
238 memcpy(const_cast<uint8_t*>(blob->data), buf, length);
318 out->writeInt32(param.blob.data_length);
319 void* buf = out->writeInplace(param.blob.data_length);
321 memcpy(buf, param.blob.data, param.blob.data_length);
323 ALOGE("Failed to writeInplace keymaster blob param");
379 ALOGE("Failed to allocate buffer for keymaster blob param");
448 std::unique_ptr<keymaster_blob_t> blob (new keymaster_blob_t);
449 if (!readKeymasterBlob(in, blob.get())) {
450 blob.reset();
452 return blob;