Lines Matching refs:blob
99 keymaster_param_blob(tag, &keyParams[i].blob[0], keyParams[i].blob.size());
121 inline static keymaster_blob_t hidlVec2KmBlob(const hidl_vec<uint8_t>& blob) {
122 /* hidl unmarshals funny pointers if the the blob is empty */
123 if (blob.size()) return {&blob[0], blob.size()};
127 inline static keymaster_key_blob_t hidlVec2KmKeyBlob(const hidl_vec<uint8_t>& blob) {
128 /* hidl unmarshals funny pointers if the the blob is empty */
129 if (blob.size()) return {&blob[0], blob.size()};
133 inline static hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_key_blob_t& blob) {
135 result.setToExternal(const_cast<unsigned char*>(blob.key_material), blob.key_material_size);
138 inline static hidl_vec<uint8_t> kmBlob2hidlVec(const keymaster_blob_t& blob) {
140 result.setToExternal(const_cast<unsigned char*>(blob.data), blob.data_length);
188 result[i].blob.setToExternal(const_cast<unsigned char*>(params[i].blob.data),
189 params[i].blob.data_length);