Home
last modified time | relevance | path

Searched refs:blob_copy (Results 1 – 1 of 1) sorted by relevance

/system/keymaster/
Dkeymaster0_engine.cpp170 unique_ptr<keymaster_key_blob_t> blob_copy(new (std::nothrow) keymaster_key_blob_t); in duplicate_blob() local
171 if (!blob_copy.get()) in duplicate_blob()
173 blob_copy->key_material_size = key_data_size; in duplicate_blob()
174 blob_copy->key_material = key_material_copy.release(); in duplicate_blob()
175 return blob_copy.release(); in duplicate_blob()
188 keymaster_key_blob_t* blob_copy = duplicate_blob(blob); in BlobToRsaKey() local
189 if (!blob_copy->key_material || !RSA_set_ex_data(rsa.get(), rsa_index_, blob_copy)) in BlobToRsaKey()
213 keymaster_key_blob_t* blob_copy = duplicate_blob(blob); in BlobToEcKey() local
214 if (!blob_copy->key_material || !EC_KEY_set_ex_data(ec_key.get(), ec_key_index_, blob_copy)) in BlobToEcKey()